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

ci: Replace unmaintained actions-rs GH actions #6156

Merged
merged 4 commits into from
Jan 19, 2023

Conversation

groszewn
Copy link
Contributor

@groszewn groszewn commented Jan 19, 2023

actions-rs/toolchain and actions-rs/clippy-check have not been updated in the last two years. There are multiple GH action warnings coming from our usage of these actions (Node.js version, save-state, set-output), so we need to replace these.

dtolnay/rust-toolchain is maintained and is roughly a drop-in replacement (modulo one of two arguments to the action itself).

clippy-check seems to have been generally broken for us, since it can't post lints as annotations back to the PR if it comes from a fork (which most of our PRs do). Instead, we can simply define the cargo clippy command directly in our action and make sure we fail on any raised warnings.

This resolves #6155.

@groszewn groszewn force-pushed the rust_ci_updates branch 4 times, most recently from c62e087 to 5b30b01 Compare January 19, 2023 13:53
@groszewn groszewn marked this pull request as ready for review January 19, 2023 14:10
@groszewn groszewn requested a review from nfelt January 19, 2023 14:10
[actions-rs/toolchain](https://github.com/actions-rs/toolchain) and
[actions-rs/clippy-check](https://github.com/actions-rs/clippy-check)
have not been updated in the last two years. There are multiple GH
action warnings coming from our usage of these actions (Node.js version,
`save-state`, `set-output`), so we need to replace these.

[dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) is
maintained and is roughly a drop-in replacement (modulo one of two
arguments to the action itself).

`clippy-check` seems to have been generally broken for us, since it
[can't post lints as annotations back to the PR if it comes from a
fork](actions-rs/clippy-check#2)
(which most of our PRs do). Instead, we can simply define the `cargo
clippy` command directly in our action and make sure we fail on any
raised warnings.
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Thanks, this is great! I hadn't realized clippy wasn't working for all PRs, nice job figuring that out.

@groszewn groszewn merged commit 15aa812 into tensorflow:master Jan 19, 2023
@groszewn groszewn deleted the rust_ci_updates branch January 19, 2023 21:41
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
[actions-rs/toolchain](https://github.com/actions-rs/toolchain) and
[actions-rs/clippy-check](https://github.com/actions-rs/clippy-check)
have not been updated in the last two years. There are multiple GH
action warnings coming from our usage of these actions (Node.js version,
`save-state`, `set-output`), so we need to replace these.

[dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) is
maintained and is roughly a drop-in replacement (modulo one of two
arguments to the action itself).

`clippy-check` seems to have been generally broken for us, since it
[can't post lints as annotations back to the PR if it comes from a
fork](actions-rs/clippy-check#2) (which most
of our PRs do). Instead, we can simply define the `cargo clippy` command
directly in our action and make sure we fail on any raised warnings.

This resolves tensorflow#6155.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
[actions-rs/toolchain](https://github.com/actions-rs/toolchain) and
[actions-rs/clippy-check](https://github.com/actions-rs/clippy-check)
have not been updated in the last two years. There are multiple GH
action warnings coming from our usage of these actions (Node.js version,
`save-state`, `set-output`), so we need to replace these.

[dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) is
maintained and is roughly a drop-in replacement (modulo one of two
arguments to the action itself).

`clippy-check` seems to have been generally broken for us, since it
[can't post lints as annotations back to the PR if it comes from a
fork](actions-rs/clippy-check#2) (which most
of our PRs do). Instead, we can simply define the `cargo clippy` command
directly in our action and make sure we fail on any raised warnings.

This resolves tensorflow#6155.
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.

Find replacements for rust-specific CI actions
2 participants