Skip to content

ci: skip irrelevant automation work before runner allocation - #156293

Merged
steipete merged 3 commits into
mainfrom
ci-burden/r5-hosted-consumers
Sep 23, 2026
Merged

steipete merged 3 commits into
mainfrom
ci-burden/r5-hosted-consumers

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Workflow Admission and concurrency change
Auto response Skip existing privileged-author exemptions and edits without title/body/base changes. Acquire the existing per-item concurrency slot only after admission.
Labeler Skip issue edits that do not change the title. Coalesce admitted work per PR or issue, with manual backfills serialized separately.
PR context and evidence Skip the policy's known bot/privileged-author exemptions. Cancel superseded checks on the same PR; ignored title edits cannot replace pending body validation.
Security Review Skip PR prose-only edits, preserving base/permission changes, head changes, command edits/deletions, and approval revocations. Keep non-canceling per-head review serialization.
ClawSweeper dispatch Skip explicitly empty PR/issue edits. Apply its existing group and cancellation policy after job admission. Retain arbitrary labels and comments consumed by its receiver.

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.yml audit found no remaining redundant setup/summary job that can safely be folded away. pnpm-store-warmup was already removed in #150784; its historical 20.1 hosted jobs/hour is not credited here. The protected openclaw/ci-gate is 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:

Evidence Hosted jobs/hour
Two PR-context jobs explicitly reported the same payload-policy exemption now evaluated before allocation 15.48
Conditional scenario if the observed maintainer skips also had a qualifying payload author association 448.54 total

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 changes payloads 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:

  • The new regression selection fails 13 assertions against unchanged main workflows and passes with this patch.
  • Twenty repetitions each: complete ancillary-admission and Security Review test files, plus the affected automation cases in the existing workflow-guards file; eight workers, all passing. Three additional passes under the native tooling config with two workers also pass. Unchanged broad suites and the prior macOS investigation were not repeated.
  • Single-worker measured wall costs: ancillary admission 6.96s; Security Review workflow 9.23s; selected automation guards 12.74s. CI file times were 0.505s, 0.425s, and 67.576s respectively. The last CI figure is the complete pre-existing workflow-guards file; its local measurement selects the affected automation cases.
  • node scripts/check-changed.mjs, including test-root type checking, linting, and dead-export checks: pass. Workflow validation, oxfmt, and git diff --check: pass.
  • Complete parsed-workflow comparison confirms only job admission and concurrency changed: job inventories, runner labels, steps, permissions, and deadlines are identical.
  • Fresh P2 autoreview: scoped-clean, no actionable findings.

Current head CI

CI run 35841620704, attempt 1, ended cancelled: 98 successful jobs, 17 skips, and only the aggregate job cancelled. openclaw/ci-gate job 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.04 runners. 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-2 lipo 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.

@clawsweeper

clawsweeper Bot commented Sep 23, 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.

@steipete
steipete marked this pull request as ready for review September 23, 2026 07:13
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 6:07 AM ET / 10:07 UTC (Revision 3).

ClawSweeper review

What this changes

Filters 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
Reviewed head: 9fcc44648431cb8c97afcbd0841bc181cda70f7f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Recorded reviewer rating: A focused implementation with useful regression coverage and no actionable code findings; operational savings remain unmeasured. Real behavior proof remains required by host policy.
Proof confidence 🌊 off-meta tidepool Recorded reviewer rating; Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author’s verified repository-admin role exempts this PR from external-contributor proof. Tests cover workflow admission, but historical logs and prior-head CI do not establish after-change allocation savings; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Required by policy Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author’s verified repository-admin role exempts this PR from external-contributor proof. Tests cover workflow admission, but historical logs and prior-head CI do not establish after-change allocation savings; no stored-data contract changes.
Evidence reviewed 10 items Pinned introduced changes: Reviewed the merge-base-to-head patch. Workflow changes are confined to admission and concurrency; runner assignments, action pins, permissions, and execution steps remain unchanged.
Existing policy exemptions: Barnacle already exempts privileged target authors, and the PR-context policy already exempts privileged authors and automation identities. The new guards move those known decisions ahead of allocation while retaining API-based checks.
Security admission preserves authorization inputs: The approval snapshot excludes PR title/body but includes base, head, and maintainer-edit permission. The workflow retains those changes, command edits/deletions, and non-canceling per-head review serialization.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Add real behavior proof - Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author’s verified repository-admin role exempts this PR from external-contributor proof. Tests cover workflow admission, but historical logs and prior-head CI do not establish after-change allocation savings; no stored-data contract changes.
  • Complete next step (P2) - Obtain independent approval from @openclaw/openclaw-secops for the Security Review workflow change.
