Repository navigation
test(discord): await the mark after clearing playback - #148268
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review The previous review run stopped before producing a review: its failure artifact records |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 9:56 AM ET / 13:56 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Discord playback integration test waits for resumed audio’s acknowledgment callback before checking which audio marks were recorded. Merge readiness✅ Ready for maintainer review No actionable findings. This remains a useful, maintainer-requested test follow-up absent from current main; the callback wait preserves the existing deadline and assertions. Priority: P3 Review scores
Verification
How this fits togetherDiscord voice playback converts provider audio into playable packets and acknowledges marks once their audio is consumed. This integration test checks that clearing queued audio discards its mark while subsequent audio still completes. flowchart LR
A[Synthetic provider audio] --> B[Discord playback]
C[Clear queued audio] --> B
B --> D[PCM encoder and audio player]
D --> E[Playback acknowledgment]
E --> F[Bounded test wait]
F --> G[Exact mark assertion]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep synchronization tied to the real playback acknowledgment while preserving exact mark checks, bounded failure, and unconditional cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable to a claimed production bug: this is a test synchronization follow-up, and the earlier CI failure's cause remains unproven. Tests were not executed in this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing deferred primitive connects completion to the observed playback event without extending the timeout, weakening assertions, or adding production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 36a725a599bc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Related: #148102
What Problem This Solves
The Discord continuous-playback clear/resume test polls recorded calls instead of waiting for the playback mark it needs to verify.
User Impact
No user-visible change. This is a maintainer-requested test follow-up needed to validate #148102; production playback is unchanged.
Why This Change Was Made
Resolve the existing deferred primitive from the
heardmark callback, then assert the exact recorded marks. The wait retains the existing 1,000 ms budget, player Idle/non-Idle checks, terminal-error assertion, and unconditional fixture cleanup. It uses the real playback SDK and PCM encoder with the existing synthetic provider and signalling-only connection.The failed CI job reported no recorded mark at its polling assertion. Its log does not establish why playback had not been observed. This change improves wait ownership; it does not claim a reproduced production bug or a proven cause for that CI failure.
Evidence
resumes continuous output after the provider clears unplayed PCMcase passed through the repository test wrapper: 1 passed, 11 skipped.