Repository navigation
OTHER-3: Sprout image-cleanup consolidation - #296
Merged
Merged
Conversation
Owner
Author
|
Round 1 · head APPROVE Clean consolidation of the forge HTTP/delete/outcome plumbing with bounded per-repository registry walks, an honest page-cap warning instead of a false "already absent", and no behavioral regressions found; 387 CLI tests and typecheck pass at abe585a. Full review reportVerdictAPPROVE Summary: Clean consolidation of the forge HTTP/delete/outcome plumbing with bounded per-repository registry walks, an honest page-cap warning instead of a false "already absent", and no behavioral regressions found; 387 CLI tests and typecheck pass at abe585a. Notes (non-blocking)
|
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.
OTHER-3
Why the change
CI teardown's registry cleanup duplicated its HTTP plumbing, delete path, status mapping and GHCR scanning per ref, silently skipped unresolvable refs and never reported what it deleted; this ships one shared forge HTTP layer, one delete primitive, one outcome reducer, and per-repository registry walks that warn instead of guessing.
Special things to note
image-cleanup.tsshrinks only modestly (606 → 593) becauseforge-http.tstakes 28 shared lines out; total duplication drops, andforge-note.tsloses its own copies. The sharedreadErrorBodytruncates remote error bodies at 300 characters (forge-note previously 500); warning and error templates are byte-identical.Promise.alland the concurrent teardown note. Page-cap exhaustion now yields a new warning rather than a falseregistry tag already absent.ci-teardown-tags.test.tskeeps all 11 original tests and assertions unchanged and adds three: the unresolved-image-ref warning proof plus one request-count proof per forge (GitLab 3 → 3, GHCR 6 → 4).Change outline