Skip to content

Remove the images a fixture's builds register - #2179

Closed
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:fixture-reclaims-built-images
Closed

Remove the images a fixture's builds register#2179
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:fixture-reclaims-built-images

Conversation

@MayCXC

@MayCXC MayCXC commented Aug 27, 2026

Copy link
Copy Markdown

Type of Change

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

Motivation and Context

The fixture's contract is that every resource created during a test's scope is torn down when the scope exits. The build helpers registered images in the store and left no removal behind, so an integration run accumulated one set of uniquely tagged build products per run, held beyond the run by nothing.

Removal is registered for every tag a successful build lands, including the runtime generated tag a tagless build prints, and tolerates a tag the local exporter never registered.

Test support only; no product code changes. Related to the disk pressure catalogued in #2164, which this contributes to and does not fix by itself: the images this leaves behind each hold an unpacked snapshot that the leaks in that issue then keep.

Testing

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

An integration run that previously left one image per build per run now leaves none.

Integration suite: 397 passed. Unit suite: 772 passed. make fmt, make check clean.

The fixture's contract is that every resource created during a test's
scope is torn down when the scope exits. The build helpers registered
images in the store and left no removal behind, so an integration run
accumulated one set of uniquely tagged build products per run, held
beyond the run by nothing.

Register removal for every tag a successful build lands, including the
runtime generated tag a tagless build prints. Removal tolerates a tag
the local exporter never registered.
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.

2 participants