-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Some test code cleanup #8266
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
Some test code cleanup #8266
Conversation
I believe this is possible as of rust-lang#7631
r? @giraffate (rust-highfive has picked a reviewer for you, use r? to override) |
The two dogfood tests cannot be run concurrently since they use the same target directory.
This was more valuable when we used the latest nightly without specifying the toolchain version.
229d2f8
to
21343ab
Compare
This comment has been minimized.
This comment has been minimized.
Some test code cleanup changelog: none Mainly moves /clippy_workspace_tests into /tests and combines the two dogfood tests which can't run concurrently.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some test code cleanup changelog: none Mainly moves /clippy_workspace_tests into /tests and combines the two dogfood tests which can't run concurrently.
This comment has been minimized.
This comment has been minimized.
490e786
to
01ef7c7
Compare
@bors try |
Some test code cleanup changelog: none Mainly moves /clippy_workspace_tests into /tests and combines the two dogfood tests which can't run concurrently.
☀️ Try build successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
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.
LGTM. One more question about dogfood on windows. If you think it should be enabled feel free to r=me.
@@ -3,179 +3,26 @@ | |||
//! | |||
//! See [Eating your own dog food](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) for context | |||
|
|||
// Dogfood cannot run on Windows | |||
#![cfg(not(windows))] |
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.
The windows and mac runners are our slowest runners in CI and also the current bottleneck. This added another 1-2min to the windows runner. So I wonder if we should only run those tests on unix
. An argument against that is, that contributors using windows/mac, won't see dogfood errors until they submit a PR.
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.
Thanks for reviewing this.
Maybe I can find a way to get the best of both worlds using a flag or environment variable.
@bors try |
Some test code cleanup changelog: none Mainly moves /clippy_workspace_tests into /tests and combines the two dogfood tests which can't run concurrently.
49960fb
to
90bf72c
Compare
@bors r=flip1995 |
📌 Commit 90bf72c has been approved by |
That's a neat solution! Thanks! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: none
Mainly moves /clippy_workspace_tests into /tests and combines the two dogfood tests which can't run concurrently.