Repository navigation
test(realtime): reuse canonical terminal fixture promise helpers - #134949
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Landing review: all 27 original terminal cases retain their exact native identities and pass, together with 25 OpenAI terminal/event sibling cases. The selected suppressed completion signal fails through the unchanged two-second deadline; the post-close observation confirms disconnected bridge, closed tracked socket, zero ws clients and no HTTP listener. Source restoration and managed process/output completion were verified. Full local changed-file checks and scoped Codex autoreview passed; production delta is zero, tests +37/-64. Exact-head CI run 33480520793 passed. The latest ClawSweeper comment is its pickup acknowledgement, with no findings or Rank-up moves to apply. No completed ClawSweeper review is claimed. The PR retains the documented setup-before-try and xAI nonqueued-wait follow-ups. This consolidation claims no elapsed speedup or general asynchronous-settlement guarantee. |
|
Merged via squash.
|
What Problem This Solves
The OpenAI and xAI real-socket terminal fixtures carry local deferred and timeout implementations already provided by the public plugin SDK.
Why This Change Was Made
Reuse the canonical helpers and explicitly type all seven completion signals as void. Preserve each event producer, the OpenAI terminal microtask, the seven existing two-second diagnostics and the fixture teardown sequence.
User Impact
Test-only: production +0/-0; tests +37/-64 (net -27). Both complete describe bodies remain byte-identical: eight OpenAI cases and nineteen xAI cases, with all original assertions and payloads. The removed timeout copies already cleared their timers; no new timer-leak fix, removed socket startup or elapsed-time speedup is claimed.
Evidence
Source and dependency review confirms the helper contracts and retained fixture boundaries. Parser-only checks preserve the 8/19 expanded case counts, 11/12 source expect calls, seven explicit void-deferred sites and all seven two-second diagnostics.
Normal before/after pass 8/8 OpenAI and 19/19 xAI, with identical ordered native identities/statuses including repeated truncated labels. The OpenAI terminal/bridge-events sibling run passes 25/25. Suppressing only the OpenAI terminal completion signal produces the sole selected failure, 'timed out waiting for terminal response', through the existing two-second helper; seven cases skip, with no unhandled/global timeout. The saved post-close observation records a disconnected bridge, one closed tracked socket, zero ws clients and no HTTP listener after the actual completed event/outcome. This covers only that normal-setup, suppressed-signal path. Exact source restoration and managed runner group/leader/output completion were recorded and the restored source hashes match. Full changed-file gate exit 0 is confirmed. Scoped Codex autoreview returned no findings at its requested review threshold. This does not establish complete asynchronous settlement, setup-failure cleanup, a bound for the xAI nonqueued wait, hosted CI, or landing. No elapsed-time speedup is claimed.
The selected completed-only tool assertion is unchanged but is not reached under this fault; the normal passing run supplies that behavior proof.
Named follow-ups remain: setup precedes the fixture try/finally, and the xAI ordinary nonqueued completion wait remains unbounded. This change does not repair or prove setup-failure cleanup, and an outer test timeout must not be treated as proof that the unbounded path enters cleanup.