Fix rerun-workflow-run concurrency to prevent cross-PR cancellation#18693
Merged
Fix rerun-workflow-run concurrency to prevent cross-PR cancellation#18693
Conversation
Contributor
|
@Copilot Thank you for the contribution! Could you fix the following issue(s)? ⚠ Invalid PR templateThis PR does not appear to have been filed using the MLflow PR template. Please copy the PR template from here and fill it out. |
Replace github.ref with github.event.workflow_run.head_branch in the concurrency configuration to ensure each PR's rerun has a unique concurrency group, preventing simultaneous PR approvals from canceling each other's reruns. Signed-off-by: GitHub Copilot <noreply@github.com> Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update concurrency group for rerun workflow
Fix rerun-workflow-run concurrency to prevent cross-PR cancellation
Nov 5, 2025
harupy
approved these changes
Nov 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
workflow_runevents,${{ github.ref }}always evaluates torefs/heads/master, causing simultaneous PR approvals to cancel each other's reruns (e.g., https://github.com/mlflow/mlflow/actions/runs/19103802025/attempts/1).Changes
${{ github.ref }}with${{ github.event.workflow_run.head_branch }}in the concurrency group configurationThis ensures each PR's rerun operates in its own concurrency group based on the actual head branch:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.