Repository navigation
ci: refit shard weights within existing runner caps - #135585
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 7:43 PM ET / 23:43 UTC. ClawSweeper reviewWhat this changesThe PR refreshes CI timing metadata and compact-shard packing limits, adds a conservative fallback for changing agent-support test inventories, updates planner tests, and aligns a Control UI test selector. Merge readinessThis maintainer-authored PR still carries a distinct CI timing refit; its sidebar selector is already aligned with current main, but the exact-head shard matrix remains incomplete before merge. Priority: P3 Review scores
Verification
How this fits togetherCI timing metadata feeds the Node and Control UI shard planners, which turn test inventories and historical durations into runner-limited job partitions. Those partitions drive GitHub Actions execution rather than OpenClaw product runtime behavior. flowchart LR
A[Successful CI runs] --> B[Timing metadata]
C[Test inventory] --> D[Shard planner]
B --> D
D --> E[Runner-cap checks]
E --> F[GitHub Actions jobs]
Decision needed
Why: The protected maintainer label requires explicit maintainer handling, and the remaining decision depends on the unfinished workflow result. Before merge
Agent review detailsSecurityNone. PR surfaceTests +4, Docs +2, Other +58. Total +64 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the refreshed estimates after the exact-head workflow confirms every generated partition remains inside the existing runner caps and preserves complete test ownership. Do we have a high-confidence way to reproduce the issue? Not applicable: this is CI-planning maintenance, so the relevant reproduction is the planner and exact-head workflow matrix rather than a user-facing defect flow. Is this the best way to solve the issue? Yes, provisionally: refreshing the established timing inputs while retaining the existing cap and inventory invariants is the narrowest maintainable approach; the remaining matrix must confirm it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 50f7f06d8ba3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward.
Use the canonical session-label selector landed in #135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
* ci: refit shard weights within existing runner caps * ci: retain support shard costs across inventory changes * test: select the catalog session label for marquee resets Scope the lifecycle fixture to the session row after catalog headings gained their own marquee. Assert both label values while retaining DOM replacement, class, and style checks. Reproduced on main before the fix; all 323 sidebar tests pass afterward. * test: align catalog label selector with main Use the canonical session-label selector landed in openclaw#135597. Keep both label-value checks and all marquee reset assertions while removing the duplicate conflict.
Related: #135440
What Problem This Solves
Broad CI runs use stale shard weights, leaving uneven Node and Control UI work. Agent support also falls back to an obsolete estimate when its file inventory changes: adding one test invalidated the old 240-file generation and collapsed four hybrid parts into two. In run 33561910652, one resulting 121-file part took 273 seconds despite a 94-second prediction.
Why This Change Was Made
The existing refitter recomputes 261 weights from successful canonical main-push runs 33537556582, 33537739443, and 33543106647. It retains the two-run minimum, outlier rejection, exact membership identities, and runner-profile separation. No new release Gateway samples were available, so the Gateway map is unchanged.
The hosted large/small packing budgets move from 90/107 to 94/114 predicted seconds so the refreshed measurements fit the unchanged 96-row hybrid and 112-row GitHub caps. The PR-only performance lifecycle fallback becomes 136 seconds, rounded up from two successful Blacksmith wrapper spans; canonical main pushes omit that tooling family.
Agent support now retains a 479-second native fallback, rounded up from complete successful outer shard spans of 478.253, 450.212, and 418.125 seconds in the same three main runs. This is a conservative estimate for inventory changes, not a claimed measurement of the new 241-file generation. Hybrid retains that observed native budget without the older whole-suite scale; the existing 253-second hosted fallback is unchanged. Twelve relative file weights use median case-body sums to separate the slowest support owners. The current hybrid inventory splits into four complete, non-overlapping parts. Direct parent measurements still replace the fallback, and matching child or complete-generation samples can raise the parent-derived floor.
The documentation describes serial compact execution and the actual manual-dispatch exception: seven check rows can use Blacksmith under the unset/Blacksmith backend. Those manual admissions are outside the stated main/PR arrival estimate; routing is unchanged.
User Impact
Maintainers get shard allocation based on newer successful CI observations, including a fallback that survives support-file growth. Coverage, worker limits, process isolation, retries, and runner caps are unchanged. There is no product runtime change. Queue delay and remaining build/test tails still need direct measurement before claiming a sub-five-minute workflow.
Evidence
node scripts/check-changed.mjs --base 9a70559beb29001b16b446fe312719790f0a4c53passed on Node 24.19.0 and pnpm 12.1.0, including script/test types, lint, formatting, and repository guards.git diff --checkpassed.9c0ef3b41844ed836625060981e47a1880f38d25; all 323 sidebar cases pass with the repair. Preceding headd851c0e2a4abdb99ea715851a052ff6d144ee5c9passed native CI 33569988479 on its first attempt: 153 successful jobs and thirteen intentional skips, including the repaired sidebar case. Full workflow time was 7m17s; no sub-five-minute result is claimed.Local owner commands:
node scripts/run-vitest.mjs test/scripts/ci-test-timings.test.ts test/scripts/ci-node-test-plan.test.ts node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts -t 'child groups by the slower'The conservative arrival estimate remains
4 * (96 + 87) + 19 * (112 + 78 + 87) = 5,995registrations against the 6,000 operating target and the observed 10,000-registration bucket. Independent audits agree on 87 other potential rows and 78 plugin fallback rows. This has only five registrations of headroom under those assumptions; it is not an organization-wide admission cap or evidence of physical runner availability.Judged LOC: product runtime +0/-0; CI tooling +28/-7; timing data +252/-215; documentation +11/-9; tests +10/-9; test support +5/-2. The tooling growth records measured fallback provenance and relative placement weights; no new scheduler or test execution path is added.
The related wording-only PR #135469 changes the automated publisher's description of sample sources; this PR leaves that publisher unchanged.
Review disposition
The 23:43 UTC ClawSweeper review covers final head
d90babd7048cdf1d5bc291a0c95f06f12a473cc4, finds no actionable code/security defect, and asks only for the incomplete matrix to finish. Exact-head CI 33571672257 is now fully green on its first attempt: 133 successful jobs and sixteen intentional skips, 8m27s workflow time. Preflight and all twelve local planner combinations retain the enforced 96/112 caps. This satisfies the review's matrix and Rank-up request. The stored-data-model heuristic refers to static CI placement metadata; no persisted runtime data, schema, or migration changes.Main #135597 independently landed the same sidebar repair. The final head adopts its canonical session-label selector without changing assertions or planner behavior; a conflict-free merge was verified against main
759e127777b54426c922e8ab4c228523ddac04e9. Fresh native baseline50f7f06d8ba3d97c4650e0bcc1d66ed9332e2752has no overlapping planner, data, or runner change. Formatting and fresh full-diff Codex review at P0 pass, confidence 0.98. The five-minute objective remains open.