Skip to content

fix(image): preserve active and infrastructure aliases - #2128

Open
stephenlclarke wants to merge 1 commit into
apple:mainfrom
stephenlclarke:fix/image-prune-active-aliases
Open

fix(image): preserve active and infrastructure aliases#2128
stephenlclarke wants to merge 1 commit into
apple:mainfrom
stephenlclarke:fix/image-prune-active-aliases

Conversation

@stephenlclarke

@stephenlclarke stephenlclarke commented Aug 15, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Closes #2030.

Use OCI digests as active-image identity, normalize configured infrastructure aliases, and persist the fetched builder reference. This prevents image prune --all from deleting a normalized image used by an active builder and avoids unnecessary builder recreation.

This supersedes the earlier closed #2031, rebased onto current main.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Negative control with the former reference-only decisions: three alias cases and the digest identity regression failed.

  • Focused alias/prune regressions: 14 tests passed
  • Full non-integration suite: 758 tests passed
  • End-to-end builder-prune regression added for integration CI
  • make fmt, make check, and git diff --check: passed
  • Commit signature: verified

Match active images by OCI digest and configured infrastructure images by normalized aliases. Store the fetched builder reference so equivalent aliases neither recreate the builder nor become prune candidates.

Fixes apple#2030
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.

[Bug]: image prune can remove active infrastructure image aliases

1 participant