Repository navigation
ci: shorten command test jobs and avoid unused runtime builds - #135039
Conversation
Prepare runtime artifacts from each reader's effective test selection and keep the update dry-run process proof in the isolated CLI process catalog. Preserve runner capacity through semantic workload ownership instead of bin ordinals. Split the two longest Doctor SQLite files into complete-file owners that cannot share a compact job. Keep coverage, worker limits, and runner caps unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:32 AM ET / 09:32 UTC. ClawSweeper reviewWhat this changesThis PR makes CI prerequisite builds, Go setup, runner capacity, and Doctor command-test sharding follow the tests that actually consume those resources. Merge readinessKeep open. The introduced planner changes are coherent and no actionable correctness defect was found, but the maintainer-labeled PR still has exact-head CI jobs in progress. Priority: P3 Review scores
Verification
How this fits togetherThe CI planner turns test catalogs and changed-file selections into Vitest jobs, including their prerequisite builds and runner size. Its workflow matrix then runs those jobs for pull requests and main pushes. flowchart LR
A[Test catalogs and changed files] --> B[CI test planner]
B --> C[Prerequisite selection]
B --> D[Shard and runner assignment]
C --> E[Workflow job matrix]
D --> E
E --> F[Vitest test jobs]
F --> G[Pull request and main checks]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +280, Docs +1, Config +10, Other +74. Total +365 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared effective-selection prerequisite boundary and land only after the exact-head CI matrix confirms the resulting workflow plan. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a CI scheduling change, and its relevant exercise is the exact-head workflow matrix rather than a user-reported failure. Is this the best way to solve the issue? Yes. Selecting prerequisites from the shared effective test selection keeps local and CI paths aligned while avoiding runtime builds for unrelated tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 64e27531aaff. 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 (1 earlier review cycle)
|
|
Merged via squash.
|
…5039) Prepare runtime artifacts from each reader's effective test selection and keep the update dry-run process proof in the isolated CLI process catalog. Preserve runner capacity through semantic workload ownership instead of bin ordinals. Split the two longest Doctor SQLite files into complete-file owners that cannot share a compact job. Keep coverage, worker limits, and runner caps unchanged.
What Problem This Solves
Resolves broad CI spending time building a runtime for ordinary CLI tests and filtered tooling selections that do not consume it. The Doctor session/cron group also puts its two longest SQLite files in one process: a retained native run spent 340.84 seconds in that group, with 228.94 seconds in those two files.
Why This Change Was Made
Runtime preparation now uses the same effective include list as its readers, including caller-owned selection files. The update dry-run process proof moves into the existing isolated CLI-process catalog. Oversized runtime consumers use the existing complete-file splitter, and only the child containing the consumer prepares its runtime.
Runner capacity follows semantic workload owners and selected files before packing, replacing the three post-pack row-number promotions. The two long Doctor SQLite files receive separate owners, and the remaining 18 files stay together; those three owners cannot be packed back into one job. Go setup likewise follows the selected docs-i18n test or its ordinary tooling config.
User Impact
CI-only change. Product behavior, test cases, fixture sizes, worker limits, runtime-build integrity, and job/concurrency caps are preserved. The change removes unnecessary preparation and shortens command-test jobs toward the five-minute target; native timings below show the Doctor jobs meet that target, while ordinary CLI, Docker and some UI jobs still exceed it.
Evidence
4 × 182 + 19 × 276 = 5,972, below the 6,000 operating target. This leaves no practical room for additional fanout without reductions elsewhere.57501be293382f1e8c90cd613c467eeac4121408in run 33492093127. The first attempt had one failing UI composer render-budget case; one unchanged-head rerun of that shard and the aggregate passed. No test budget or assertion was changed.ClawSweeper follow-through: the current-main conflict is resolved with the UI-browser ownership split preserved. The refreshed review at 09:32 UTC has no correctness findings, and its exact-head CI rank-up is satisfied.
Follow-up: main-slot coalescing can replace a pending platform-changing push with a later unrelated push whose changed-path scope skips that platform. Selected PR/platform runs remain the timing evidence; a skipped main platform job is not proof of a pass.
Native observations: the three Doctor jobs took 184s, 223s and 154s; the two CLI-process jobs 265s and 248s; Go-tooling 234s. Logs confirm complete ownership, skipped runtime builds for ordinary CLI, and Go only on its tooling owner. The ordinary CLI job still took 480s (317s of CLI tests plus98s of co-packed tooling), Docker 475s, and artifact checks 362s. These jobs missed the exact dependency and protected Vitest transform generations; both build jobs restored an outer archive but reran their inner declaration compilers. This is not warm-cache performance proof or a claim that whole CI is under five minutes.
Follow-up from native CI: the UI composer probe resets before the initial seed draft's delayed persistence/presence publication has necessarily completed. Its aggregate counter cannot identify the exact original two invalidations. The next repair will establish that setup completion explicitly while retaining the existing render budget. Cold CLI process-test ownership and compatible declaration-cache consumption remain performance follow-ups. macOS/iOS were skipped in this run and are not native pass/timing proof; Windows retains full coverage with the user-approved timing exception.