Repository navigation
ci: reduce sharding for seven-minute target - #136295
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 2, 2026, 6:56 PM ET / 22:56 UTC. ClawSweeper reviewWhat this changesThe PR reduces CI test fanout, adjusts runner capacity and shard admission, and updates workflow guards, scripts, tests, and CI documentation. Merge readiness⛔ Blocked before merge - 3 items remain Keep this maintainer-authored CI optimization open: the exact head is not on current main or a release, and its runner-capacity changes still need the in-progress exact-head CI evidence before landing. Priority: P3 Review scores
Verification
How this fits togetherCI preflight converts changed paths into bounded test matrices, which GitHub Actions schedules onto hosted or Blacksmith runners. The shard runner then executes planned test groups and reports results to the aggregate CI gate. flowchart TD
A[Changed code or push] --> B[CI preflight]
B --> C[Test shard planner]
C --> D[Bounded job matrix]
D --> E[Runner capacity selection]
E --> F[Shard execution]
F --> G[Aggregate CI gate]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +491, Docs +40, Config +1, Other +66. Total +598 across 19 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after exact-head CI confirms the selected runner resources, memory peaks, child cleanup, and elapsed behavior while preserving the bounded matrix and fallback paths. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a CI optimization PR rather than a reported user-facing bug. The material behavior is being exercised by the exact-head GitHub Actions run, which is still in progress. Is this the best way to solve the issue? Yes, provisionally: the planner retains complete-coverage fail-closed behavior and focused safeguards, but the capacity change is not ready to accept until exact-head fleet diagnostics confirm it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3b4d70216b86. LabelsLabel changes:
Label 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 (6 earlier review cycles)
|
|
@clawsweeper re-review The scope now includes hosted control-job routing after an observed 9m42s runner-admission stall. The final diff preserves the lint wrapper ownership fix and the optional Go environment type correction. The PR body describes the four-file change and the remaining native/CI and large-host timing evidence. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Keep the stronger queue identity and pending-depth assertions from #136473. The remaining CI optimization and shared test fixes are unchanged.
Consume main’s CLI and CSS fixes, scope the Windows watch fixture, and capture allowlisted diagnostics for the public docs checkout. Preserve the existing hybrid control routes.
Co-locate independent plugin processes, bound every canonical Node matrix, and fail preflight when changed-test planning cannot provide complete coverage. Reuse existing splits for measured serial tails and size whole agent support without relaxing worker or isolation policies.
Keep existing group boundaries and matrix rows while using two child slots only on CI hosts with enough CPU and memory. Join admitted children before surfacing unexpected failures. Lower final push/PR Node caps to 64/120 and record declaration cache miss reasons and whole-runner memory peaks. Retain runtime preparation ownership and shared UI failure diagnostics.
|
@clawsweeper re-review The new head |
|
🦞👀 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Keep compact test groups, names, worker pins and row counts intact while requesting larger existing runners for subprocess-heavy tooling and Docker. Repair the CI fixtures for the current TypeScript library and named Docker step, and clean up their focused lint findings.
|
@clawsweeper re-review Head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* ci: let lint wrappers own Go resource limits * test: allow unset Go variables in CI lint fixture * ci: keep hybrid control jobs on hosted runners * ci: reduce sharding for seven-minute target * ci: bound packed test concurrency by runner capacity Keep existing group boundaries and matrix rows while using two child slots only on CI hosts with enough CPU and memory. Join admitted children before surfacing unexpected failures. Lower final push/PR Node caps to 64/120 and record declaration cache miss reasons and whole-runner memory peaks. Retain runtime preparation ownership and shared UI failure diagnostics. * ci: give serial tooling jobs more runner capacity Keep compact test groups, names, worker pins and row counts intact while requesting larger existing runners for subprocess-heavy tooling and Docker. Repair the CI fixtures for the current TypeScript library and named Docker step, and clean up their focused lint findings.
Broad PR CI repeated checkout/setup and waited behind Node admission. This change reduces fanout while preserving complete test and check coverage. The latest native run selected 102 Node jobs, down from 122. The target is seven minutes for normal non-Windows CI; Windows must pass but may take longer. Seven minutes has not yet been demonstrated.
f1058b4fd659e44db8d92ad065f3e10eTimes start at workflow creation and include admission/setup. These are observations across revisions and load conditions, not a controlled benchmark. The latest run is fully green: 155 jobs passed and 12 skipped, including both Windows jobs passing. All 102 Node jobs finished by 6:55 and Docker by 6:20. The former tooling tails received eight CPUs and 33.23 GB total memory, kept one outer plan and their two-worker child pins, and completed their test wrappers in 195.73/237.08/293.34 seconds. The parent job default of four workers is distinct from those child pins. Browser rows 7/13 and 8/13 set the remaining 8:20 non-Windows wall; they remain an explicit follow-up for the seven-minute goal. The native merge selected 60 compact and 42 plugin jobs; the fixed local source inventory projects 61 compact plus 42 plugin jobs.
Expanded core packing uses 210 predicted seconds while retaining 150-second file splitting and exclusive-group budgets. Plugin fallback keeps its separate 150-second budget and combines 78 original process envelopes into 42 jobs. Configs, include scopes, native shard arguments, worker limits and process boundaries remain intact; runtime preparation and same-config partitions stay separate. Three measured serial outliers reuse the existing file partitioner, and whole agent-support requests the existing 32-vCPU runner. Supplemental boundaries retain all 20 checks in one job, with one complete root pass over the four shared rules. Public lint commands remain available.
Thirty-two existing ordinary Blacksmith compact bins request two child slots on the larger runner. Their names, inventories and packing costs stay fixed. The executor admits two CI children only with at least eight available CPUs and 24 GiB total memory; smaller or unknown capacity admits one. Each child retains its two-worker budget, single inner project process and existing file-serial policies. Runtime-building, exclusive and single-group jobs stay serial. Unexpected worker errors stop admission and join every admitted sibling before surfacing the failure.
The latest follow-up requests the existing 32-vCPU class for 17 numbered-tooling placements after packing, and for the single Docker seed job. A paired capture proves identical ordered rows/groups, configs, files, timing keys, worker limits and prerequisites after removing only the emitted runner field. No additional jobs or concurrency are introduced. Hosted/hybrid tooling and named manual/release routing are unchanged. Docker's weighted scheduler remains serial for the three weight-three MCP lanes; its declaration compiler stays serial. Larger machines are a capacity trial, not a measured speedup claim.
The final manifest enforces 64 push / 120 PR rows, including precise plans; component caps remain 80 compact and 50 plugin rows. Overflow fails preflight. Current PR planner errors and missing inputs/exports fail instead of silently dropping plugin coverage; a valid null precise plan still selects the complete fallback. Historical dispatch compatibility remains.
Declaration groups report their existing cache rejection reason before compilation replaces records. Signatures, required inventories, byte validation, locks and publication are unchanged. All eight groups reported signature mismatches in the latest run; the diagnostic source itself invalidates older seeds, so that first run cannot establish warm-cache performance or explain older misses. OS CPU/RAM facts are recorded; the optional cgroup peak read returned no numeric measurement. The Dashboard reload test uses shared diagnostics/cleanup, and its native UI job passed this time; the earlier intermittent failure is not claimed conclusively fixed.
The latest run's two work failures were a Promise.withResolvers type error under the existing ES2023 library and a Docker guard selecting a newly inserted step by position; both are repaired. The fixture now uses the established deferred helper and named Docker owner step. Focused lint also identified and repaired fixture-only shadowing, Promise-executor return and repeated array-membership issues. The aggregate gate failure reflected those work failures. The fresh exact-head run 33692146223 completed successfully; native preparation and landing can proceed while the browser timing follow-up remains open.
Validation: the earlier 141-case planner/resource/cache proof includes real six-compiler cold/warm declaration output checks. This follow-up passed 51 focused tests; after the final lint cleanup, the five affected cases passed again. The actual test-root typecheck, targeted script/test lint, actionlint, configured offline zizmor, formatting and whitespace checks pass. Six paired profile/mode captures preserve coverage and caps. Final independent P0 review completed on frozen source with no findings. Main's hosted docs acquisition and trusted security-scanner routing remain intact, addressing the prior ClawSweeper routing request.
The 96-job concurrency ceiling is separate from total matrix admission. The conservative arrival model remains
4 × 146 + 21 × 202 = 4,826. The retained 40-attempt cohort audit found 321 unassigned Blacksmith jobs and reserved nine auxiliary rows, yielding 5,156 against the 6,000 reference. This is conditional planning, not a current organization quota balance; old approvals, unlisted work, retries and already-assigned registrations remain limitations. The existing concurrent timing-sidecar lost-update risk remains a named follow-up; the timings above use native timestamps and labeled process spans.Against pinned main
a8fe1a58: CI/tooling +274/−207 (net+67), tests +787/−296 (net+491), docs/skills +80/−40 (net+40). Tooling growth supplies complete-coverage admission, capacity selection, joined failures and bounded diagnostics through existing owners. No product behavior, release-note or package publication change is included.ClawSweeper disposition: exact-head CI and resource inspection are complete. The optional cgroup peak read produced no numeric measurement, so peak RSS remains unknown. Its generic persistent-cache-schema flag does not describe a format change: version-6 stamp fields, signature construction, record admission, compiler-membership receipts and atomic publication are unchanged. Existing generator-byte hashing intentionally causes normal content invalidation across this diagnostic edit. The retained real-compiler fixture passed six cold invocations and a warm no-compiler restore with identical output bytes and cleanup, and all 26 cache-state cases passed. That enclosing focused command had an unrelated planner assertion failure, so these are scoped cache results; its repaired planner proof and the latest full CI are green. No migration is introduced or required.