Skip to content

ci: shorten command test jobs and avoid unused runtime builds - #135039

Merged
steipete merged 2 commits into
mainfrom
codex/ci-cli-runtime-ownership-20260901
Sep 1, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/ci-cli-runtime-ownership-20260901

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The initial 176 focused checks passed across planner coverage, CLI/config routing, workflow Go ownership, and borrowed/owned include-list admission. One ordering-only assertion was corrected after semantic runner placement changed row order; its exact owners and budgets remain asserted.
  • Script and root-test type checks, script lint, workflow actionlint/zizmor and composite-input checks, formatting, and whitespace checks passed.
  • After merging main's shared test-runner extraction and Chromium ownership changes, all 45 planner checks and 23 build-admission checks passed; script type checking, lint, formatting, and whitespace checks also passed. The inherited-selection fix now lives in the shared runner used by both public and delegated entrypoints.
  • Replayed the integrated workflow manifest/profile/expression logic for all 27 backend, trust, retry, manual/frozen, and targeted-change contexts. Current nondist compact counts are 33/49 for Blacksmith push/PR, 60/82 for hybrid, and 81/107 for GitHub; all retain their existing caps.
  • The unchanged 20-file Doctor inventory is partitioned exactly once. Conservative new-owner estimates include the full observed process overhead; they are not native speed claims. The timing catalog is unchanged pending the canonical two-main-run refit.
  • Fresh capacity accounting includes trusted forks using the 112-row GitHub planner on Blacksmith, 78 possible plugin fallback rows, and 86 other workflow rows. Four main admissions plus the observed peak of 19 PR arrivals gives 4 × 182 + 19 × 276 = 5,972, below the 6,000 operating target. This leaves no practical room for additional fanout without reductions elsewhere.
  • Fresh managed Codex autoreview of the integrated candidate completed with no accepted/actionable findings at the repository's default P0 scope. Exact-head native CI passed on 57501be293382f1e8c90cd613c467eeac4121408 in 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.

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.
@steipete steipete self-assigned this Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 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: L maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 5:32 AM ET / 09:32 UTC.

ClawSweeper review

What this changes

This PR makes CI prerequisite builds, Go setup, runner capacity, and Doctor command-test sharding follow the tests that actually consume those resources.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 57501be293382f1e8c90cd613c467eeac4121408

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation has focused ownership-boundary coverage and no concrete review finding; exact-head CI remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this is a maintainer-labeled CI-only PR; the relevant remaining evidence is the active exact-head CI matrix, not external contributor runtime proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this is a maintainer-labeled CI-only PR; the relevant remaining evidence is the active exact-head CI matrix, not external contributor runtime proof.
Evidence reviewed 6 items Introduced prerequisite ownership: The runtime consumer is moved into the isolated CLI-process catalog, and pretest mode is selected from the effective test selection before workers start.
Caller and callee agree on inherited selections: The test-project runner passes its caller-owned include-file contents to the shared prerequisite resolver; owned lists remain direct patterns and are not read before their temporary file exists.
Planner coverage: Focused tests cover CLI-process routing, borrowed versus owned selections, workflow Go ownership, semantic runner assignment, and complete Doctor SQLite partitions.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - The changed workflow controls test admission, prerequisite builds, and runner placement; exact-head CI still has a large active matrix, so merge should wait for its successful completion.
  • Complete next step (P2) - No mechanical repair is identified; the remaining action is normal exact-head CI completion on a maintainer-owned PR.
Agent review details

Security

None.

PR surface

Tests +280, Docs +1, Config +10, Other +74. Total +365 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 331 51 +280
Docs 1 5 4 +1
Config 1 15 5 +10
Generated 0 0 0 0
Other 3 100 26 +74
Total 11 451 86 +365

Review metrics

Metric Value Why it matters
Production versus test delta CI/tooling production +84/-31; tests +331/-51; docs +5/-4 The production growth establishes semantic prerequisite and runner ownership, while the larger test delta exercises each newly separated planning boundary.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/lib/ci-node-test-plan.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Finish exact-head CI (recommended)
    Wait for the active CI matrix on the current head to complete successfully before merging the workflow and planner changes.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a CI-only performance and scheduling change with no direct production user workflow impact.
  • merge-risk: 🚨 automation: The PR changes workflow matrix admission, prerequisite builds, and runner selection, which can affect CI execution even when source-level tests pass.
  • 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: Not applicable: this is a maintainer-labeled CI-only PR; the relevant remaining evidence is the active exact-head CI matrix, not external contributor runtime proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Let the exact-head CI matrix finish successfully before merge.

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-09-01T09:09:13.964Z sha 6718f36 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 7370255 into main Sep 1, 2026
367 of 369 checks passed
@steipete
steipete deleted the codex/ci-cli-runtime-ownership-20260901 branch September 1, 2026 09:49
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
…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.
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: L 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