Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel lengthy running workflows if a new commit is pushed #7601

Merged
merged 2 commits into from
May 20, 2024

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented May 20, 2024

With this change, if a branch is updated while any of the affected workflows are still running on the branch's previous HEAD, the outstanding runs are cancelled. As a result, the runs for the updated HEAD will not have to wait as long for runners to become available, and resources will not be wasted on outdated code.

@jwodder jwodder added semver-tests Changes only affect tests, no impact on version CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels May 20, 2024
@jwodder jwodder requested a review from yarikoptic May 20, 2024 15:53
@github-actions github-actions bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label May 20, 2024
Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.65%. Comparing base (fda2048) to head (8d2fe0f).

Additional details and impacted files
@@            Coverage Diff             @@
##            maint    #7601      +/-   ##
==========================================
- Coverage   91.30%   90.65%   -0.66%     
==========================================
  Files         325      325              
  Lines       43459    43455       -4     
  Branches     5781        0    -5781     
==========================================
- Hits        39682    39395     -287     
- Misses       3762     4060     +298     
+ Partials       15        0      -15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yarikoptic
Copy link
Member

Thank you @jwodder !

@yarikoptic yarikoptic merged commit ffe92b7 into datalad:maint May 20, 2024
9 of 21 checks passed
@jwodder jwodder deleted the concurrency branch May 21, 2024 23:27
@yarikoptic-gitmate
Copy link
Collaborator

PR released in 1.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-tests Changes only affect tests, no impact on version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants