Repository navigation
fix(qwen): prevent elapsed-time flakes in video generation tests - #150523
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 16, 2026, 11:02 PM ET / September 17, 2026, 03:02 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR makes Qwen video-generation tests account for elapsed preparation time and adds coverage that an exhausted default timeout prevents polling. Merge readiness✅ Ready for maintainer review This remains a useful, focused test repair: current main retains the incorrect exact-timeout assertion. No actionable correctness or security defects were found, and the maintainer-owned PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherQwen’s video plugin passes generation requests to OpenClaw’s shared DashScope implementation, which submits a task, polls its status, and downloads the video under one operation deadline. These tests exercise that plugin boundary with mocked HTTP transport. flowchart LR
A[Prompt and reference images] --> B[Qwen video plugin]
B --> C[Shared operation deadline]
C --> D[Submit generation task]
D --> E{Budget remains?}
E -->|Yes| F[Poll and download video]
E -->|No| G[Timeout error]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +40. Total +40 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep deadline enforcement in the shared runtime owner and make plugin tests validate the remaining budget without depending on wall-clock scheduling. Do we have a high-confidence way to reproduce the issue? Yes: advancing the clock between deadline creation and submission makes current main’s exact 120000 assertion fail. Source supports the reported deterministic reproduction; this read-only review did not run tests. Is this the best way to solve the issue? Yes: the bounded assertion matches the shared deadline contract, while the expiry case checks the real plugin entrypoint and preserves production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ca2d1dfcd16. LabelsLabel 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)
|
Follow #117781's shared operation deadline in the Qwen submission assertion. Bound the request timeout by observed elapsed time and force a clock tick so the former 119999-versus-120000 failure reproduces deterministically. Verify that exhausting the default budget prevents polling. Preserve the other request and result assertions without changing production behavior. Failing job: https://github.com/openclaw/openclaw/actions/runs/35170534804/job/105041242550
7f7bc9a to
5daddf1
Compare
|
Merged via squash.
|
Use the current-main Qwen fixture from openclaw#150523 and openclaw#82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history.
* fix(plugin-runtime): restore channel turn alias * test(plugin-sdk): type channel turn alias override * fix(plugin-sdk): preserve legacy turn mock overrides * test(plugin-sdk): refresh channel turn alias gates * Align legacy channel compatibility paths for current-main repair Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence. * fix: preserve complete legacy channel runtime alias Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned. Closes #91122 Co-authored-by: Yzx <[email protected]> * fix(ci): integrate canonical channel alias prerequisites Consume the reviewed file-preview lazy-English extraction from #150424, the cold worktree input closure, and the Qwen initial-deadline fixture from #150026. Native manifest closure is now also present on main via #150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical UI startup repair Replace the temporary file-preview extraction with the current-main implementation from #150491 before merging main. Preserve the channel alias repair and existing contributor ancestry. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical Qwen fixture Use the current-main Qwen fixture from #150523 and #82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Yzx <[email protected]>
Follow openclaw#117781's shared operation deadline in the Qwen submission assertion. Bound the request timeout by observed elapsed time and force a clock tick so the former 119999-versus-120000 failure reproduces deterministically. Verify that exhausting the default budget prevents polling. Preserve the other request and result assertions without changing production behavior. Failing job: https://github.com/openclaw/openclaw/actions/runs/35170534804/job/105041242550
* fix(plugin-runtime): restore channel turn alias * test(plugin-sdk): type channel turn alias override * fix(plugin-sdk): preserve legacy turn mock overrides * test(plugin-sdk): refresh channel turn alias gates * Align legacy channel compatibility paths for current-main repair Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence. * fix: preserve complete legacy channel runtime alias Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned. Closes openclaw#91122 Co-authored-by: Yzx <[email protected]> * fix(ci): integrate canonical channel alias prerequisites Consume the reviewed file-preview lazy-English extraction from openclaw#150424, the cold worktree input closure, and the Qwen initial-deadline fixture from openclaw#150026. Native manifest closure is now also present on main via openclaw#150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical UI startup repair Replace the temporary file-preview extraction with the current-main implementation from openclaw#150491 before merging main. Preserve the channel alias repair and existing contributor ancestry. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical Qwen fixture Use the current-main Qwen fixture from openclaw#150523 and openclaw#82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Yzx <[email protected]>
…50663) Fix flaky Google pending-response callback coverage when a loaded worker spends long enough in transport setup for the fixture's parent safety abort to fire first. Parent cancellation correctly suppresses deadline recovery, so that competing timer could make the test fail despite correct runtime behavior. Wait for callback entry and advance fake time across the existing first-response deadline. Preserve cancellation, retry, callback-count and recovered-content checks, and assert a successful stop. Production behavior, timeout settings and configuration are unchanged; the one existing test changes by +24/-24 lines. Related: #150523 Validation: exact-head CI run 35193375763 passed; the validated test bytes are unchanged. The PR records 20/20 Google deadline passes, a controlled setup-delay reproduction and a deadline mutation failure. Codex autoreview and the exact-head ClawSweeper review found no actionable issues.
…enclaw#150663) Fix flaky Google pending-response callback coverage when a loaded worker spends long enough in transport setup for the fixture's parent safety abort to fire first. Parent cancellation correctly suppresses deadline recovery, so that competing timer could make the test fail despite correct runtime behavior. Wait for callback entry and advance fake time across the existing first-response deadline. Preserve cancellation, retry, callback-count and recovered-content checks, and assert a successful stop. Production behavior, timeout settings and configuration are unchanged; the one existing test changes by +24/-24 lines. Related: openclaw#150523 Validation: exact-head CI run 35193375763 passed; the validated test bytes are unchanged. The PR records 20/20 Google deadline passes, a controlled setup-delay reproduction and a deadline mutation failure. Codex autoreview and the exact-head ClawSweeper review found no actionable issues.
Related: #117781 and #150427.
What Problem This Solves
Fixes the flaky Qwen Wan generation test when request preparation consumes part of the default timeout, as seen in the extensions-bundle-11 failure on #150427.
User Impact
No user-visible behavior changes. The shared 120,000 ms deadline continues to cover submission, polling, and download.
Why This Change Was Made
#117781 correctly applied the operation deadline to requests using the default timeout. The existing test still expected the entire budget at submission, so a single elapsed millisecond made it fail.
Bound the submission timeout by observed elapsed time, force the clock to advance so the regression is deterministic, and verify that exhausting the default budget prevents polling. All other request, polling, and result assertions remain intact. Production code is unchanged.
Evidence
388584f9d9f27d466b6ba793b132b3a0353d3baa: 4/10 normal runs and 3/7 completed shard runs failed withexpected 119999 to be 120000.--shard=4/4, and two workers: 71 files and 1,297 tests, on macOS with Node 26.8.2.--mode branch --base origin/main --max-priority P1: scoped-clean, no actionable P0/P1 findings.+0/-0; tests+66/-26(net +40).