Skip to content

auto-cancel old PR builds#464

Merged
DilumAluthge merged 1 commit intomasterfrom
sds/cancel_intermediate
Sep 21, 2021
Merged

auto-cancel old PR builds#464
DilumAluthge merged 1 commit intomasterfrom
sds/cancel_intermediate

Conversation

@simeonschaub
Copy link
Copy Markdown
Member

We are beginning to hit concurrency limits of GH actions if there are
many pushes in a row since we do run quite a lot of jobs. This should
automatically cancel the old jobs for a particular PR if there is a more
recent push.

All credit goes to @DilumAluthge.

We are beginning to hit concurrency limits of GH actions if there are
many pushes in a row since we do run quite a lot of jobs. This should
automatically cancel the old jobs for a particular PR if there is a more
recent push.

All credit goes to @DilumAluthge.
@DilumAluthge DilumAluthge merged commit 19700de into master Sep 21, 2021
@DilumAluthge DilumAluthge deleted the sds/cancel_intermediate branch September 21, 2021 22:25
@simeonschaub
Copy link
Copy Markdown
Member Author

I think this is not yet correct. We need to give every job its own group, otherwise only one job will run and cancel all the rest.

@DilumAluthge
Copy link
Copy Markdown
Member

Hmmm. This should be handled by group: ${{ github.ref }}. That is, two different PRs have two different groups. Is that what you mean?

simeonschaub added a commit that referenced this pull request Sep 21, 2021
@simeonschaub simeonschaub mentioned this pull request Sep 21, 2021
@DilumAluthge
Copy link
Copy Markdown
Member

Oh I see what you mean. You mean different workflow files.

I'll make a PR. Basically we should put the name of the workflow file into the group.

@simeonschaub
Copy link
Copy Markdown
Member Author

Yes, that's what I did in #466

@DilumAluthge
Copy link
Copy Markdown
Member

Yes, that's what I did in #466

Ah you beat me to it 😂

simeonschaub added a commit that referenced this pull request Sep 21, 2021
* follow up to #464

ref #464 (comment)

* implement @DilumAluthge's suggestion
@willtebbutt
Copy link
Copy Markdown
Member

Not sure if it's helpful, but in the JuliaGPs ecosystem we make extensive use of this action to cancel existing jobs. Credit goes to @devmotion IIRC.

@devmotion
Copy link
Copy Markdown
Member

I was wondering if we could update it to the approach in this PR? It seems it should work in the same way? Seems nice to use an official functionality instead of a custom action.

@DilumAluthge
Copy link
Copy Markdown
Member

Yeah, I would recommend switching to the official functionality.

@devmotion
Copy link
Copy Markdown
Member

Already opened a PR: JuliaGaussianProcesses/KernelFunctions.jl#368 🙂

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (486922d) to head (11ce34c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #464      +/-   ##
==========================================
- Coverage   92.98%   92.49%   -0.49%     
==========================================
  Files          14       13       -1     
  Lines         812      799      -13     
==========================================
- Hits          755      739      -16     
- Misses         57       60       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

5 participants