Repository navigation
refactor(openrouter): simplify music stream test fixture - #150495
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 12:14 AM ET / 04:14 UTC (Revision 4). ClawSweeper reviewWhat this changesSimplifies the OpenRouter music test fixture by requiring audio and always adding the completion event, preserving existing scenarios and assertions. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped cleanup with no actionable defects found. Current main retains the redundant fixture branches, and the linked test-audit campaign supports the work. Priority: P3 Review scores
Verification
How this fits togetherOpenRouter's music provider converts streamed audio and transcript events into generated music assets. The changed test helper supplies synthetic streams to exercise that provider's decoding, completion, and cleanup behavior. flowchart LR
A[Test audio and transcript] --> B[Stream fixture]
B --> C[Audio event and completion event]
C --> D[OpenRouter music provider]
D --> E[Generated audio and lyrics]
E --> F[Existing assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -10. Total -10 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing local fixture focused on its actual callers while preserving independent malformed, incomplete, and stalled-stream coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this is fixture cleanup, not a reported runtime bug; source inspection confirms all affected callers already supplied audio and completion. Is this the best way to solve the issue? Yes: narrowing the existing helper removes unused flexibility without creating another abstraction or weakening the retained scenarios. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c964f99a2444. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
f96600d to
c259941
Compare
c259941 to
5bd442f
Compare
|
Merged via squash.
|
Related: #139428
What Problem This Solves
The OpenRouter music tests carry optional stream-fixture branches that none of their callers use.
User Impact
No user-visible change. Production code, all 27 selected test cases, and their assertions remain unchanged.
Why This Change Was Made
Require the audio value every caller already supplies and always append the completion event. Keep optional transcripts, event order, and the existing fixture construction, while removing four redundant completion arguments.
Evidence
a13ecd23; PR150482 closed unmerged as superseded.5bd442fb29b25996263c3f28a58722e7b5529668has passed all 26 OpenRouter unit cases, its transport case, and all 28 corrected Qwen cases. The frozen-lock checkout also passed the actual extension-test compiler, emitted 9,762 SDK declarations, passed the OpenRouter and other extension/script type-aware lint shards, full formatting, and package-boundary compilation including OpenRouter. This is hosted candidate proof, not a hosted before/after pair or a full lint-pipeline claim.