feat(images)!: ask before shared image updates #76

Merged
claudiomaradonna merged 1 commit from feat/local-image into master 2026-11-15 10:19:33 +01:00
Collaborator

Why

The launcher builds workspace tools from Dockerfile.azkaban for each client. Automatic base refreshes can invalidate expensive layers, so starting another session can rebuild tools the operator already has locally.

What changed

A shared-image launch now asks before pulling or building. Answering yes refreshes the supported-host client image and rebuilds the shared Dockerfile; no or Enter reuses the approved local image directly. Nonterminal stdin selects reuse automatically. Other image-selection paths retain their existing AUTO_PULL behavior and Dockerfile precedence.

Custom builds stamp a workspace label, and shared reuse requires matching metadata. Missing images or labels, including images last built by another workspace with the same generated name, stop with instructions for an interactive update. Public image tags stay the same.

Breaking change: images built before workspace labels were introduced need one interactive update before reuse. Prepare each client's image before running it headlessly. An explicit yes updates a shared image even when the identity sets AZKABAN_AUTO_PULL=0.

The image-selection flow, integration tests, and custom-image and automation guides contain the change.

How to verify

From this branch with Bash 4.4+, make, a SHA-256 helper, and script(1), run:

make test TESTS='auto_pull custom_image_approval custom_image_shared custom_image_failures custom_image_naming'

The 37 tests create temporary workspaces and use recording engine stubs. They check accepted updates, reuse after declining or without a terminal, missing and foreign-workspace images, approval changes, dry runs, and existing automatic-update paths. All 19 changed regression guards fail at their behavior assertions against master at 8d1f495 with the branch's tests and support copied in; 18 unchanged guards pass there.

Checks on 687d879: make lint && .agents/hooks/shellcheck.sh repo && make test passes, with 58 shell files clean and 328 tests passing. Code, security, and documentation reviews approve the final tip.

Real Podman E2E and native macOS execution were not run; verification uses the vendored engine and plutil stubs.

Considerations

Reusing an image keeps previously copied workspace files until the next accepted build. Workspaces sharing an image name still share its mutable tag; a workspace-label mismatch requires an interactive rebuild before reuse.

## Why The launcher builds workspace tools from `Dockerfile.azkaban` for each client. Automatic base refreshes can invalidate expensive layers, so starting another session can rebuild tools the operator already has locally. ## What changed A shared-image launch now asks before pulling or building. Answering yes refreshes the supported-host client image and rebuilds the shared Dockerfile; no or Enter reuses the approved local image directly. Nonterminal stdin selects reuse automatically. Other image-selection paths retain their existing `AUTO_PULL` behavior and Dockerfile precedence. Custom builds stamp a workspace label, and shared reuse requires matching metadata. Missing images or labels, including images last built by another workspace with the same generated name, stop with instructions for an interactive update. Public image tags stay the same. **Breaking change:** images built before workspace labels were introduced need one interactive update before reuse. Prepare each client's image before running it headlessly. An explicit yes updates a shared image even when the identity sets `AZKABAN_AUTO_PULL=0`. The image-selection flow, integration tests, and custom-image and automation guides contain the change. ## How to verify From this branch with Bash 4.4+, make, a SHA-256 helper, and `script(1)`, run: ```bash make test TESTS='auto_pull custom_image_approval custom_image_shared custom_image_failures custom_image_naming' ``` The 37 tests create temporary workspaces and use recording engine stubs. They check accepted updates, reuse after declining or without a terminal, missing and foreign-workspace images, approval changes, dry runs, and existing automatic-update paths. All 19 changed regression guards fail at their behavior assertions against `master` at `8d1f495` with the branch's tests and support copied in; 18 unchanged guards pass there. Checks on `687d879`: `make lint && .agents/hooks/shellcheck.sh repo && make test` passes, with 58 shell files clean and 328 tests passing. Code, security, and documentation reviews approve the final tip. Real Podman E2E and native macOS execution were not run; verification uses the vendored engine and plutil stubs. ## Considerations Reusing an image keeps previously copied workspace files until the next accepted build. Workspaces sharing an image name still share its mutable tag; a workspace-label mismatch requires an interactive rebuild before reuse.
Let operators reuse expensive shared images without refreshing the base
or rebuilding their tools. Keep automatic updates for other launches.

BREAKING CHANGE: Shared Dockerfile launches reuse local images by
default. Headless launches require an approved local image.
claudiomaradonna deleted branch feat/local-image 2026-11-15 10:19:37 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/azkaban!76
No description provided.