test(fetch): isolate REQUEST_HANDLES guard probe - #9280
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe change adds a test-only mutex for shared ChangesRequest registry test isolation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change serializes tests that share a request registry without altering shipped request handling or runtime behavior. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description provides a clear summary, concrete changes, related issue, and detailed validation commands and results. It does not reproduce every template heading, but it contains the required information and is mostly complete. Full details: Linked Issues checkExplanation The changes satisfy issue Full details: Docstring CoverageExplanation Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 1 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1e259af to
8c14a7b
Compare
|
Audited the diff — correct fix, and importantly it does not weaken the invariant. I'd merge. The isolation mutex is the right shape: it serializes the tests that reach Two details I checked specifically: The assertion still fires on a real leak. The new
The comment requiring every For context on why this mattered beyond tidiness: |
|
Merged. Validated on a shared branch with #9228, #9257, #9263, #9271, #9272, #9274, #9277, #9279 and #9280 — one build, one validation pass, then split back out and merged individually. Results across the batch:
One probe ( |
Summary
Fixes #9267.
Validation
cargo fmt -p perry-ext-fetch -- --checkcargo test -p perry-ext-fetch --lib(15 passed)cargo test --release -p perry-ext-fetch --lib(15 passed)--test-threads=64REQUEST_HANDLESguard maderequest_reads_release_the_registry_guardfail at the first post-call probe; the sabotage was then revertedSummary by CodeRabbit
Bug Fixes
Documentation