Repository navigation
fix(ci): reduce repeated validation for unchanged inputs - #158018
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. |
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact integrated head |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 5:54 AM ET / 09:54 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch narrows when CI and Testbox workflows run, reuses recent successful scheduled validation when inputs are unchanged, and documents how stable-release closeout is dispatched after publication. Merge readiness✅ Ready for maintainer review Current main still performs the repeated validation identified by the linked issue, and this PR remains its open implementation candidate. The earlier Workflow Sanity lookup finding is repaired on the reviewed head; I found no new blocking defect in the introduced changes. Priority: P2 Review scores
Verification
How this fits togetherGitHub Actions receives pull request changes, main pushes, and hourly timers, then decides which validation jobs need runners. Those jobs produce check results; stable-release closeout separately verifies publication evidence and attaches a release manifest. flowchart LR
A[Pull request, push, or timer] --> B[Workflow admission]
B --> C{Inputs changed or proof stale?}
C -->|Yes| D[Validation jobs]
C -->|No| E[Recent success reused]
D --> F[Check results]
B --> G[Stable closeout]
G --> H[Release evidence]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +387, Docs +40, Config +314. Total +741 across 19 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep admission and proof reuse in the existing workflows, preserve full audits when input scope is unknown, and retain explicit postpublication closeout through the release orchestrator or operator dispatch. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: current-main workflow triggers and unconditional tooling setup establish the repeated-work baseline. Is this the best way to solve the issue? Yes. The branch changes admission at the existing workflow owners, retains daily refresh, and runs full audits when the changed-input lookup cannot establish a safe skip. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 364f1ddf3b66. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
|
@clawsweeper re-review Please review exact head The optional separate one-worker benchmark and attributable post-landing CI-seconds measurement are deferred outside the approved CI-removal acceptance scope. The PR body records the available measured 36 ms test time and 82-second focused-suite wall time without presenting either as standalone one-worker timing or production savings. Current-head CI remains the enforced landing gate. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head The scope lookup finding is fixed at its owner: GitHub PR/push lookup rejection emits a bounded warning and enables all trusted workflow audits. Actual-script before/after probes demonstrated both failures, and both new regression cases pass. The maintainer explicitly approved the documented release-closeout handoff in this task. The canonical release:stable owner still waits for exact publisher success; direct Actions publication uses the documented initial manual closeout command. No new owner decision is pending. The PR body now reports individual |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please refresh exact head The preceding request’s finding resolution remains unchanged: bounded warning plus full audits on PR/push lookup failure, explicit maintainer-approved release-closeout handoff, 706 focused tests and workflow checks, and required individual one-worker wall/available hosted CI timing evidence in the updated PR body. Current integrated-head CI is a separate landing gate. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…8018) * fix(ci): avoid repeated workflow and scheduled validation work * test(ci): align workflow contracts and isolate release fixtures * test(ci): assert known workflow fixture entries * docs(release): clarify initial stable closeout dispatch * fix(ci): run workflow audits when scope lookup fails
Closes #158017
What Problem This Solves
Main pushes and hourly workflows allocate runners and install tools repeatedly even when their validation inputs have not changed.
User Impact
Maintainers get less repeated CI work while retaining security-fast, the required CI gate, ClawSweeper, docs publication, cache warming, and manual recovery. Product behavior is unchanged.
Stable closeout now runs on relevant release-input changes. The canonical
pnpm release:stablecloseout phase still waits for publication and dispatches closeout. When publishing directly from Actions after an earlier main forward-port, dispatch stable closeout explicitly after publication succeeds; the command is documented. The maintainer explicitly approved this release-closeout handoff in the task; this is the accepted release-owner decision.Why This Change Was Made
Gate expensive workflow tooling while preserving the global conflict-marker guard, scope Testbox triggers to their actual dependencies, and remove the standalone hourly Docs run. Main's native
ci.ymlschedule already owns hourly docs checks for both hosted and RunsOn routing; this PR preserves that scheduler and its automatic runner, cache, locale, and Docs Agent policies.Scaffold and conformance schedules reuse only recent successful job proof with a complete unchanged-input comparison. Unknown inputs run, decisions report their reason, and daily refresh covers external drift. Sandbox smoke becomes daily. Main independently landed the equivalent release-fixture scratch isolation; integration accepts those versions and removes the duplicate two-file change from this PR.
The shared proof-admission action and explicit input scopes account for the production growth (+314 lines); tests add +387 and docs +40 across 19 files. Dependency-cache fingerprint closure for
scripts/lib/fs-safe-prebuild.mjsandscripts/windows-cmd-helpers.mjsremains a separate follow-up; their Testbox trigger inputs are included here.Workflow Sanity also treats unavailable GitHub diff lookup as unknown scope: it emits a bounded warning and runs the full trusted workflow audits. It never converts lookup failure into a skipped audit.
Evidence
0f80c68ef33a6ccf169c2688a0cb094b8cfb51b2resolves the actual main conflict againsta29a24123c6cb9fa815827a47ed3daab1957e2e4by accepting its equivalent release fixtures. Independent review verified all remaining 19 PR file blobs are byte-identical to the tested candidate below; no new CI behavior was introduced. Formatting and diff checks passed.f7b669891573dff0c1746fa39f6d882ebfcdcca7: all 21 changed file hashes verified on a task-owned Blacksmith Testbox; eight focused test files passed (706 tests), one worker per command.pnpm check:workflowspassed actionlint, zizmor and repository workflow guards. Targeted formatting andgit diff --checkpassed.79399a653aab550016c73734c0b4e3ef46adb903, preserving its native hourly scheduler. Live GitHub job-attempt and compare response contracts were verified.41874db05cfd3cb0825d86cd8cdee7a45eca8a51completed hosted CI successfully. Final integrated-head CI36118692452 completed successfully (86 jobs, zero failures), Workflow Sanity passed, and the requiredopenclaw/ci-gatecommit status became success at09:45:24 UTC after the security continuation. The published exact-head ClawSweeper review, reviewed at 09:54:42 UTC and published at 09:57:13 UTC, has no findings or remaining before-merge moves. The earlier completed exact-head review artifact was also read and its manifest checksums verified; it independently records zero findings and no rank-up steps.pnpm test <file> --maxWorkers=1for each file below. The lease is stopped. The timing requirement is satisfied by these measurements; it is not deferred as optional profiling.test/scripts/)ancillary-workflow-concurrency.test.tsci-hourly.test.tsci-security-fast-workflow.test.tsci-workflow-cost.test.tsci-workflow-guards.test.tsrelease-stable-post.test.tsrelease-stable.test.tsverify-pr-hosted-gates.test.tsWall times include command startup; CI test times are per-file Vitest measurements: workflow cost/admission/security/guards come from current head0f80c68; release siblings and hosted-gate contracts come from integrated predecessor4aecdf0. The final cost suite's 20 cases took 0.057 s of test time on Testbox. The existing 322-case workflow-guards file exceeds 30 s because it executes workflow planning and owner contract scenarios; this PR adjusts existing assertions and adds no cases there. A source-only string check would not preserve those executable contracts. These are validation costs, not measured post-landing runner savings.