feat(images)!: ask before shared image updates #76
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/azkaban!76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/local-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The launcher builds workspace tools from
Dockerfile.azkabanfor 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_PULLbehavior 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: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
masterat8d1f495with the branch's tests and support copied in; 18 unchanged guards pass there.Checks on
687d879:make lint && .agents/hooks/shellcheck.sh repo && make testpasses, 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.