Skip to content

fix(ci): preserve labeler work on ignored PR edits - #150728

Merged
steipete merged 1 commit into
mainfrom
codex/labeler-ignored-edit-20260917
Sep 17, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/labeler-ignored-edit-20260917

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

A PR description edit can cancel useful Labeler work and then skip its own label job. Workflow concurrency is admitted before the job's title/base-change condition, so the skipped event currently shares the useful PR run's cancelling group.

User Impact

Description-only edits preserve running and pending labeling. Useful PR events retain their existing per-PR cancellation behavior; issue labeling and manual backfills retain their existing sequencing.

Why This Change Was Made

Give only ignored PR edits a unique per-run concurrency group. Changing cancellation alone would still let an ignored edit replace useful pending work. Job and step conditions, permissions, token scopes, label rules, runners, queue mode, caps, and timeouts remain unchanged.

Evidence

The existing synthetic Admission model reproduces both running cancellation and pending replacement on the original workflow. Three ignored-edit controls fail before the fix while eight normal-event controls pass; all 188 admission and label-policy cases pass after. The existing edited-field guard also passes.

Parsed workflow objects are identical except for concurrency.group. Canonical workflow validation passes, including actionlint, zizmor, and repository guards. Fresh isolated P0–P2 review is scoped-clean. These are local scheduling-model checks, not a new live cancellation probe.

The observed incident was Labeler run 35182266834 on #150565, cancelled during checkout while a body-only edited run skipped labeling. Its cancellation log, qualified base, and inspected main use the same workflow source. The retained log records the cancellation but does not independently name its initiating run; the event pairing comes from the maintainer's retained observations.

The selected changed-file checks pass, including test-root types, all three dead-export scans, and lint. Documentation sanity, formatting, and git diff --check pass. No live workflow probing or extra dispatch was performed.

@clawsweeper

clawsweeper Bot commented Sep 17, 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: S maintainer Maintainer-authored PR labels Sep 17, 2026
@steipete
steipete marked this pull request as ready for review September 17, 2026 07:40
@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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 3:49 AM ET / 07:49 UTC.

ClawSweeper review

What this changes

The PR isolates ignored pull-request edits from useful Labeler runs and adds scheduling regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary: current main and the latest release retain the cancellation problem. No introduced correctness or security defect was found, and this maintainer-authored PR is protected from cleanup closure.

Priority: P2
Reviewed head: 12774003dd08d8aab3baf47944825c87d961f9f4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful scheduling regression coverage and no actionable introduced defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-author exemption applies: Labeler scheduling is supported by source and reported synthetic admission checks, while the captured body explicitly disclaims after-fix live cancellation proof; no material authority change triggers additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-author exemption applies: Labeler scheduling is supported by source and reported synthetic admission checks, while the captured body explicitly disclaims after-fix live cancellation proof; no material authority change triggers additional proof.
Evidence reviewed 7 items Current main still has the defect: Main uses the shared per-PR concurrency group with cancellation enabled for pull_request_target, while the label job skips edits without title or base changes.
Latest release comparison: The supplied latest release, v2026.9.4, also contains the shared concurrency group and edited-field job guard; it does not contain this isolation fix.
Introduced scheduling change: The complete pinned introduction diff changes only concurrency.group in the workflow. Its ignored-edit predicate matches the complement of existing PR job eligibility, and its run-ID prefix cannot collide with numeric PR groups or ref groups. Permissions, trusted checkout, action pins, and labeling operations remain unchanged.
Findings None None.
Security None None.

How this fits together

Labeler processes GitHub events and applies repository labels used for triage. Workflow concurrency decides which runs survive before individual labeling jobs evaluate whether the event interests them.

flowchart TD
  A[GitHub event] --> B{Ignored PR edit?}
  B -->|Yes| C[Unique run group]
  C --> D[Labeling jobs skipped]
  B -->|No| E[Existing PR or ref group]
  E --> F[Evaluate labeling jobs]
  F --> G[Update repository labels]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +116, Docs +2, Config +9. Total +127 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 120 4 +116
Docs 1 2 0 +2
Config 1 10 1 +9
Generated 0 0 0 0
Other 0 0 0 0
Total 3 132 5 +127

Review metrics

None.

Technical review

Best possible solution:

Keep ignored events outside the useful-work concurrency group while preserving existing labeling eligibility and useful-event replacement.

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

Yes, from source: admit useful labeling, then a body-only edit into the same cancelling group before job eligibility is evaluated; the pending-run variant also replaces useful work. No live reproduction was executed during this review.

Is this the best way to solve the issue?

Yes. Changing the ignored event's group addresses both active cancellation and pending replacement; disabling cancellation alone would leave the pending-work failure intact.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This fixes a concrete repository-labeling reliability problem with limited operational impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-author exemption applies: Labeler scheduling is supported by source and reported synthetic admission checks, while the captured body explicitly disclaims after-fix live cancellation proof; no material authority change triggers additional proof.

Label justifications:

  • P2: This fixes a concrete repository-labeling reliability problem with limited operational impact.
  • 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 maintainer-author exemption applies: Labeler scheduling is supported by source and reported synthetic admission checks, while the captured body explicitly disclaims after-fix live cancellation proof; no material authority change triggers additional proof.

Evidence

What I checked:

  • Current main still has the defect: Main uses the shared per-PR concurrency group with cancellation enabled for pull_request_target, while the label job skips edits without title or base changes. (.github/workflows/labeler.yml:22, a3a2d39a8e81)
  • Latest release comparison: The supplied latest release, v2026.9.4, also contains the shared concurrency group and edited-field job guard; it does not contain this isolation fix. (.github/workflows/labeler.yml:22, 3a9d69db306c)
  • Introduced scheduling change: The complete pinned introduction diff changes only concurrency.group in the workflow. Its ignored-edit predicate matches the complement of existing PR job eligibility, and its run-ID prefix cannot collide with numeric PR groups or ref groups. Permissions, trusted checkout, action pins, and labeling operations remain unchanged. (.github/workflows/labeler.yml:24, 12774003dd08)
  • Regression coverage and existing contract: The added cases cover preservation of running and pending labeling, useful-event replacement, draft labeling, and issue/manual sequencing. The existing workflow guard independently requires title/base-only edit eligibility. These are synthetic scheduling checks, not live GitHub cancellation proof. (test/scripts/ancillary-workflow-concurrency.test.ts:537, 12774003dd08)
  • Relevant history: Current-main history includes the edited-field guard change and the earlier ancillary scheduling repair. GitHub commit metadata identifies zats for the guard change and steipete for the existing scheduling test framework; these establish relevant routing candidates beyond this proposed branch. (.github/workflows/labeler.yml, 0960d07d8ef8)
  • Reported incident and proof scope: The captured PR body reports cancellation of Labeler run 35182266834 during work on improve: keep first-use session categories off the Gateway thread #150565 and explicitly distinguishes retained event observations from independently attributed cancellation logs. It reports passing scheduling and workflow checks but no after-fix live probe. The authoritative review context identifies the author as MEMBER and includes the maintainer label. (12774003dd08)

Likely related people:

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

@steipete
steipete merged commit e09d393 into main Sep 17, 2026
145 checks passed
@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. size: S 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