Skip to content

Add task image IDs and compile-time image overrides#47

Merged
Volv-G merged 1 commit into
masterfrom
piforge/tangle-compile-oss-migration/image-id-compile-overrides-7c8e8da
Jul 22, 2026
Merged

Add task image IDs and compile-time image overrides#47
Volv-G merged 1 commit into
masterfrom
piforge/tangle-compile-oss-migration/image-id-compile-overrides-7c8e8da

Conversation

@Volv-G

@Volv-G Volv-G commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds an OSS-neutral image-id seam for Python-authored @task components:

  • @task(image_id="...") stores a logical image id alongside the existing image= option.
  • image= remains fully backward-compatible and has highest precedence.
  • Adds an empty IMAGE_IDS registry plus register_image_id, get_image_id, and resolve_image_id helpers so downstream packages can provide defaults without OSS image literals.
  • Adds repeatable tangle sdk pipelines compile --image ID=REF compile-time overrides and plumbs them through the CLI facade/compiler.
  • Emits local_from_python.image by precedence: explicit image=, --image override, registered default; unresolved image ids fail with a clear CompileError.
  • Bumps tangle-cli to 0.1.6.

Tests

  • uv lock --check
  • uv run pytest -q
    • 795 passed, 4 warnings

Add an OSS-neutral image-id seam for Python-authored @task components:

- accept @task(image_id="...") alongside the existing image= option
- keep image= fully backward-compatible and higher precedence
- add an empty IMAGE_IDS registry with register/get/resolve helpers for downstream defaults
- plumb repeatable `tangle sdk pipelines compile --image ID=REF` overrides through the CLI facade and compiler
- resolve local_from_python images by precedence: image=, override, registered default; error clearly when an image_id is unresolved
- cover registry, sidecar emission, override resolution, precedence, CLI help, compat imports, and packaging
- bump tangle-cli to 0.1.6

Tests:
- uv lock --check
- uv run pytest -q (795 passed, 4 warnings)

Assisted-By: devx/b49d7847-4e8a-45eb-8304-dacd6e78458e
@Volv-G
Volv-G requested a review from Ark-kun as a code owner July 21, 2026 20:56
@Volv-G
Volv-G merged commit fcb22f0 into master Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant