Skip to content

ci: add cancel-in-progress concurrency to PR helper workflows#40725

Merged
rusackas merged 1 commit into
masterfrom
ci/concurrency-pr-workflows
Jun 3, 2026
Merged

ci: add cancel-in-progress concurrency to PR helper workflows#40725
rusackas merged 1 commit into
masterfrom
ci/concurrency-pr-workflows

Conversation

@rusackas
Copy link
Copy Markdown
Member

@rusackas rusackas commented Jun 3, 2026

SUMMARY

pr-lint, the GitHub Actions validator (github-action-validator), and the
labeler all re-run on every push to a PR (synchronize) but had no
concurrency group
, so rapid successive pushes left superseded runs going to
completion instead of being cancelled.

Add the standard PR-keyed concurrency block already used across the other
workflows:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
  cancel-in-progress: true

These are idempotent / last-run-wins workflows (title lint, action validation,
label sync), so cancelling an in-flight run is safe — the newest push re-runs
them. Small per-PR savings, but free.

Left intentionally untouched: welcome-new-users (one-shot on PR open),
showtime-trigger (label/unlabel semantics where cancellation could drop a
sync), and issue_creation (not synchronize-driven).

TESTING INSTRUCTIONS

Push twice in quick succession to a PR and confirm the first run of each of
these workflows is cancelled in favor of the latest.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

pr-lint, the GitHub Actions validator, and the labeler all re-run on each
push to a PR (synchronize) but had no concurrency group, so rapid pushes
left superseded runs going to completion. Add the standard PR-keyed
concurrency block (matching the rest of the workflows) so stale runs are
cancelled. These are idempotent/last-run-wins workflows, so cancellation
is safe.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Jun 3, 2026

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at evan@preset.io.

@dosubot dosubot Bot added the github_actions Pull requests that update GitHub Actions code label Jun 3, 2026
@rusackas rusackas added the merge-if-green If approved and tests are green, please go ahead and merge it for me label Jun 3, 2026
@rusackas rusackas merged commit c373da1 into master Jun 3, 2026
60 checks passed
@rusackas rusackas deleted the ci/concurrency-pr-workflows branch June 3, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code merge-if-green If approved and tests are green, please go ahead and merge it for me size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants