Skip to content

test(ci): split workflow coverage by responsibility - #155001

Merged
steipete merged 1 commit into
mainfrom
codex/ci-preflight-output-size-154956
Sep 22, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/ci-preflight-output-size-154956

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The CI workflow test file took 220 seconds by itself, exceeding the roughly 120-second single-file budget and limiting how CI could schedule its checks.

User Impact

CI can schedule workflow validation by responsibility. Application behavior, dependencies, runner policy and assertion coverage stay unchanged.

Why This Change Was Made

Split workflow coverage into guards, planning and evidence owners, with shared helpers and separate fixture cleanup. Fast CI routing, affected-test selection, cache warming and documentation follow the moved tests. Preserve every mainline workflow definition and within-family order, including the Xcode 27 assertions, deferred maintainer-tooling coverage and startup-corpus worker cap. Manifest tables continue to exercise actual shard resolution.

The preflight output repair (#154993), probe output repair (#155220) and approval-readiness repair (#155111) are unchanged and outside this final diff.

Evidence

Current head: 3447220d25f379e2ef22a255037df58837b80d3a, based on canonical main repair 6ee9578ab7bfd16f219e7fd7a3b1b34292552c36. This is a patch-identical rebase: all twelve changed files match reviewed predecessor f2b0f4640e60, and the dependency lock and dependency fields are unchanged. The base includes the canonical survivor-fixture initialization repair that addresses both failures in the predecessor's hosted CI; it also inherits main's agent-schema metadata update, outside this PR's diff. Exact-head CI35671043032 passed. Native review and hosted preparation gates also passed at this head.

Focused proof covers all six changed test files, including 666 workflow cases. The table keeps each result attached to its actual tested head; planning was rerun after its executable fixture changed. Every command ran once with one worker, own frozen dependencies, Node 24.19.0 and pnpm 12.4.0 on an isolated 32-vCPU Linux host. All commands had zero failures or skips and passed source-preservation checks. Both proof VMs were released and verified.

Exact command Proof head Passed Full command wall time
pnpm test test/scripts/ci-workflow-guards.test.ts --maxWorkers=1 f9f1a9a6474 296 96.59 s
pnpm test test/scripts/ci-workflow-planning.test.ts --maxWorkers=1 f2b0f4640e60 345 93.63 s
pnpm test test/scripts/ci-workflow-evidence.test.ts --maxWorkers=1 f9f1a9a6474 25 55.79 s
pnpm test test/scripts/ci-changed-node-test-plan.test.ts --maxWorkers=1 f9f1a9a6474 251 97.64 s
pnpm test test/scripts/test-projects.test.ts --maxWorkers=1 f9f1a9a6474 1,372 65.16 s
pnpm test test/scripts/ci-node-test-plan.test.ts --maxWorkers=1 f9f1a9a6474 165 80.85 s

Every measured file is below the roughly 120-second ceiling. These files exceed the 30-second target because they execute real workflow shell fixtures, complete planner inventories and repository-backed routing. The actual Node preflight executable was verified; this is tooling proof, not Bun application acceptance or a census of every nested child image.

Independent full and changed-scope reviews found no actionable P0–P2 findings. Formatting, diff sanity and static preservation checks passed: all 272 mainline definitions, all 81 helpers, within-family order and the three cleanup owners remain intact. The fast-routing inventories and 14-file cache-warm inventory cover all extracted owners.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M maintainer Maintainer-authored PR labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 16:34
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 21, 2026, 7:36 PM ET / 23:36 UTC (Revision 12).

ClawSweeper review

What this changes

Splits CI workflow tests into guards, planning, and evidence suites, shares their helpers, and updates test selection, cache warming, and documentation.

Merge readiness

⛔ Needs changes before merge - 1 item remains

The split remains useful: current main still has the combined workflow suite. The prior tooling-coverage concern is resolved, and source review found no actionable correctness defect.

Priority: P2
Reviewed head: f2b0f4640e60c67052cbafb51e2d00b688037523

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, coverage-preserving split with substantial reported validation and one remaining test-cost measurement.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this internal CI/test change from the external-contributor proof gate; reported isolated workflow-shell and shard-resolver runs remain useful validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this internal CI/test change from the external-contributor proof gate; reported isolated workflow-shell and shard-resolver runs remain useful validation.
Evidence reviewed 8 items Pinned patch and coverage preservation: Inspected the introduced delta from 06ce6c4 to the pinned head. Read-only block comparisons found all 237 top-level test registrations retained, with 231 bodies byte-identical; the six changed registrations preserve or extend manifest, fallback, and routing assertions. All 47 top-level helper function blocks match after accounting for exported declarations.
Current-main integration and continued necessity: The original combined suite has the identical blob 5012cbd73453c5dcdf5aa380796a1fdf103ca432 at the pinned merge base and fetched main. Main has no planning-suite file. Its tooling-selection fixture and startup-corpus coverage remain represented in the extracted suite, resolving the previous review’s concrete integration concern.
Routing and merge-result scope: The verified test merge retains the pinned base as its first parent and the reviewed head as its second. Its workflow delta adds the extracted suites to both existing fast-routing commands; cache warming adds those same suites. No runner policy, permissions, action pins, dependency sources, or authorization decisions change.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI planner selects tests from changed files and workflow events. These suites check the resulting job plans, workflow safeguards, and evidence handling before changes land.

flowchart TD
  A[Changed files and workflow events] --> B[Test selection]
  B --> C[Workflow guards]
  B --> D[Planning checks]
  B --> E[Evidence checks]
  F[Shared fixture helpers] --> C
  F --> D
  F --> E
  C --> G[CI validation results]
  D --> G
  E --> G
Loading

Before merge

  • Complete next step (P2) - Complete the already-pending pnpm test test/scripts/ci-workflow-planning.test.ts --maxWorkers=1 measurement and record its result and full-command wall time for the current head.
Agent review details

Security

None.

PR surface

Tests +256, Docs +7, Config 0, Other +2. Total +265 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 11836 11580 +256
Docs 2 12 5 +7
Config 1 2 2 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 12 11852 11587 +265

Review metrics

Metric Value Why it matters
Reported workflow-suite timing Predecessor: guards 96.59 s; planning 92.07 s; evidence 55.79 s All three reported single-worker commands fit the stated roughly 120-second ceiling; the updated planning suite still needs its current measurement.

Technical review

Best possible solution:

Keep the responsibility-based suites under the existing planner, preserving coverage and fixture isolation while bringing each file within its execution budget.

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

Not applicable to this test reorganization; the reported 220-second baseline and predecessor measurements establish its motivation, but were not rerun during this read-only review.

Is this the best way to solve the issue?

Yes. Splitting at responsibility boundaries preserves the existing execution owners and assertions without changing runner policy or weakening coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c768bd125a14.

Labels

Label justifications:

  • P2: Addresses a measured CI scheduling bottleneck with bounded test-infrastructure changes.
  • 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: The supplied maintainer classification exempts this internal CI/test change from the external-contributor proof gate; reported isolated workflow-shell and shard-resolver runs remain useful validation.

Evidence

What I checked:

  • Pinned patch and coverage preservation: Inspected the introduced delta from 06ce6c4 to the pinned head. Read-only block comparisons found all 237 top-level test registrations retained, with 231 bodies byte-identical; the six changed registrations preserve or extend manifest, fallback, and routing assertions. All 47 top-level helper function blocks match after accounting for exported declarations. (test/scripts/ci-workflow-planning.test.ts:5214, f2b0f4640e60)
  • Current-main integration and continued necessity: The original combined suite has the identical blob 5012cbd73453c5dcdf5aa380796a1fdf103ca432 at the pinned merge base and fetched main. Main has no planning-suite file. Its tooling-selection fixture and startup-corpus coverage remain represented in the extracted suite, resolving the previous review’s concrete integration concern. (test/scripts/ci-workflow-guards.test.ts, c768bd125a14)
  • Routing and merge-result scope: The verified test merge retains the pinned base as its first parent and the reviewed head as its second. Its workflow delta adds the extracted suites to both existing fast-routing commands; cache warming adds those same suites. No runner policy, permissions, action pins, dependency sources, or authorization decisions change. (.github/workflows/ci.yml:3306, e3f2e2c947f9)
  • Validation evidence and remaining measurement: The supplied body reports 2,454 passing cases at predecessor f9f1a9a6474de39af28874ae5f432005f043084b, including 666 workflow cases. It explicitly distinguishes those results from the current head and identifies the changed planning suite’s full-file timing as pending. The live body read matched that account. No tests or target code were executed during this read-only review. (f2b0f4640e60)
  • Applicable test-cost contract: The testing guide requires full-command single-worker measurements for materially changed test files and explains owner-boundary splitting for files exceeding their planner budget. The PR explains why these workflow fixtures exceed the 30-second target. Public docs: docs/help/testing/writing-tests.md. (docs/help/testing/writing-tests.md, f2b0f4640e60)
  • Feature-history routing: Current-main file history identifies Peter Steinberger’s recent tooling-selection and CI work and Shakker’s merged manual-output repair. These support routing suggestions, not claims of source-line introduction. Earlier reviewed heads and some historical blobs were unavailable locally; current-main preservation supplied the relevant continuity check. (test/scripts/ci-workflow-guards.test.ts, c768bd125a14)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: 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.

  • Record the updated planning suite’s full-command single-worker result and wall time at the current head.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-21T18:01:18.556Z sha 9e8381927aea5e5f0bb37caec01752202f9f2235 :: needs changes before merge. :: none
  • reviewed 2026-09-21T18:34:57.550Z sha 9e8381927aea5e5f0bb37caec01752202f9f2235 :: needs changes before merge. :: none
  • reviewed 2026-09-21T18:56:35.386Z sha 9bf62ee :: needs changes before merge. :: none
  • reviewed 2026-09-21T20:45:32.822Z sha aceaaa7dbd3b102b0d66ea1cdb7327d2d7eaca4c :: needs changes before merge. :: none
  • reviewed 2026-09-21T20:54:52.189Z sha 1ff01f2 :: needs changes before merge. :: none
  • reviewed 2026-09-21T21:19:24.930Z sha 1ff01f2 :: needs changes before merge. :: none
  • reviewed 2026-09-21T22:16:01.235Z sha 1ff01f2 :: blocked before merge. :: none
  • reviewed 2026-09-21T22:45:10.235Z sha a86e35769e0885d409200350ba09767e4418a278 :: needs changes before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL and removed size: M labels Sep 21, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 21, 2026
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch from 9e83819 to 9bf62ee Compare September 21, 2026 18:48
@steipete steipete changed the title fix(ci): keep full test plans below the job output limit test(ci): split workflow validation by owner Sep 21, 2026
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch from 4db79d8 to aceaaa7 Compare September 21, 2026 20:36
@steipete steipete changed the title test(ci): split workflow validation by owner fix(ci): split workflow tests and synchronize async fixtures Sep 21, 2026
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch from aceaaa7 to 1ff01f2 Compare September 21, 2026 20:46
@steipete steipete changed the title fix(ci): split workflow tests and synchronize async fixtures fix(ci): split workflow tests and collect complete probe output Sep 21, 2026
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch from 1ff01f2 to a86e357 Compare September 21, 2026 22:36
@steipete steipete changed the title fix(ci): split workflow tests and collect complete probe output test(ci): split workflow coverage by responsibility Sep 21, 2026
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch 2 times, most recently from f9f1a9a to f2b0f46 Compare September 21, 2026 23:27
@steipete
steipete force-pushed the codex/ci-preflight-output-size-154956 branch from f2b0f46 to 3447220 Compare September 22, 2026 00:13
@steipete
steipete merged commit be0ee80 into main Sep 22, 2026
169 checks passed
@steipete
steipete deleted the codex/ci-preflight-output-size-154956 branch September 22, 2026 00:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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