Repository navigation
test(ci): split workflow coverage by responsibility - #155001
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 21, 2026, 7:36 PM ET / 23:36 UTC (Revision 12). ClawSweeper reviewWhat this changesSplits 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before merge
Agent review detailsSecurityNone. PR surfaceTests +256, Docs +7, Config 0, Other +2. Total +265 across 12 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel 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
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
9e83819 to
9bf62ee
Compare
4db79d8 to
aceaaa7
Compare
aceaaa7 to
1ff01f2
Compare
1ff01f2 to
a86e357
Compare
f9f1a9a to
f2b0f46
Compare
f2b0f46 to
3447220
Compare
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
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 repair6ee9578ab7bfd16f219e7fd7a3b1b34292552c36. This is a patch-identical rebase: all twelve changed files match reviewed predecessorf2b0f4640e60, 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.
pnpm test test/scripts/ci-workflow-guards.test.ts --maxWorkers=1f9f1a9a6474pnpm test test/scripts/ci-workflow-planning.test.ts --maxWorkers=1f2b0f4640e60pnpm test test/scripts/ci-workflow-evidence.test.ts --maxWorkers=1f9f1a9a6474pnpm test test/scripts/ci-changed-node-test-plan.test.ts --maxWorkers=1f9f1a9a6474pnpm test test/scripts/test-projects.test.ts --maxWorkers=1f9f1a9a6474pnpm test test/scripts/ci-node-test-plan.test.ts --maxWorkers=1f9f1a9a6474Every 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.