Repository navigation
test(ci): stabilize plugin prerelease async waits - #117684
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:25 PM ET / 23:25 UTC. ClawSweeper reviewWhat this changesThe PR makes the Mistral realtime-transcription and voice-call webhook tests wait for their asynchronous error and bridge-cleanup callbacks before asserting terminal state. Merge readinessThis active, maintainer-labeled member PR is still necessary: current main does not contain either synchronization wait, and the two changes correctly align assertions with asynchronous terminal callbacks. The supplied exact-head CI context reports Priority: P3 Review scores
Verification
How this fits togetherBundled plugin prerelease tests exercise realtime network flows and then verify their terminal callbacks. The Mistral provider emits an error after a transcript-overflow terminal path, while the voice-call handler closes a replaced bridge asynchronously after its WebSocket closes. flowchart LR
A[Realtime test fixture] --> B[Plugin session or bridge]
B --> C[Async error or close callback]
C --> D[Terminal state and cleanup]
D --> E[Test assertions]
E --> F[Plugin prerelease CI]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 2 files. View PR surface stats
Review metricsNone. Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Land the two focused waits after refreshing or validating the current merge result; keep the production Mistral and voice-call behavior unchanged. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the Mistral fixture delivers events after session setup and the voice-call bridge cleanup can follow WebSocket closure, while the prior assertions read those effects immediately. The PR body also reports ten bounded focused repetitions of each repaired file. Is this the best way to solve the issue? Yes: it waits for the authoritative error callback in Mistral and reuses the suite's existing polling helper for voice-call cleanup, rather than altering runtime code or weakening the assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b2278f3d1059. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* test(voice-call): await replaced bridge cleanup * test(mistral): await runaway transcript error
Summary
Proof
node scripts/run-vitest.mjs extensions/voice-call/src/webhook/realtime-handler.test.ts --reporter=dotnode scripts/run-vitest.mjs extensions/mistral/realtime-transcription-provider.test.ts --reporter=dotgpt-5.6-sol, high, confidence 0.99)Release evidence: https://github.com/openclaw/openclaw/actions/runs/30721878666