Update concurrency groups to prevent merge runs and pull request runs from canceling each other#26257
Merged
Merged
Conversation
…t cancellation Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update concurrency group in Windows CI workflow
Update concurrency groups to prevent merge runs and pull request runs from canceling each other
Oct 20, 2025
adityapatwardhan
approved these changes
Oct 21, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the concurrency group configuration across all CI workflow files to prevent merge runs and pull request runs from canceling each other by explicitly including the event type in the concurrency group identifier.
Key Changes:
- Added
github.event_nameto concurrency group definitions to create distinct groups per event type - Applied consistently across Windows, Linux, and macOS CI workflows
- Ensures parallel execution of different event types while maintaining cancellation within same event type
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/windows-ci.yml |
Updated concurrency group to include event_name for event type isolation |
.github/workflows/macos-ci.yml |
Updated concurrency group to include event_name for event type isolation |
.github/workflows/linux-ci.yml |
Updated concurrency group to include event_name for event type isolation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
jshigetomi
approved these changes
Oct 21, 2025
Contributor
|
📣 Hey @@Copilot, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
… from canceling each other (PowerShell#26257) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
kilasuit
pushed a commit
to kilasuit/PowerShell
that referenced
this pull request
Jan 2, 2026
… from canceling each other (PowerShell#26257) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
JustinGrote
pushed a commit
to JustinGrote/PowerShell
that referenced
this pull request
Jun 2, 2026
… from canceling each other (PowerShell#26257) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
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.
Summary
Updated the concurrency group configuration in the CI workflow files to include
github.event_name, ensuring that merge runs (push events) and pull request runs (pull_request events) operate in separate concurrency groups and don't cancel each other.Problem
The previous concurrency group configuration used only
github.workflowandgithub.ref:While this typically worked because merge runs and PR runs usually have different refs, it wasn't explicitly guaranteed and could lead to edge cases where different event types might interfere with each other.
Solution
Added
github.event_nameto the concurrency group:This creates distinct concurrency groups for different event types:
Windows-CI-pull_request-refs/pull/123/mergeWindows-CI-push-refs/heads/masterWindows-CI-workflow_dispatch-refs/heads/branch-nameBenefits
Files Changed
.github/workflows/windows-ci.yml.github/workflows/linux-ci.yml.github/workflows/macos-ci.ymlOriginal 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.