Repository navigation
CI: remove cleanup test asserts JSON warnings (#1089) - #1669
Merged
Mikola Lysenko (mikolalysenko) merged 3 commits intoOct 22, 2026
Merged
Conversation
Assisted-by: Claude Code:claude-opus-5-5
14 tasks
remove_cleanup_failures_warn_not_fatal only read human stderr, so dropping a cleanup_failed warning from `remove --json` went unnoticed. It now runs with --json and checks exit 0, status success, one cleanup_failed warning per failed sweep (blob, diffs, packages), no stderr warnings, and the manifest entry removed. The human Warning: line check moves to remove_render.rs, which now requires exactly one line per store. Both tests share a new plant_unsweepable_stores fixture. No production code changes. Refs #1089 Assisted-by: Claude Code:claude-opus-5-5
The --json cleanup test told the three warnings apart by splitting their English detail, so a copy edit could fail it. It now only requires three distinct details and leaves the store names to the render suite. It also checks that the entry is still counted and reported as removed when every sweep fails. Refs #1089 Assisted-by: Claude Code:claude-opus-5-5
Mikola Lysenko (mikolalysenko)
marked this pull request as ready for review
October 22, 2026 18:03
Collaborator
Author
|
BugBot review Generated by Claude Code |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b021532. Configure here.
Tanmay Singla (Tanmay182003)
approved these changes
Oct 22, 2026
Collaborator
Author
|
Burn-down agent: labeled Ready for review at
Generated by Claude Code |
Collaborator
Author
|
[final reviewer] Sent to the merge queue at 19:49 UTC: approved, Generated by Claude Code |
Mikola Lysenko (mikolalysenko)
deleted the
agent/fix-ci-remove-cleanup-json
branch
October 22, 2026 19:59
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.
LLM Description written by Claude Code:claude-opus-5-5
Refs #1089 (the
removecleanup-warning follow-up of child 6, listed inthis comment; the tracking issue stays open)
Root cause
remove/remove_failure_paths.rs::remove_cleanup_failures_warn_not_fatalwas the one test in that behaviour file that still checked only human
stderr.
remove --jsonreports each failed sweep as acleanup_failedrun warning, and no test pinned that. Dropping one ofthose warnings from the JSON envelope went unnoticed.
Change
remove_failure_paths.rs: the test now runs with--jsonandchecks exit 0,
status: success, exactly threecleanup_failedwarnings with distinct details,
summary.removed == 1, aremovedevent for the purl, no
Warning:lines on stderr, and the manifestentry gone.
remove_render.rs: newremove_cleanup_failures_print_one_warning_per_storeholds the human wording. It requires exactly one
Warning: <store> cleanup failed:line for each of blob, diffs andpackages.
remove_fixture.rs:plant_unsweepable_storesis the shared setup(one-entry manifest, the three stores planted as regular files).
No production code changes.
Testing
cargo test -p socket-patch-cli --all-features --test remove: 104 passed,0 failed. Main has 103; this adds the render test.
cleanup_warnings.pushincommands/remove.rsreplaced by a no-op, the new JSON test fails(
left: ["cleanup_failed"],right: [... x3]). The old human-only testpasses that mutation.
cargo fmt --all -- --check: clean.cargo clippy -p socket-patch-cli --all-features --test remove -- -D warnings:nothing in the three changed files. Its other findings are already on
main, in
tests/common. CI's clippy command doesn't build tests.cfg(windows)/cfg(unix)code changed, so no full-scope run.CI cost
Test-only change in an existing test binary. A lean PR run is the same
before and after: about 28 Linux jobs, about 8 minutes.
/code-review highfindingsstores apart (it requires three distinct details; the store names are
checked in the render suite). It now checks
summary.removedand theremovedevent. The render test builds its prefix once per store.remove/rollback/scan gclabel the passesblob/diffs/packages, whilerepairsaysblob/diff/package(
commands/repair.rs~606). Unifying that is a product wording changeoutside this test lane. The render test pins remove's current labels
only.
.socket/blobsas a file(
remove_failure_paths.rstest 15,rollback_fixture.rs) plant onlythat one store for a different failure, so they don't share this
fixture.
the PR is squash-merged.
https://claude.ai/code/session_01BBgeMt9M6fhppCmiia5uPg
Generated by Claude Code