Skip to content

test(ci): stabilize plugin prerelease async waits - #117684

Merged
vincentkoc merged 2 commits into
mainfrom
fix/release-plugin-prerelease-flakes-20260801
Aug 1, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/release-plugin-prerelease-flakes-20260801

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • await server-side bridge cleanup before asserting replaced voice-call session closure
  • await the actual Mistral overflow callback before polling terminal session state
  • remove two resource-sensitive flakes observed in full release plugin prerelease validation

Proof

  • node scripts/run-vitest.mjs extensions/voice-call/src/webhook/realtime-handler.test.ts --reporter=dot
  • node scripts/run-vitest.mjs extensions/mistral/realtime-transcription-provider.test.ts --reporter=dot
  • 10 bounded repetitions of each focused file after the fix
  • autoreview clean (gpt-5.6-sol, high, confidence 0.99)

Release evidence: https://github.com/openclaw/openclaw/actions/runs/30721878666

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call extensions: mistral size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 23:15
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:25 PM ET / 23:25 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 1 item remains

This 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 openclaw/ci-gate and the real-behavior-proof checks successful; the branch is cleanly mergeable but behind main, so it needs the ordinary current-merge-result check rather than cleanup closure.

Priority: P3
Reviewed head: 034e710927052f1d0c50ce43637ad0d0449c8aba

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is narrow, follows existing async test patterns, and has focused repeat-run plus exact-head CI evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored test-only PR is outside the external contributor proof gate; its body nevertheless supplies focused repeat-run evidence and the provided check context is successful.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored test-only PR is outside the external contributor proof gate; its body nevertheless supplies focused repeat-run evidence and the provided check context is successful.
Evidence reviewed 6 items Mistral terminal owner: The provider's overflow path marks the session terminal, closes the transport, then invokes onError; the PR waits for that callback before checking the same terminal outcome.
Voice-call async assertion pattern: The voice-call test suite defines waitForRealtimeTest around vi.waitFor and already uses it throughout WebSocket and bridge lifecycle assertions; the PR applies that established pattern to the replaced bridge close assertion.
Proposed branch changes: The Mistral wait is positioned after session.connect() and before terminal assertions; the voice-call wait is positioned after the old WebSocket closes and before checking only the old bridge was closed.
Findings None None.
Security None None.

How this fits together

Bundled 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]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: this is an active maintainer-labeled member PR with a correct narrow patch and ordinary merge verification remaining.
Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 9 2 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 9 2 +7

Review metrics

None.

Merge-risk options

  • GitHub reports this otherwise clean PR is behind current main. Confirm the current merge result preserves both waits and that required checks remain green before merging.

Maintainer options:

  1. Decide the mitigation before merge
    Land the two focused waits after refreshing or validating the current merge result; keep the production Mistral and voice-call behavior unchanged.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a two-test flake-stability repair with no production, configuration, API, or persisted-state change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored test-only PR is outside the external contributor proof gate; its body nevertheless supplies focused repeat-run evidence and the provided check context is successful.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Recent current-main history credits Vincent Koc with the voice-call bridge isolation, stale-socket cleanup, and provider-audio test work that this PR's lifecycle assertions cover. (role: recent area contributor; confidence: high; commits: e745f5301430, ab3109a5981b, 980550ffcb89; files: extensions/voice-call/src/webhook/realtime-handler.ts, extensions/voice-call/src/webhook/realtime-handler.test.ts, extensions/mistral/realtime-transcription-provider.test.ts)
  • Peter Steinberger: Peter Steinberger recently changed CI test observability and asynchronous completion waits in adjacent test infrastructure, making this a useful review-routing contact for the flake-stability pattern. (role: recent CI test contributor; confidence: medium; commits: deabae48d337, c6bad23f2d71; files: extensions/mistral/realtime-transcription-provider.test.ts, extensions/voice-call/src/webhook/realtime-handler.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Validate the current merge result against main and retain green required checks before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-01T23:21:12.875Z sha 034e710 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit 2f06ed3 into main Aug 1, 2026
162 of 169 checks passed
@vincentkoc
vincentkoc deleted the fix/release-plugin-prerelease-flakes-20260801 branch August 1, 2026 23:31
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* test(voice-call): await replaced bridge cleanup

* test(mistral): await runaway transcript error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call extensions: mistral maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant