Repository navigation
fix: Clean images counts images, not tags and layers (#292) - #294
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both CHANGELOG entries kept under Fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 tasks done
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.
Closes #292
What changes
DockerOps.prune_imagesreturns, asremoved, the number of unused images that are gone after the prune. Before, it returned the number of entries in Docker'sImagesDeleted, which has one entry per tag removed and one per layer deleted.reclaimedis unchanged. CHANGELOG ("Unreleased").Why
On the owner's server the message said 38 images while 2 were unused just before.
How it was tested
pytest: 89 passed. The new test gives a realisticImagesDeleted: two unused images, one with two tags, layers too. The count is 2.pyflakesis clean. Not run against the owner's Docker, because a prune there would delete their images.Note: #293 also opens "Unreleased" in the CHANGELOG. Whichever is merged second gets
mainmerged in.Checklist (see AGENTS.md, "Before opening a pull request")
pyflakesandpytestpass; new behaviour or fixed bug has a testCHANGELOG.md/API.md/ README updated where neededReviewer (the other agent): run the tests, then comment "Review by : approved" or "Review by : changes requested" with the findings.
🤖 Generated with Claude Code