Repository navigation
test(runtime): avoid unused RPC catalog setup in listener tests - #29324
Conversation
…audit-runtime-construction
…ntime-construction
…test-audit-runtime-title-startup
…test-audit-chat-render-startup
…test-audit-runtime-close-startup
…at-render-startup
…at-render-startup
…st-audit-runtime-close-startup
…udit-bind-host-startup
…udit-bind-host-startup
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
…test-audit-bind-host-startup
ELI5
The listener-security tests keep every existing check while avoiding unrelated RPC method loading. Application behavior is unchanged.
What Changed
Use the existing guarded empty RPC registry in all 20 server constructions. All 19 case bodies and assertions remain unchanged, including real servers, device registries and WebSocket clients. The only change is 21 added test lines; production code is unchanged.
Why
These tests call server APIs directly and never dispatch an RPC request. The existing registry option removes unnecessary startup work without replacing listener or pairing behavior. The existing guard throws if a constructor accidentally uses the full default catalog.
Linked Issue
Maintainer-requested audit of tests running on every PR.
Visual Proof
N/A — test setup only; no UI change.
Testing
Local worker measurements do not establish whole-PR elapsed or billed-runner savings. Historical hosted observations are superseded by the required current-head qualification.
Review
Independent preservation review verifies that removing only the fixture import and 20 registry options exactly restores the parent file. Every existing assertion and real transport path is preserved. Current pinned-port policy and its dedicated sibling remain intact.
Agent skill upstream boundary
Notes
No production behavior, platform condition, wire format, SSH execution or folder-workspace assumption changes.
Checklist
Final hosted qualification
Exact head
53305204passed fullpr.ymlrun 38889388272 and aggregate job 116937916025, with all 31 attached checks terminal success/skipped. All 19 cases pass under Bun; all five inventories reconcile (12,347 unique modules, no duplicates/unhandled errors/omitted failures). Original successful baseline module time about 2.982s → 1.722s, execution 204ms → 185ms. This is unpaired focused work with source drift, not whole-PR elapsed savings. Merged after exact-head validation.