Agent review details

Security

None.

PR surface

Tests +343, Docs +16, Config +11. Total +370 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 370 27 +343
Docs 2 18 2 +16
Config 5 41 30 +11
Generated 0 0 0 0
Other 0 0 0 0
Total 10 429 59 +370

Review metrics

Metric Value Why it matters
Workflow versus test growth Workflow logic net +11 lines; tests net +343 lines The small production change reuses existing policy owners, while added coverage exercises exemption and concurrency cases.

Technical review

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

Labels

Label changes:

  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author’s verified repository-admin role exempts this PR from external-contributor proof. Tests cover workflow admission, but historical logs and prior-head CI do not establish after-change allocation savings; no stored-data contract changes.
  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: This is a bounded automation-efficiency and pending-work preservation improvement.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: The author’s verified repository-admin role exempts this PR from external-contributor proof. Tests cover workflow admission, but historical logs and prior-head CI do not establish after-change allocation savings; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced changes: Reviewed the merge-base-to-head patch. Workflow changes are confined to admission and concurrency; runner assignments, action pins, permissions, and execution steps remain unchanged. (.github/workflows/auto-response.yml:18, 9fcc44648431)
  • Existing policy exemptions: Barnacle already exempts privileged target authors, and the PR-context policy already exempts privileged authors and automation identities. The new guards move those known decisions ahead of allocation while retaining API-based checks. (scripts/github/barnacle-auto-response.mjs:732, 9fcc44648431)
  • Security admission preserves authorization inputs: The approval snapshot excludes PR title/body but includes base, head, and maintainer-edit permission. The workflow retains those changes, command edits/deletions, and non-canceling per-head review serialization. (scripts/github/guard-review.mjs:36, 9fcc44648431)
  • Still necessary on main and latest release: Fetched main and the supplied latest-release commit retain Auto response’s workflow-level concurrency and lack the proposed privileged-author and edit admission filters. (.github/workflows/auto-response.yml:14, 7c9f2723d632)
  • Release comparison: The same allocation behavior remains in the supplied v2026.9.5 release source; no implemented-on-main or shipped-fix closure is supported. (.github/workflows/auto-response.yml:14, ec9c1a13db89)
  • Previous finding disposition: The published runner table still correctly lists hosted automation because the current introduced diff changes no runner assignments. The earlier reviewed SHA was unavailable locally, so no unchanged-code or late-finding attribution is claimed. Public docs: docs/ci/runners.md. (docs/ci/runners.md:15, 9fcc44648431)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 (2 earlier review cycles)
  • reviewed 2026-09-23T07:22:43.573Z sha 9d2f08e :: needs changes before merge. :: [P3] Update the published runner placement documentation
  • reviewed 2026-09-23T08:14:44.800Z sha 9d2f08e :: needs changes before merge. :: [P3] Update the published runner placement documentation

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.
@steipete
steipete force-pushed the ci-burden/r5-hosted-consumers branch from 9d2f08e to ac76edf Compare September 23, 2026 09:13
@steipete
steipete requested a review from a team as a code owner September 23, 2026 09:13
@steipete steipete changed the title ci: move trusted automation off congested hosted runners ci: skip irrelevant automation work before runner allocation Sep 23, 2026
@steipete
steipete enabled auto-merge (squash) September 23, 2026 09:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M and removed size: XS labels Sep 23, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026
@steipete
steipete merged commit 05a86bd into main Sep 23, 2026
160 checks passed
@steipete
steipete deleted the ci-burden/r5-hosted-consumers branch September 23, 2026 17:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…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.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Sep 24, 2026
…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)
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant