fix(containerise): resolve devcontainer cache misses and add state-aware prune mode#99
Merged
Merged
Conversation
…t devcontainer cache miss
…defaults and avoid cache miss
… protect excluded projects during global prune
Copilot
AI
changed the title
fix(containerise): fix base image cache misses and add graceful prune mode
fix(containerise): resolve devcontainer cache misses and add state-aware prune mode
Jul 2, 2026
Copilot created this pull request from a session on behalf of
xaoscience
July 2, 2026 16:04
View session
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.
Container builds were suffering from full cache invalidation due to base image drift against VS Code's defaults, and the CLI lacked a safe way to execute global prunes while preserving excluded project states.
Cache Preservation
--pull=trueinto thepodman buildarray. VS Code DevContainers pulls base images by default; failing to do so in the CLI caused layer digest mismatches when upstream images (e.g.ubuntu:24.04) were updated, invalidating the entire 33-layer build cache.NESTEDbypass: Wrapped the orphaned VS Code UID-wrapper pruning logic in a[[ "$NESTED" != "true" ]]check, fixing an omission in commit4884d66.State-Aware Global Pruning
--prune,-a|--all, and--imagesflags to route to a newrun_prune_mode.--excluded projects during a destructivepodman system prune -a --volumesis difficult since it doesn't accept exclusion flags. We sidestep this by temporarily starting the excluded containers prior to the prune, relying on the daemon's native active-state protection, then immediately halting them.