Skip to content

improve: balance core tooling across five test stripes - #123636

Merged
steipete merged 1 commit into
mainfrom
steipete/tooling-stripes-5
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/tooling-stripes-5

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Broad pull-request fallback CI can leave the subprocess-heavy core tooling suite as the tallest compact-shard pole. In run 31789504347 attempt 1, checks-node-compact-small-33 was owned by core-tooling-2; the observed 267-second tail is the strongest current candidate for further deterministic striping.

Why This Change Was Made

The planner now partitions the same tooling inventory across five weighted-LPT stripes, keeps isolated tooling tests separate, and gives the reshuffled stripes equal provisional timing hints. Current main already contained a fourth stripe beyond the original three-way split, so this PR widens the authoritative four-way layout to five without reverting that intervening work. The obsolete hosted-only exception for the old core-tooling-3 membership is removed.

User Impact

No product behavior changes. Maintainers should see a shorter tooling tail on metadata-complete pull-request fallback runs, with more hosted matrix headroom.

Evidence

  • Timing source: https://github.com/openclaw/openclaw/actions/runs/31789504347/attempts/1 (checks-node-compact-small-33, core-tooling-2). Expected three-to-five striping math: 267s × 3 / 5 ≈ 160s per stripe.
  • Five-way weighted membership: core-tooling-1 81 files / weight 276; core-tooling-2 81 / 273; core-tooling-3 83 / 275; core-tooling-4 83 / 275; core-tooling-5 83 / 275.
  • Exact union proof: 411 assigned files, 411 unique files, 411 files selected by the tooling Vitest config. No overlap and nothing dropped.
  • Planner shape: Blacksmith PR fallback 31 → 32 descriptors; hosted PR fallback 64 → 62 descriptors; hosted predicted maximum remains 209 seconds.
  • node scripts/run-vitest.mjs test/vitest-projects-config.test.ts test/scripts/ci-node-test-plan.test.ts — 42 tests passed.
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts — 119 passed, 2 skipped, with the known dep-less topology fixture failure: ERR_MODULE_NOT_FOUND: Cannot find package 'tsx' from its temporary checkout.
  • node --import tsx scripts/check-workflows.mts — passed (zizmor and composite interpolation guard).
  • Shared-root oxfmt --check on all four touched files and git diff --check — passed.
  • Autoreview: clean, no accepted/actionable findings.

Planner production/tooling delta is net zero; tests add seven net lines and docs are net zero.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Aug 14, 2026
@steipete
steipete marked this pull request as ready for review August 14, 2026 11:59
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 14, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 8:17 AM ET / 12:17 UTC.

ClawSweeper review

What this changes

The PR widens the CI planner’s core-tooling test partition from four to five deterministic stripes and refreshes its estimates, capacity assertions, and CI documentation.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness findings: the five-stripe planner change updates the coupled packing, hosted estimates, tests, and CI documentation. Keep this maintainer-owned PR open until exact-head CI completes successfully.

Priority: P3
Reviewed head: 6ba9fbac994827a3274980fe82c0a6f7652abf4e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused, net-neutral planner change is well-covered in source; exact-head CI completion remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI-planning PR is evaluated through its deterministic planner contracts and exact-head CI rather than contributor environment proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI-planning PR is evaluated through its deterministic planner contracts and exact-head CI rather than contributor environment proof.
Evidence reviewed 6 items Central planner change: The branch changes the authoritative tooling stripe count to five, assigns five provisional 160-second hints, and removes the obsolete special hosted split for the former third stripe.
Workflow consumer: CI preflight calls the planner with event-specific compact mode and the configured runner backend, then forwards the resulting groups into the Node-job matrix.
Coverage and capacity contracts: The branch updates deterministic-order, push-exclusion, full-union, no-overlap, and descriptor-cap assertions from 31/64 to 32/62 where the five-way layout changes the plan.
Findings None None.
Security None None.

How this fits together

CI preflight converts the full Vitest inventory into compact runner descriptors for pull requests and pushes. Those descriptors determine test isolation, runner allocation, and the fallback matrix size.

flowchart LR
A[Vitest test inventory] --> B[CI test planner]
B --> C[Five tooling stripes]
C --> D[Compact job descriptors]
D --> E[CI workflow matrix]
E --> F[Isolated runner jobs]
Loading

Before merge

  • Resolve merge risk (P1) - The CI automation matrix is still running on the exact head, so merge should wait for terminal green results that exercise the new descriptor layout.
  • Complete next step (P2) - No mechanical repair is indicated; wait for the exact-head CI matrix to complete.
Agent review details

Security

None.

PR surface

Tests +7, Docs 0, Other 0. Total +7 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 18 11 +7
Docs 1 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 21 21 0
Total 4 41 34 +7

Review metrics

Metric Value Why it matters
Production versus test delta tooling +21/-21 (net 0); tests +18/-11 (net +7); docs +2/-2 (net 0) The planner rewrite is net-neutral in production/tooling code while adding focused coverage for the changed stripe and capacity invariants.

Merge-risk options

Maintainer options:

  1. Complete exact-head matrix validation (recommended)
    Wait for the current head’s CI matrix to finish green before merging the changed test-planning automation.

Technical review

Best possible solution:

Retain the five-way owner-level planner change once exact-head CI confirms its coverage and matrix-limit contracts.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a proactive CI-planning change rather than a reported product failure; the relevant proof is the planner’s deterministic contract tests and exact-head matrix run.

Is this the best way to solve the issue?

Yes. The central planner owns tooling partitioning, while the workflow remains a generic consumer; updating its stripe count and coupled estimates avoids duplicated routing policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ad400d810b3b.

Labels

Label justifications:

  • P3: This is a bounded CI-planning performance and maintenance improvement with no product-runtime behavior change.
  • merge-risk: 🚨 automation: The PR changes the generated CI test matrix and runner allocation, which must be validated on the exact head.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI-planning PR is evaluated through its deterministic planner contracts and exact-head CI rather than contributor environment proof.

Evidence

What I checked:

  • Central planner change: The branch changes the authoritative tooling stripe count to five, assigns five provisional 160-second hints, and removes the obsolete special hosted split for the former third stripe. (scripts/lib/ci-node-test-plan.mts:180, 6ba9fbac9948)
  • Workflow consumer: CI preflight calls the planner with event-specific compact mode and the configured runner backend, then forwards the resulting groups into the Node-job matrix. (.github/workflows/ci.yml:737, ad400d810b3b)
  • Coverage and capacity contracts: The branch updates deterministic-order, push-exclusion, full-union, no-overlap, and descriptor-cap assertions from 31/64 to 32/62 where the five-way layout changes the plan. (test/scripts/ci-node-test-plan.test.ts:271, 6ba9fbac9948)
  • Documentation alignment: The CI guide changes both the pull-request fallback description and hosted-planner narrative to five stripes, 32 Blacksmith descriptors, and 62 hosted fallback descriptors. Public docs: docs/ci.md. (docs/ci.md:124, 6ba9fbac9948)
  • Recent area provenance: The current head is directly based on current main; current-main commit 8865c25 is recent work by steipete on shortening the hosted PR path in this planner. (scripts/lib/ci-node-test-plan.mts:1458, 8865c2539b19)
  • Exact-head check state: The supplied check rollup shows the matrix is still in progress; completed focused checks are green, but the required exact-head CI result is not terminal. (6ba9fbac9948)

Likely related people:

  • steipete: Authored the current-main hosted-PR planner work and this branch is based directly on that main revision. (role: recent CI-planner contributor; confidence: high; commits: 8865c2539b19; files: scripts/lib/ci-node-test-plan.mts, test/scripts/ci-node-test-plan.test.ts, docs/ci.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the exact-head CI matrix finish green.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-14T12:06:29.203Z sha 289ce138a26948cca53864c17fc449ebfe9ec92a :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/tooling-stripes-5 branch from 289ce13 to 6ba9fba Compare August 14, 2026 12:10
@steipete
steipete merged commit 5c3fd2f into main Aug 14, 2026
145 checks passed
@steipete
steipete deleted the steipete/tooling-stripes-5 branch August 14, 2026 12:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant