Repository navigation
perf(test): shorten Google Meet reconnect proof - #124602
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready proof for
|
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 9:39 AM ET / 13:39 UTC. ClawSweeper reviewWhat this changesThis PR removes a 1.15-second reconnect observation from the Google Meet voice-call gateway test while retaining its real localhost failure and teardown assertions. Merge readinessKeep open for normal maintainer handling. The focused test-only deletion preserves the cross-boundary failed-connection assertion, while the shared client suite remains the delayed-reconnect owner proof; no correctness or security finding was identified. Priority: P3 Review scores
Verification
How this fits togetherThe Google Meet plugin delegates voice-call requests through the shared meeting gateway, which opens a Gateway client and tears it down after each request. A failed local WebSocket connection must not leave the client’s reconnect timer alive. flowchart LR
A[Google Meet voice request] --> B[Meeting gateway]
B --> C[Gateway client]
C --> D[Local WebSocket]
D --> E[Connection failure]
E --> F[Client teardown]
F --> G[Retry timer cleared]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -24. Total -24 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the immediate live-timer assertion in the Google Meet integration test and the shared client’s delayed fake-timer regression, then merge once normal exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR optimizes existing regression coverage rather than reporting a user-facing failure. Is this the best way to solve the issue? Yes. The shared client test already proves that a stopped reconnect path cannot create a later socket, and the retained real-localhost test still validates the Google Meet teardown boundary and absence of a live retry timer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b5491a08bf1c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The Google Meet voice-call gateway regression waits 1.15 real seconds after a failed localhost connection to re-prove that
GatewayClient.stopAndWait()cleared its reconnect timer. The same test already inspects the actual one-second retry timer, and the GatewayClient owner suite independently advances 30 seconds to prove stopped clients never reconnect.Why This Change Was Made
Keep the real cross-component proof but remove the duplicate elapsed observation window:
src/gateway/client.test.tsremains the owner proof that advancing well past the retry window creates no second socket.No mocks replace the real connection boundary, and production behavior is unchanged.
User Impact
Maintainer Google Meet test feedback is about 1.2 seconds faster while retaining the original failed-client teardown regression and its GatewayClient reconnect owner coverage.
Evidence
Controlled same-Testbox A/B on
tbx_01m05bdf2m3229wy5rj8ncja7d, with one excluded warmup and two retained samples per state, the same command, one worker, distinct filesystem module caches, import diagnostics, and/usr/bin/time -v:CPU and peak RSS were effectively flat, so this PR makes no resource-usage claim.
Validation:
clears pending reconnect timers on stoppassed.stopAndWait()fails the shortened real integration withstopCalls: 0andreferencedRetry: true; three sibling teardown cases fail too.+0/-0; test LOC:+0/-24.Testbox benchmark, mutation, and owner proof: https://github.com/openclaw/openclaw/actions/runs/31949314982
Final post-rebase changed gate: https://github.com/openclaw/openclaw/actions/runs/31949786933
AI-assisted: yes. The change and evidence were reviewed by the maintainer agent and fresh autoreview.