Skip to content

SapMachine #1985: Fix sync-fork-checks concurrency group to be per-PR#2325

Merged
RealCLanger merged 1 commit into
SAP:sapmachinefrom
RealCLanger:sapmachine-fix-sync-fork-checks-concurrency
Jul 3, 2026
Merged

SapMachine #1985: Fix sync-fork-checks concurrency group to be per-PR#2325
RealCLanger merged 1 commit into
SAP:sapmachinefrom
RealCLanger:sapmachine-fix-sync-fork-checks-concurrency

Conversation

@RealCLanger

Copy link
Copy Markdown
Member

The sync-fork-checks.yml workflow used ${{ github.ref }} as the concurrency group key. For pull_request_target events, github.ref resolves to the base branch (e.g. refs/heads/sapmachine), not the PR branch — so all open PRs targeting the same base branch shared one concurrency slot, and a new run for any PR would cancel the currently-running one for any other PR.

Two fixes:

  • Use ${{ github.event.pull_request.number }} in the concurrency group key so each PR gets its own slot.
  • Add a cancelled() cleanup step that marks any in-progress check runs for the commit as cancelled, preventing dangling in_progress check runs on the PR when the job is superseded.

fixes #1985

@SapMachine

Copy link
Copy Markdown
Member

Hello @RealCLanger, this pull request fulfills all formal requirements.

@raeessap raeessap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RealCLanger RealCLanger merged commit ca971cf into SAP:sapmachine Jul 3, 2026
65 of 119 checks passed
@RealCLanger RealCLanger deleted the sapmachine-fix-sync-fork-checks-concurrency branch July 3, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Github Actions settings for new SapMachine branches

3 participants