Skip to content

improve: split hosted Windows CI into three lanes - #123577

Merged
steipete merged 2 commits into
mainfrom
steipete/windows-3way-split
Aug 14, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/windows-3way-split

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The two hosted Windows test lanes are now a CI critical-path tail. In CI run 31786359048, checks-windows-node-test-1 took 308 seconds end to end and checks-windows-node-test-2 took 384 seconds, above the approximately 260-second lane target.

Why This Change Was Made

This splits only the GitHub-hosted and hybrid Windows profile from two explicit project-aligned test lists into three. The single Blacksmith Windows job, runner-selection expressions, backend routing, and total Windows test inventory stay unchanged.

The lists are packed from the measured project durations in the cited run. Lane 1 carries the heavy state-ownership and session-archive projects plus command/shared/tooling tests (19 files, about 147 seconds of measured Vitest project time). Lane 2 isolates the heavy SQLite snapshot project with agents-tools and memory-core (15 files, about 137 seconds). Lane 3 contains the remaining smaller projects (31 files, about 122 seconds); its larger project count adds more per-project process startup, balancing the lower reported Vitest total. The two SQLite-heavy projects and the 41-second state-ownership project no longer share a lane.

User Impact

There is no product-runtime behavior change. Maintainers should see a shorter hosted Windows CI tail while retaining exactly the same Windows-specific test coverage. The Blacksmith-first path remains one combined job.

Evidence

Before, in run 31786359048:

Exact inventory comparison against base 8865c2539b19907e7fb7b38b912b836755c1882d:

old=65/65 unique new=65/65 unique lanes=19+15+31
added=0 removed=0 duplicates=0
PASS: exact old/new Windows test union equality

Validation:

  • node --import tsx scripts/check-workflows.mts — passed Zizmor and composite-run interpolation checks.
  • node_modules/.bin/oxfmt --check package.json .github/workflows/ci.yml test/scripts/ci-workflow-guards.test.ts docs/ci.md .agents/skills/openclaw-ci-limits/SKILL.md — passed using the main checkout's installed formatter.
  • git diff --check — passed.
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts — 119 passed, 2 skipped; the sole failure is the known dep-less topology fixture artifact at test/scripts/ci-workflow-guards.test.ts:7019, where its temporary checkout cannot resolve tsx (ERR_MODULE_NOT_FOUND). The changed Windows topology assertions passed.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean; no accepted/actionable findings.

AI-assisted: yes. The change and evidence were reviewed and understood.

@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 the docs Improvements or additions to documentation label Aug 14, 2026
@steipete
steipete marked this pull request as ready for review August 14, 2026 09:19
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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, 5:36 AM ET / 09:36 UTC.

ClawSweeper review

What this changes

The PR splits the GitHub-hosted and hybrid Windows CI test inventory into three explicit lanes while leaving the Blacksmith Windows path combined.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. The prior package-script contract blocker is fixed, and the branch coherently adds a third hosted Windows lane while retaining the single Blacksmith lane; await the in-progress exact-head Windows jobs before merge.

Priority: P3
Reviewed head: 65b4691a8f0b791dff3b123ab8576d906138d2d8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The repaired contract test and source mapping support a clean CI change; exact-head Windows job completion remains the material merge check.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned CI-only change is appropriately evidenced by workflow-contract coverage and the exact-head hosted Windows jobs rather than an external contributor real-behavior-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned CI-only change is appropriately evidenced by workflow-contract coverage and the exact-head hosted Windows jobs rather than an external contributor real-behavior-proof gate.
Evidence reviewed 6 items Hosted-only split: The branch emits three matrix rows only for the GitHub/hybrid runner profile and keeps one combined Blacksmith row.
Task execution mapping: The Windows job dispatches all three hosted tasks to their corresponding package scripts while preserving the aggregate task for Blacksmith.
Coverage contract repaired: The updated package-script test requires three scripts, the three-part aggregate command, 19/15/31 targets, and no cross-part duplicates, addressing the prior review finding.
Findings None None.
Security None None.

How this fits together

CI preflight chooses a Windows job matrix, whose jobs dispatch named package scripts containing explicit Windows test targets. Those jobs determine Windows coverage and the CI critical-path tail.

flowchart LR
  A[Runner profile] --> B[Preflight Windows matrix]
  B --> C[Hosted Windows jobs]
  C --> D[Windows package scripts]
  D --> E[Explicit test projects]
  E --> F[Coverage and CI tail]
Loading

Before merge

  • Resolve merge risk (P1) - Merging increases hosted Windows fan-out from two to three concurrent jobs; the exact-head Windows jobs are still in progress, so their successful completion and observed tail remain the final automation-risk check.
  • Complete next step (P2) - The prior mechanical review blocker is fixed; the remaining action is normal exact-head CI completion, not an automated repair.
Agent review details

Security

None.

PR surface

Tests +11, Docs 0, Config +4. Total +15 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 17 6 +11
Docs 2 4 4 0
Config 2 9 5 +4
Generated 0 0 0 0
Other 0 0 0 0
Total 6 30 15 +15

Review metrics

Metric Value Why it matters
Operational versus test LOC operational/docs +13/-9; tests +17/-6 The small operational increase is the third-lane matrix and script mapping, while the larger test delta preserves both workflow and package-script contracts.

Stored data model

Persistent data-model change detected: migration/backfill/repair: package.json. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Validate the exact-head Windows split (recommended)
    Wait for all three hosted Windows jobs on the current head to pass and use their durations to confirm the intended CI-tail improvement.
  2. Retain the current two-lane plan
    Pause this PR if the new hosted lane does not improve the measured tail enough to justify the additional hosted concurrency.

Technical review

Best possible solution:

Merge after the exact-head hosted Windows matrix passes and confirms the three lanes retain coverage while reducing the Windows tail; keep the single Blacksmith aggregate path unchanged.

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

Not applicable: this is CI capacity tuning rather than a user-reported product failure; source inspection establishes the existing two-lane and proposed three-lane paths.

Is this the best way to solve the issue?

Yes. The preflight matrix and its Windows task dispatcher are the canonical owner boundary, and explicit lists retain the existing target-selection model without changing the Blacksmith path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned CI-only change is appropriately evidenced by workflow-contract coverage and the exact-head hosted Windows jobs rather than an external contributor real-behavior-proof gate.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a bounded CI-capacity improvement with no product-runtime behavior change.
  • merge-risk: 🚨 automation: The PR changes hosted Windows matrix fan-out and CI task dispatch, so exact-head workflow results are needed before landing.
  • 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-owned CI-only change is appropriately evidenced by workflow-contract coverage and the exact-head hosted Windows jobs rather than an external contributor real-behavior-proof gate.

Evidence

What I checked:

  • Hosted-only split: The branch emits three matrix rows only for the GitHub/hybrid runner profile and keeps one combined Blacksmith row. (.github/workflows/ci.yml:854, 65b4691a8f0b)
  • Task execution mapping: The Windows job dispatches all three hosted tasks to their corresponding package scripts while preserving the aggregate task for Blacksmith. (.github/workflows/ci.yml:3250, 65b4691a8f0b)
  • Coverage contract repaired: The updated package-script test requires three scripts, the three-part aggregate command, 19/15/31 targets, and no cross-part duplicates, addressing the prior review finding. (test/package-scripts.test.ts:207, 65b4691a8f0b)
  • Current main remains two-way: Current main still produces two hosted Windows rows and invokes only two package-script parts, so this branch retains a distinct useful CI improvement. (.github/workflows/ci.yml:854, 655724a72779)
  • Dispatcher contract: Explicit targets are rejected when unmatched before the script constructs Vitest run specifications, so the package-script lists remain the appropriate owner of this partition. (scripts/test-projects.mts:266, 655724a72779)
  • Area provenance: Recent workflow history identifies the current two-lane hosted path as commit 8865c25 by Peter Steinberger; the PR head is its focused follow-up. (.github/workflows/ci.yml:851, 8865c2539b19)

Likely related people:

  • steipete: Peter Steinberger authored the current main two-lane hosted CI commit and the focused follow-up branch; the adjacent package-script contract also traces to this area of work. (role: recent CI-path contributor; confidence: high; commits: 8865c2539b19, d5d0a9e35680, 65b4691a8f0b; files: .github/workflows/ci.yml, package.json, test/package-scripts.test.ts)

Rank-up moves

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

  • Let all three exact-head hosted Windows jobs complete successfully and retain their observed durations as the after-change tail evidence.

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-14T09:24:45.971Z sha d5d0a9e :: found issues before merge. :: [P1] Update the package-script contract for the third Windows lane

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 14, 2026
@steipete
steipete merged commit 3a49aa1 into main Aug 14, 2026
167 checks passed
@steipete
steipete deleted the steipete/windows-3way-split branch August 14, 2026 09:40
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
* ci: split Windows tests into three lanes

* test: cover three-way Windows CI partition
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. size: XS 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