Repository navigation
fix(ci): split slow hourly tests across hosted runners - #157302
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 24, 2026, 11:49 AM ET / 15:49 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch splits slow hourly hosted Node test groups into separate CI jobs, adds an inventory and row-budget guard, and documents the routing. Merge readiness✅ Ready for maintainer review This PR remains useful: current main lacks the hourly hosted split, and a hosted workflow run shows faster validation with the selected Node tests completing. The reviewed patch has no identified blocking defect. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's CI planner turns the selected test inventory and timing estimates into runner jobs. The hourly main workflow dispatches those jobs and collects their results. flowchart LR
A[Hourly main CI] --> B[Node test planner]
C[Test inventory and timings] --> B
B --> D{Hosted main group?}
D -->|yes| E[Bounded dedicated rows]
D -->|no| F[Ordinary packed rows]
E --> G[Hosted test jobs]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +68, Docs +1, Other +36. Total +105 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the focused hosted-main split in the existing planner, preserving the full test inventory and hard row cap; address the remaining mixed-row delays through their routing owner. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug. The slow hourly CI path has a recorded hosted baseline and an after-change workflow run. Is this the best way to solve the issue? Yes. The existing Node planner owns this placement, and the branch confines the split to hosted main planning while preserving the selected tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02ad6b76b1a2. LabelsLabel changes: No label changes. Label 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) |
1c04aa5 to
6c6fc85
Compare
What Problem This Solves
Hourly main validation still spent 49m10s in one hosted Gateway/storage row and 28m12s in an agent-chat row after #157186 restored the main tier. Both rows were forecast at only 210 seconds. This patch splits the measured heavy work across free hosted rows.
The hourly target is not yet met: the observed wall fell from 56m16s to 40m03s. All eight dedicated chat, Gateway-methods and updater rows passed below 15 minutes; other mixed rows, queue delay and native build time remain on the critical path.
User Impact
No product behavior changes. Every selected test, assertion, config, worker limit and build prerequisite remains covered. The current hosted main plan grows from 61 to 69 compact rows, within its existing 70-row budget. The planner changes no PR, full-release or paid-runner placement policy; the new guard joins the existing relevant-tooling inventory. No runner variables, deadlines, caps or timing samples were changed. Auto-merge is off.
Why This Change Was Made
The existing splitter bounds main-hosted agent-chat groups to 30 files and Gateway-methods groups to 96. Their larger children have dedicated rows so stale estimates cannot pack them together again. Small Gateway tails retain ordinary packing. Storage keeps its 64-file bound, with the measured updater file alone.
With the candidate test inventory held fixed, swapping the planner preserves the complete file multiset, configs, environment and build modes. Hosted PR (76 rows), hybrid main/PR (65/77), and Blacksmith main/PR (57/71) plans are byte-identical under that comparison. The added guard is the only new test inventory. No test changes verification tiers. No inventory is deleted or skipped to achieve the timing result.
Evidence
Baseline: hourly-equivalent 35983526919, source
a7aa63b79eab77581eb2b75cb3125bd3cb7af6be. Candidate: hourly-equivalent 36006363817, sourcebc81c1256fbb3b3f9ea7ed91be315c63d65b469c, rebased onb9da50953aa8after #157186 merged. The sampled native Node logs confirm four CPUs, about 15.6 GiB RAM, one admitted child at a time, and the intended file selections.The slowest dedicated methods row spent 798.67s in its group; the slowest chat group spent 630.40s; the updater group spent 336.59s. These are separate from setup/job wall time. Smaller methods tails and other storage work remain in mixed rows and are included in the remaining-tail table below.
Observed workflow reduction: 973 seconds (16m13s). Initial preflight wait changed from 5s to 64s; excluding only that wait gives 56m11s → 38m59s. Candidate baseline ratchets additionally queued for 325s, and some Node rows waited several minutes after matrix creation. These runs also contain inherited main changes, including updater-test simplification; the entire observed difference is not attributed solely to this patch.
Inventory removed from PR/main: zero tests / zero test-seconds. Eight additional hosted rows cost no paid-runner routing; parallel wall reduction is not a claim of reduced aggregate test work.
scripts/lib/ci-node-test-plan.mtstest/scripts/ci-node-test-plan-hosted-tail.test.tsdocs/ci/scope-and-routing/node-test-lanes.mdThe guard passed 10/10 Linux candidate runs. Its first three walls were 27.98/27.16/25.37s. Three runs against the original planner all failed on the intended 90-file envelope (25.17s median, expected failures); no guard-runtime speedup is claimed. The complete
core-tooling-14owner shard passed 80 files / 4,076 tests in 690.49s. The four required sibling files passed another 2,405 tests in 395.20s (400.30s wrapper wall). The Blacksmith lease stopped cleanly. The proof checkout omitted only an unrelated tracked.artifactsPR-body report rejected by the unchanged privacy policy; executable candidate files were checksum-verified.P2 autoreview is scoped-clean. Changed-file checks, type checks, type-aware lint with a failing floating-Promise canary, formatting, docs MDX/link sanity and diff checks passed. The rebased guard passed once at one worker in 10.87s. The rebase preserves the reviewed patch.
Remaining tail and CI failures
S2 currently has no supported interface for promoting only these hourly hosted envelopes. Its pending routing work rebuilds the hybrid plan, excludes ordinary hourly dispatch and changes outer worker capacity. The complete measured group signatures were handed to S2 for an admission/placement extension that preserves the hosted remainder, full-family scope, effective worker limits and row budget. No competing routing path was added here. The 28m54s iOS smoke plus workflow prefix also leaves little room for a 30-minute wall target.
Exact-head PR CI 36006570169 passed the new guard and 110 jobs, but failed four cases in
full-release-artifact-contract.test.ts. Release sealing introduced by #156812 requires qualified npm/preflight evidence that those fixtures omit; a secretless single-case replay reproduced the token prerequisite failure in 3.89s. A bounded, discarded fixture-only investigation preserved every assertion and exposed a second inconsistency: production hard-codes stable performance as advisory while the retained stable assertion requires blocking. No assertion or publication policy was weakened to clear CI. This remains with the release owner.The hourly run failed two unchanged native surfaces: the Mac packaging fixture matches the
codesign | grep -q/pipefaildefect addressed by open PR #157116; the Windows installer/healthyprobe repeats MV1's documented outer PowerShell timeout at 10.132s, before stalled-download assertions. Prior focused/ordered Windows diagnostics passed without establishing a repair. Both logs were handed to MV1; no retries, deadline increases or duplicate patches were made.