Skip to content

feat(ci): cancel in-progress PR workflows on new commit push#5994

Merged
sentrivana merged 1 commit intomasterfrom
devinfra/workflow-concurrency
Apr 14, 2026
Merged

feat(ci): cancel in-progress PR workflows on new commit push#5994
sentrivana merged 1 commit intomasterfrom
devinfra/workflow-concurrency

Conversation

@joshuarli
Copy link
Copy Markdown
Member

this adds concurrency cancellation to pull_request workflows so that pushing a new commit to a PR automatically cancels any still-running workflow from the previous commit

99% of the time if you push a new commit you don't care about the previous workflow if its still running

we already do this for all sentry+getsentry pull_request workflows

we (devinfra) can't measure this yet but this would greatly help decrease org-wide runner queue pressure!

@joshuarli joshuarli requested a review from a team as a code owner April 13, 2026 22:35
@github-actions
Copy link
Copy Markdown
Contributor

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (ci) Cancel in-progress PR workflows on new commit push by joshuarli in #5994

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 13, 2026

Codecov Results 📊

13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 9.33s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 14966 uncovered lines.
✅ Project coverage is 29.7%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    24.95%    29.70%    +4.75%
==========================================
  Files          191       191         —
  Lines        21290     21290         —
  Branches      7010      7010         —
==========================================
+ Hits          5311      6324     +1013
- Misses       15979     14966     -1013
- Partials       432       477       +45

Generated by Codecov Action

Copy link
Copy Markdown
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

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

Let's do it -- we're already doing it in other workflows, too.

@sentrivana sentrivana merged commit bc5759c into master Apr 14, 2026
159 checks passed
@sentrivana sentrivana deleted the devinfra/workflow-concurrency branch April 14, 2026 06:13
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.

2 participants