Repository navigation
fix(orchestration): close federated-read benchmark socket - #13939
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe benchmark test now uses Vitest mocks and validates that only 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
(cherry picked from commit c45c806)
ELI5
The optional federated-read speed test kept one WebSocket open for reuse. If a measured request failed, the test jumped past cleanup and left that socket alive. The benchmark now closes its socket whether measurements pass or fail.
What Changed
try/finallyWhy
The benchmark creates and owns the retained connection, so lexical
try/finallyis the smallest reliable ownership model. This changes benchmark/test code only; production transport behavior is unchanged.Linked Issue
STA-3961
Follow-up to merged PR #13814.
Visual Proof
N/A — benchmark/test-only resource cleanup with no UI or interaction change.
Testing
pnpm typecheckpnpm lint(passes; existing warning-level React dependency notices remain outside this diff)AI Disclosure
Implemented and tested with OpenAI Codex under human-authorized ownership.
Review
Focused self-review and a fresh resource-lifecycle/adversarial review are clean with no actionable in-scope findings. The review strengthened the oracle to inspect the connection's retained socket directly, then repeated the candidate/revert control. Scope is test-only and does not alter production behavior, wire formats, SSH, folder workspace, platform, path, shortcut, mobile, or provider behavior.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck, tests, and packaging pass locally or in CIAuthor