Repository navigation
perf(ci): remove repeated setup and balance complete test workloads - #134038
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 3:53 PM ET / 19:53 UTC. ClawSweeper reviewWhat this changesThis PR consolidates CI checkout, dependency caching, test planning, runner routing, and Testbox setup to remove repeated preparation while keeping complete test workloads. Merge readinessKeep open for maintainer handling: the supplied live state marks the current head as conflicting, and no exact-head CI/Testbox result is available for the final commit. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw CI checks out a trusted workflow harness, restores dependencies, plans test shards, and dispatches them to runners. This PR changes those automation control points and the resulting validation workload. flowchart LR
A[Pull request event] --> B[Preflight checkout]
B --> C[Trusted CI harness]
B --> D[Dependency cache]
D --> E[Test shard planner]
E --> F[Runner routing]
F --> G[CI and Testbox results]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +1539, Docs +30, Config -9, Other +109. Total +1668 across 76 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the integration onto current main, preserve the current-main CI and wrapper changes, then obtain green exact-head CI and applicable Testbox evidence before merge. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes CI automation rather than reporting an end-user bug; the relevant validation is an exact-head workflow and Testbox run. Is this the best way to solve the issue? Unclear: the owner-boundary consolidation is coherent in source, but the dirty merge state and absent exact-head result prevent a final best-fix conclusion for the merged workflow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 206fd47f4fa9. 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 (13 earlier review cycles; latest 8 shown)
|
d53c4bd to
735d282
Compare
|
@clawsweeper re-review The Windows CI follow-up now repairs the cold Anthropic registration owner. Auth and usage execution load through existing async hooks while synchronous provider metadata, auth order and the canonical credential factory stay intact. The unchanged real provider probe falls from 69.973 to 17.515 seconds locally; the final regression fails on original production, 145 owner tests and the full build pass, and the parent integrated changed gate and scoped Codex review are green. Native Windows exact-head CI remains pending. The body records the complete owner boundary, production growth and proof limits. The shared prompt fixture also uses the exact prepared-identity repair from #134094. No deadline, retry, coverage or concurrency change is added by these follow-ups. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
934b95c to
bdd0b5b
Compare
767c47e to
acbf9f0
Compare
|
Merged via squash.
|
…penclaw#134038) * perf(ci): reduce Windows test setup and worker time * perf(anthropic): defer auth loading until hook execution * perf(test): narrow selected config startup work * fix(ci): bound compiler memory on constrained lint runners * test(ci): prepare media fixture input capabilities * perf(test): scope selected unit configuration discovery * fix(ci): release cancelled runs and route hybrid control jobs * fix(ci): resolve merge bases before Testbox preparation * fix(ci): align gateway recovery validation with runtime contracts * perf(ci): avoid rename blob fetches during docs classification * test(ci): consolidate Testbox base preparation coverage * perf(ci): account for tooling work and shared build prerequisites * fix(ci): declare serial plugin config worker ownership * perf(ci): overlap independent performance Git lifecycle fixtures * perf(ci): partition the complete plugin catch-all with native sharding * perf(ci): reuse compiled session workers * perf(test): compare complete SQLite snapshots natively * test(ci): reuse race-safe process cleanup in report fixtures * fix(ci): preserve the trusted PR helper closure * test(ci): derive PR fixtures from the trusted helper closure * perf(ci): reuse matching checkout for harness actions * fix(ci): replace retained harness files during index export * perf(ci): restore exact caches on hybrid runners * fix(ci): include pnpm metadata in dependency archives * test(ci): own direct compiler checkpoints in dist fixtures * perf(ci): balance Windows projects by selected test costs * perf(ci): seed UI transforms and scope tooling prerequisites Keep package timeout observations joined across PID discovery, and test planner measurements against stable fixtures while preserving actual runtime-build singleton costs. * docs(ci): drop the note for the already-landed Telegram type fix * perf(ci): reuse preflight checkout and route hybrid macOS * test(ci): wait for command readiness before timeout proof
What Problem This Solves
CI repeats checkout, fixture compilation and dependency work, while its planner packs long suites using estimates that omit their prerequisites. The earlier complete green integration run took 19m 22s; the final native run takes 17m 31s. This change removes repeated work and balances the complete workload; whole CI below five minutes remains the target.
Why This Change Was Made
The canonical planner charges each job's strongest runtime prerequisite once, uses measured file costs, separates expensive tooling work and partitions the complete plugin catch-all. Windows keeps two jobs and two project slots, admits expensive selections first, and moves the cron process-identity test to its actual runtime owner so it no longer triggers full-package E2E preparation. Compiled session workers and native Buffer comparison remove repeated compilation and per-byte JavaScript work without changing SQLite data or schemas.
Checkout reuses the authenticated candidate index when the harness SHA is identical, including preflight. Different pinned revisions retain Actions checkout and its retry contract. Historical acquisition, authentication and cancellation stay with their existing owner. Hybrid macOS Node uses its existing hosted macOS 15 route with the same 19 files, two workers and deadline; macOS 26 siblings are unchanged.
Dependency restores use the actual runner environment and include pnpm registry metadata. The protected warmer remains the sole shared publisher. Standalone UI consumes its transform seed through the existing executor, preserving root Node maxWorkers=3 and Chromium's separate pool policy. Go follows the selected docs-translation consumer, reducing hybrid admissions from 17 to two. Scoped discovery, shared CPU/RAM policy for lint children, cancellation, docs classification and Testbox base preparation remove other repeated work.
The wrapper merge retains main's complete trusted source inventory, adds the planner's shared metadata dependency, and exposes only the four existing third-party tooling packages through native directory links. The obsolete fixture copier is removed. Package timeout proof waits for child readiness before expiring its captured deadline, then joins command and readiness outcomes before cleanup; actual process termination remains real. No production timeout is increased.
User Impact
Existing test inventories, trust boundaries, cache authority and runner limits are preserved. There is no new runner capacity, paid service, configuration option, persistent-store design, schema or protocol. Fresh protected cache keys remain cold until their producer lands and warms them.
This incorporates #134096, #134192, #134196, #133994, #133931 and #134279; they remain open until integration merge proof. Main's Linux runtime-only pretest (#134294) and complete UI file reporter (#134283) are preserved. The Windows prerequisite repair is part of this PR, not a result attributed to #134294.
Evidence
Final CI33434384581 at
5dc05ad785c4b2324545f9dbe707c467816973e7completes with 213 successful jobs and 8 intentional skips. ARM Testbox, Build Artifacts Testbox, Testbox and Workflow Sanity pass. Whole CI 17m 31s; preflight 37s, build 320s, UI 361s, Windows 408/409s, macOS 997s. These results remain above the five-minute target.CI33424685880 succeeds at 0c99d1c with all three applicable Testboxes and Workflow Sanity green. Preflight 86s, build 284s, Windows 386/395s; all 16 UI jobs pass. UI unit passes 852 files/13,138 cases plus one skip. Windows preserves 80 files/1,166 passes/179 skips; macOS 19 files/1,036 cases pass in 967s. Total 19m 22s is observed, not a controlled hardware/cache comparison.
CI33427822924 at c25 fails only the Windows 1 pnpm.cmd readiness race and the resulting aggregate. Other selected jobs pass. The corrected existing 55-case timeout suite passes 52 portable cases with three Windows-only skips locally; controlled delayed-start and cleanup-order proofs retain real signals and process-tree teardown. Native Windows confirmation at 5dc passes the descendant-timeout case in 3.324s and the package suite with 52 passes/3 existing skips.
Current head
5dc05ad785c4b2324545f9dbe707c467816973e7against main 6e436b4 resolves actual wrapper conflicts. Main's wider closure and trust checks, shared immutable test seed, OpenGrep fixtures and all six integration wrapper regressions are preserved. The first merged test run exposed the missing planner metadata and artifact-fixture auth response; both are repaired. The 13 affected extraction/alias/missing-toolchain/cleanup cases pass, alongside 49 initially passing wrapper/lock cases and 97 OpenGrep/hosted-gate cases. Changed-file format, script/root-test types, lint, erasability and ownership guards pass. Full-candidate Codex review is scoped-clean at the configured P0 threshold. Current-head CI and all applicable Testboxes now pass.Retained owner proofs cover checkout authentication/cancellation, complete matrices, dependency publication, prerequisite admission, compiled workers and source discovery. Full standalone UI proof passes 848 files/13,071 cases plus one skip; the protected seed serves 2,617 reads unchanged and all 166 observed children exit. This is local proof, not a hosted timing claim or proof of a three-worker Chromium cap.
ClawSweeper follow-through: its latest review of 2b59364 has no actionable code findings and requests conflict resolution plus exact-head CI/Testbox proof. This head resolves the captured main conflict, preserves the wider source boundary and has completed the requested native acceptance. Review freshness and current findings are checked before landing. The stored-data heuristic refers to CI cache metadata, with no SQLite or user-data change.
Named follow-ups: ingest the newly located successful main UI timing samples before refitting weights; share staged SDK declarations between full and CI builds (#134414); reduce macOS elevation fixture cost; isolate the existing built singleton smoke that restages shared dist-runtime before increasing artifact-check concurrency.
Judged delta against captured main 6e436b4: product runtime +16/-35 (net -19); CI tooling +643/-534 (net +109); tests/support +2333/-754 (net +1579, including the moved cron case); docs +77/-47 (net +30). Tooling growth provides canonical prerequisite admission, complete partitioning, matching cache publication/consumption and authenticated preflight reuse; moved timing facts replace old copies. No product-runtime growth.