Repository navigation
test(config): include uninstall refusal reason in regression output - #8242
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai review Please review head |
Action performed
|
|
✅ Deterministic PR hygiene checks passed. |
Ingwannu
left a comment
There was a problem hiding this comment.
Approving head a85c4c2bddeb1341bea99c8a1d76badb3e762c58 (one test file, +5/-2).
- The new whole-object
toEqualis strictly stronger than the old pair of assertions: it still requiresstatus: "partial"and the exact sorted residual set (all three lookalike files kept), and additionally pinsreason. Ondevthe onlypartialbranch whose residuals are the directory's remaining entries issrc/lib/config-ownership.ts:933-937with"unowned files remain in the config directory"; the otherpartialbranches report[configDir], so the pinned reason cannot reject a currently passing outcome. - On failure Bun now prints the full result, including
reason, which is the stated diagnostic goal.readFileSync(userData)still proves user data was not touched. - No product code changes. Neither this test file nor
src/lib/config-ownership.tschanged ondevsince the PR base; it merges cleanly ontoaaa3c20f3f. - Hosted CI on this exact head: Cross-platform CI
gates,test changed,storage policy,cigreen (Windows runner selection ran; Windows shards are not part of the PR lane).
Summary
When the lookalike metadata-temp test is refused before removal, its status-only assertion hides the reason. Compare the complete removal result so a failure includes the refusal reason and residual paths, while continuing to require that all three unowned files are retained.
This is a test-only follow-up to the now-merged #8238 and #8239, based on dev
7ea41c3608d1a130a6d9fa2338ad3a151d87c06b. Product behavior, platform exclusions and timeouts are unchanged. It improves diagnosis; it does not claim to fix the earlier intermittent Windows ACL/journal failures.Verification
bun scripts/test.ts tests/config/config-ownership-concurrent-record.test.ts --parallel=1— 42 passed / 6 skipped / 0 failed / 190 assertions on Windows, 41.35 seconds. The six existing platform exclusions are unchanged.bun check --no-script --noEmit— 2,322 source files passed; the test file itself was compiled and executed by the focused suite.git diff --checkpassed. Independent review confirmed that no assertion was weakened and no product code changed.a85c4c2bddeb1341bea99c8a1d76badb3e762c58; CodeRabbit check 128176058038 also passed with no review threads.Checklist
Summary by CodeRabbit
Maintainer integration verification
Maintainer integration into
devis based on the independent review and the approval on exact heada85c4c2bddeb1341bea99c8a1d76badb3e762c58. PR CI passedci,gates, andtest changed; full Ubuntu shards and platform-specific jobs were filtered by PR policy.With isolated temporary HOME, OPENCODEX_HOME, CODEX_HOME, and CLAUDE_CONFIG_DIR, the focused ownership suite passed 48 tests, the layout/ratchet/Lab guards passed 63 tests, and typecheck, privacy scan, and structure check passed. These checks also passed on the clean temporary union with
devat6df9e1176767d5da2b674b7d9ee8a8df4bbf2b65. The temporary merge was discarded. No behavioral regression test is required for this test-only diagnostic change. The full local suite was not run due to its cost alongside concurrent repository work; broader coverage remains with batch CI.