Repository navigation
ci: skip irrelevant automation work before runner allocation - #156293
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 real behavior proof before merge. Reviewed September 23, 2026, 6:07 AM ET / 10:07 UTC (Revision 3). ClawSweeper reviewWhat this changesFilters irrelevant GitHub automation events before runner allocation and moves concurrency admission to eligible jobs, with matching regression coverage and documentation. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the optimization remains useful, and no introduced correctness defect was found. The previous runner-documentation finding is resolved by the revised scope. Priority: P2 Review scores
Verification
How this fits togetherGitHub issue and PR events feed OpenClaw’s labeling, moderation, review, and dispatch workflows. Admission filters determine which events acquire runners and concurrency slots before existing automation owners perform their work. flowchart TD
A[GitHub issue and PR events] --> B[Job admission filters]
B -->|Irrelevant input| C[Skip without runner]
B -->|Relevant input| D[Concurrency group]
D --> E[Hosted runner]
E --> F[Existing automation owners]
F --> G[Labels reviews and dispatches]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +343, Docs +16, Config +11. Total +370 across 10 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep admission aligned with existing policy owners, preserve revocation handling, and measure actual allocation savings after deployment. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current workflows allocate runners before existing owner exemptions and acquire workflow concurrency before job rejection. No live event replay was performed during this read-only review. Is this the best way to solve the issue? Yes. Moving known no-op checks ahead of allocation and applying concurrency only to admitted jobs is a focused solution that preserves the existing execution owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7c9f2723d632. 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) |
Known policy exemptions and irrelevant edits were still acquiring hosted runners, while workflow-level concurrency let skipped events displace useful pending work. Filter those inputs before job admission, coalesce labeling per issue and PR, and preserve security revocations, moderation inputs, owner steps, and all existing runner assignments.
9d2f08e to
ac76edf
Compare
…w#156293) Known policy exemptions and irrelevant edits were still acquiring hosted runners, while workflow-level concurrency let skipped events displace useful pending work. Filter those inputs before job admission, coalesce labeling per issue and PR, and preserve security revocations, moderation inputs, owner steps, and all existing runner assignments.
…w#156293) Known policy exemptions and irrelevant edits were still acquiring hosted runners, while workflow-level concurrency let skipped events displace useful pending work. Filter those inputs before job admission, coalesce labeling per issue and PR, and preserve security revocations, moderation inputs, owner steps, and all existing runner assignments. (cherry picked from commit 05a86bd)
What Problem This Solves
Automation allocates hosted runners for inputs its owners already ignore, and workflow-level concurrency lets skipped events replace useful pending work.
User Impact
Reject known no-ops before checkout and runner allocation, while preserving the checks and moderation actions. All runner labels, permissions, owner steps, and timeouts remain unchanged. This adds no paid runner capacity.
Why This Change Was Made
No check identity or owner implementation changes. Label/moderation inputs and Security Review's shared-head refresh/revocation paths prevent blanket label allowlists or blanket cancellation. The security-workflow change remains subject to its existing SecOps ownership.
The
ci.ymlaudit found no remaining redundant setup/summary job that can safely be folded away.pnpm-store-warmupwas already removed in #150784; its historical 20.1 hosted jobs/hour is not credited here. The protectedopenclaw/ci-gateis already a Bash-only final reducer with no checkout/setup; moving it into a parallel producer would break its identity, dependency graph, or all-prerequisite aggregation. The manual-only iOS evidence reducer validates artifacts. CI changed-set selection and fail-fast remain with their existing owners; R5 adds zero CI-overhead consolidation savings.Evidence
The retained September 16–22 audit covers 121 workflows and 1,947 sampled runs. CI itself accounts for an estimated 433,906 hosted jobs / 1,875,076 hosted execution minutes per week. This PR addresses ancillary no-ops while the larger CI reductions proceed separately.
An additional read of 79 already-sampled allocated job logs gives these gross avoided-allocation projections:
The directly supported jobs are 105079769518 and 106172564020, weighted to 2,600 jobs/week and 1,222 execution minutes/week. Another 26 PR-context team skips and eight Auto-response maintainer skips support the conditional scenario, but their logs cannot prove the new payload guards cover every one. Label-only and API-only exemptions still reach the existing owner logic. Historical
changespayloads are unavailable, so edit filtering and coalescing receive no numerical credit. These are deterministic sample projections, not measured net savings: correct per-issue grouping can also preserve useful work that the old shared issue queue dropped. The ≤60-second hosted median wait target remains pending post-merge measurement, alongside the larger CI changes.Validation:
node scripts/check-changed.mjs, including test-root type checking, linting, and dead-export checks: pass. Workflow validation, oxfmt, andgit diff --check: pass.Current head CI
CI run 35841620704, attempt 1, ended cancelled: 98 successful jobs, 17 skips, and only the aggregate job cancelled.
openclaw/ci-gatejob 107123012200 was never assigned a runner; it was queued 09:29:11–09:29:38 UTC before cancellation. The PR head remained unchanged, and no superseding CI run was found. The available run metadata does not identify who cancelled it. No workflow was rerun.Security Review run 35843259526 subsequently completed successfully and published a failing aggregate status for the cancelled CI result. That status does not indicate a failed test, but the required CI gate remains unverified.
Workflow Sanity run 35841620632 passed on the unchanged
ubuntu-24.04runners. Both jobs waited 495 seconds before assignment; this pre-merge run does not establish the ≤60-second target or the effect of the default-branch automation changes.The three changed test files completed successfully in CI: ancillary admission job 107118197338, Security Review workflow job 107118197479, and workflow guards job 107118197321. Their file durations above came from those successful jobs' logs. The single log read could not retrieve the unassigned cancelled gate's nonexistent log; no timing was inferred for it.
The previous head's
macos-node-2lipo fixture failure is unrelated and retained for the flake lane; this PR does not chase it. This PR remains unmerged with auto-merge disabled. Actual post-merge job reduction and the ≤60s queue target are not claimed yet.