Add task image IDs and compile-time image overrides#47
Merged
Volv-G merged 1 commit intoJul 22, 2026
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an OSS-neutral image-id seam for Python-authored
@taskcomponents:@task(image_id="...")stores a logical image id alongside the existingimage=option.image=remains fully backward-compatible and has highest precedence.IMAGE_IDSregistry plusregister_image_id,get_image_id, andresolve_image_idhelpers so downstream packages can provide defaults without OSS image literals.tangle sdk pipelines compile --image ID=REFcompile-time overrides and plumbs them through the CLI facade/compiler.local_from_python.imageby precedence: explicitimage=,--imageoverride, registered default; unresolved image ids fail with a clearCompileError.tangle-clito0.1.6.Tests
uv lock --checkuv run pytest -q795 passed, 4 warnings