Repository navigation
test: replace removed Vitest sequential API - #138175
Conversation
Co-authored-by: Peter Steinberger <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 6:51 AM ET / 10:51 UTC. ClawSweeper reviewWhat this changesThe PR replaces sixteen deprecated Vitest serial-suite declarations with the supported Merge readiness✅ Ready for maintainer review Keep open. This is a clean, maintainer-authored test-only compatibility preparation with no blocking correctness or security findings; the recorded member decision resolves the prior Vitest-contract question and exact-head CI is green. Priority: P3 Review scores
Verification
How this fits togetherVitest suite declarations schedule OpenClaw’s gateway, browser, cron, TUI, script, and Control UI tests. This change preserves serial fixture lifecycles while preparing those suites for a later Vitest 5 dependency migration. flowchart LR
A[Test suites] --> B[Suite scheduling declaration]
B --> C[Vitest test scheduler]
C --> D[Serial fixture lifecycle]
D --> E[Gateway, UI, and tooling test results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 16 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land this standalone compatibility preparation before the broader Vitest 5 migration so runner modernization does not also have to carry obsolete suite syntax. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR prepares test declarations for an upstream API removal rather than reporting a deployed product failure. Is this the best way to solve the issue? Yes. Replacing the removed chained suite API at its sixteen call sites preserves the existing serial fixture boundary without coupling a dependency upgrade or runtime change into this PR. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bcbb0b5fc328. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
ClawSweeper follow-up for reviewed head
This addresses the upstream-contract merge-risk item. The review-confidence item remains gated on the requested fresh verdict; the existing blocked marker will not be bypassed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer decision for exact head Reason: the runtime probe confirms |
|
The explicit maintainer decision for exact head @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
Related: #137201
Source PR: #137202
Additional instructions
This branch allows maintainer edits.
What Problem This Solves
Vitest 5 removes the chained
describe.sequential(...)suite API used by 16 OpenClaw test suites. This prepares those suites for the stable Vitest 5 migration without changing their ordering behavior or requiring the dependency upgrade in the same PR.This extracts Peter Steinberger's v4-compatible preparation from the source PR above and preserves his authorship credit.
Why This Change Was Made
Each affected suite now uses the supported options form,
{ concurrent: false }. The change remains compatible with Vitest 4, preserves the explicit serial-execution contract, and leaves assertions, fixtures, runtime code, dependencies, and the lockfile unchanged.User Impact
There is no user-visible runtime impact. Developers can land this compatibility preparation independently, reducing the size and risk of the later Vitest 5 dependency migration.
Evidence
sequentialchain property and retains theconcurrentoption.git diff --checkpassed..sequential(...)calls after this change.node_modulesmissing compatiblemarkdown-it,mermaid, and@panzoom/panzoomresolution. Exact-head hosted CI remains required.