-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Rewrite update-all-references bash scripts in Rust #6413
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
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
#5394 also mentions that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work in rustc I guess. But we can make this work in a later PR somehow.
clippy_dev/src/bless.rs
Outdated
} | ||
} | ||
|
||
fn update_test_file(test_file_path: PathBuf) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Maybe a better naming would be
fn update_test_file(test_file_path: PathBuf) { | |
fn update_test_file(reference_file_path: PathBuf) { |
and the same for other *_test_file*
names.
And then for build_output
, test_output
instead?
With this the if
clause below would become if test_output != reference_file
, which is more intuitive to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that's much better, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with CI passing
This replaces the `update-all-references` scripts with a single cargo dev bless command. cc rust-lang#5394
@bors r=flip1995 |
📌 Commit b8501e1 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This replaces the
update-all-references
scripts with a singlecommand. It should behave mostly the same as the bash scripts. The major difference is, that it can be called from the project root and will always update the files in all of the test suites.
cc #5394
changelog: none