Skip to content

CI: replace cancel-outdated-builds with concurrency group #12477

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 13, 2024

This is the last remaining usage of the cancel-outdated-builds CI action. Which means that if we remove its usage, we can remove the code of the action :)

This action was replaced in rust-lang/rust with the native Github Actions concurrency group last year.

Note that unlike rust-lang/rust, which explicitly allows parallel try builds, clippy did not allow them, as all steps of the clippy_bors.yaml workflow used the cancel-outdated-builds action, regardless of the branch. So the new concurrency group mirrors that, which makes it a bit simpler than on rust-lang/rust.

changelog: none

r? @Mark-Simulacrum

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Mar 13, 2024
@flip1995
Copy link
Member

@bors r+

Thanks! There are no blockers on this from the Clippy side, so I don't think we have to wait for / bother Mark with this.

@bors
Copy link
Contributor

bors commented Mar 14, 2024

📌 Commit 11c2bad has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Mar 14, 2024

⌛ Testing commit 11c2bad with merge f0556e0...

bors added a commit that referenced this pull request Mar 14, 2024
CI: replace `cancel-outdated-builds` with `concurrency` group

This is the last remaining [usage](https://github.com/search?q=org%3Arust-lang%20cancel-outdated-builds&type=code) of the [cancel-outdated-builds](https://github.com/rust-lang/simpleinfra/tree/master/github-actions/cancel-outdated-builds) CI action. Which means that if we remove its usage, we can remove the code of the action :)

This action was replaced in `rust-lang/rust` with the native Github Actions `concurrency` group [last year](rust-lang/rust#112955).

Note that unlike `rust-lang/rust`, which explicitly allows parallel try builds, `clippy` did not allow them, as all steps of the `clippy_bors.yaml` workflow used the `cancel-outdated-builds` action, regardless of the branch. So the new `concurrency` group mirrors that, which makes it a bit simpler than on `rust-lang/rust`.

r? `@Mark-Simulacrum`
@bors
Copy link
Contributor

bors commented Mar 14, 2024

💔 Test failed - checks-action_test

@Kobzol
Copy link
Contributor Author

Kobzol commented Mar 14, 2024

Added changelog (didn't know it's required).

@flip1995
Copy link
Member

We need a changelog line, but if it is just an internal change, none is fine.

@bors retry

@bors
Copy link
Contributor

bors commented Mar 14, 2024

⌛ Testing commit 11c2bad with merge e77d7a3...

@bors
Copy link
Contributor

bors commented Mar 14, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing e77d7a3 to master...

@bors bors merged commit e77d7a3 into rust-lang:master Mar 14, 2024
@Kobzol Kobzol deleted the ci-concurrency-group branch March 14, 2024 11:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants