Repository navigation
chore: reduce CI job count and database test overhead - #137352
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 10:42 AM ET / 14:42 UTC. ClawSweeper reviewWhat this changesThe PR consolidates hosted core type-check stripes into three CI jobs and replaces three byte-preservation test assertions with native Buffer equality. Merge readiness⛔ Blocked before merge - 2 items remain No source-level correctness defect was found. Keep this maintainer PR open until its exact-head hosted CI records the combined type-check jobs’ elapsed time, resources, and cleanup outcome. Priority: P3 Review scores
Verification
How this fits togetherGitHub Actions chooses a runner profile and splits type-check work between a central check job and hosted core-stripe jobs. Those results feed the aggregate CI gate that protects contributions and releases. flowchart LR
A[Pull request or push] --> B[CI preflight]
B --> C[Runner profile]
C --> D[Central type-check job]
C --> E[Hosted core stripe jobs]
D --> F[Extensions scripts and root checks]
E --> G[Core type graphs]
F --> H[Aggregate CI gate]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests +164, Docs +8, Config +4. Total +176 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the exact-head hosted results to confirm each combined row remains within its timeout with preserved resource and cleanup behavior, then keep this single canonical stripe layout. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes CI scheduling and test assertion mechanics rather than reporting a user-facing defect. Is this the best way to solve the issue? Yes. It reuses the canonical stripe runner and preserves its deterministic partition and fallback rather than adding parallel scheduling logic; native CI measurement is the remaining validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ad63b161427. 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
|
|
Merged via squash.
|
* refs/remotes/origin/main: fix(plugins): reject unverifiable pinned npm installs (#136725) improve(ui): lift sidebar section headers on hover and mark online owners (#136985) test(cron): reuse isolated run suite hooks (#137341) test(channels): reuse shared indexed call guards (#137350) fix(ui): sidebar header controls read misaligned after the + button lost its border (#137317) fix(qa-channel): preserve conversation kind for implicit actions (#137343) fix: target the source checkout in Control UI repair commands (#137354) chore: reduce CI job count and database test overhead (#137352) fix(ios): preserve chat live edge across keyboard transitions (#136660) refactor(control-ui): consolidate mention inbox requests (#137375) fix(openai): preserve ChatGPT HTTP status for retry pacing (#137146) fix(mcp): hide policy-denied plugin tools from ACP sessions [AI] (#136546) test(queue): reuse shared deferred fixtures (#137338) fix(gateway): repair the Gateway E2E shard (browser suite project, skill resource argv, Codex diagnostic) (#137358)
What Problem This Solves
Common CI runs allocate six jobs to core test types and their central tail, repeating runner admission, checkout and setup. Three read-only database tests also use generic deep equality over entire file Buffers when their contract is exact byte preservation.
Why This Change Was Made
Run the same type workload on three jobs: pair original stripes 1+2 and 3+4, then run stripe 5 before the existing extensions/scripts/root tail. All 16 core graphs remain, with at most two compiler children per stripe and one builder per child. The fifth stripe retains its former standalone resource environment. Failed stripes stop their own row; independent rows continue. Pure Blacksmith and older-target full-check paths remain covered.
Use native Buffer equality for the three file comparisons. All seven existing Claw cases retain real database setup, missing-column scenarios, semantic assertions, complete byte comparison and cleanup. The workflow fixture reuses the canonical stripe-partition test instead of copying its inventory assertion.
User Impact
Developer CI uses three fewer type-check jobs and cheaper database assertions. In this native run, all type jobs finished by 5m37s. Overall non-Windows completion was 10m22s, so the wider latency target remains open.
Evidence
CI run 33767649105 passed 103 jobs, with 9 skipped, including all 50 selected compact Node jobs and both Windows jobs. Source was
fb1d38e3846abd99bc68257d58f6f91933c7c11e; native checkout was mergebe7a7f09b654a446011aca9acc460b50cf15a7c0into2074e04c27566a53459662236d35d20ecadb2819. The preflight checkout and Git commit parents both confirm that relation.Each type job waited 41 seconds from creation to assignment and requested the existing
blacksmith-32vcpu-ubuntu-2404class. The executed shell retains--concurrency 2, and the unchanged compiler owner retains one builder per child. The central shell clearsOPENCLAW_LOCAL_CHECKfor stripe 5, then its tail retains0. Type logs do not expose physical CPU/RAM, child peak concurrency or per-stripe clocks; the requested label is not a hardware measurement. All three bodies succeeded, reached post-job cleanup, and logged no orphan-process terminations. Serial composition introduces no additional overlapping compiler processes.The two native Claw owner jobs preserve all seven exact case names. Package preview took 263ms; update planning and resume took 310ms and 316ms. Those Node jobs report 8 logical CPUs, 33,231,908,864 bytes total memory, two admitted plans and peak two; all planned child groups ended with exit 0. These measurements belong to the Node jobs, not the type jobs. The three affected local case bodies totalled 5.140s before and 0.953s after in one observation per selected file; reporter settings differed, so that comparison is not a controlled whole-CI benchmark.
Twenty focused workflow/type cases passed. The complete six-path changed gate passed in 184.1s, including all core/root type graphs, lint and dead-export checks; workflow validation, actionlint, zizmor and formatting passed. The first gate found an unnecessary object copy in the fixture; it was removed and the full gate rerun. Independent Codex review through P2 is scoped-clean.
This records the timing, resource-reporting limits and cleanup requested in the ClawSweeper review and rank-up move. No source-level finding remained. The separate remaining tail is the late-starting Node large-7 job, QA admission, and the real-Gateway UI job (135s build + 382s tests). Both Windows jobs passed; the final gate was green at 15m13s. Those remaining costs are being investigated without widening sharding.
Runtime production LOC: 0. Workflow: +14/-10. Tests/support: +192/-28, covering the changed profile/workload/failure boundaries. Docs: +12/-12; CI skill: +8/-0.