-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add x.py option to --force-rerun compiletest tests #87744
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
eeee77b
to
b7e9b1a
Compare
I am ... a little surprised that this is something people are doing; can you share more details perhaps? I would've expected to see that under some kind of reproducible builds style environment, where the test invocation is extracted and run separately under various users, times, environment variables, etc. It seems like there's been a lot of positive feedback from folks though based on the GitHub emojis, so I'd like to hear more but not strictly opposed to landing this. I do want to make sure that the use case is being correctly addressed, however. It may for example make more sense for x.py clean src/test/ui to delete the test artifacts and allow tests to rerun, without needing to propagate options into compile test to force a lack of caching. |
@Mark-Simulacrum Often I see things in test |
Hm. Interesting! I don't think I've ever seen anything that looks like a memory address or similar in a stderr file, so I'd be interested in further details. I'm going to go ahead and r=me on this, but mark it as S-waiting-on-team because I want to hear if this is a common problem -- it might be that we should (for example) automatically run tests twice in --bless mode if we've saved a new version of the input and report differences to the user. |
@Mark-Simulacrum One thing that kinda looks like a memory address I've seen is things like this.
|
I use this for debugging what the compiler is doing, not for actually running tests. I set RUSTDOC_LOG when running tests a lot and it can be difficult to replicate UI tests through rustup, especially when they use aux-build files. |
@bors r+ Seems OK, looks like we have several usage patterns at least. |
📌 Commit b7e9b1a has been approved by |
…rk-Simulacrum Add x.py option to --force-rerun compiletest tests This can be used like `./x.py test src/test/ui/abi/ --force-rerun`, and is useful when verifying that newly blessed tests don't change between test runs (such as due to being dependent on the current time or memory layout or RNG), without needing to change the test file or find the right file in `build` to remove.
Rollup of 6 pull requests Successful merges: - rust-lang#87744 (Add x.py option to --force-rerun compiletest tests) - rust-lang#87789 (Make vec-shrink-panic test compatible with v0 mangling) - rust-lang#87833 (Fix typo -- "The" -> "They") - rust-lang#87834 (Fix small typo) - rust-lang#87838 (Document that fs::read_dir skips . and ..) - rust-lang#87842 (Fix intra doc link in hidden doc of Iterator::__iterator_get_unchecked) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This can be used like
./x.py test src/test/ui/abi/ --force-rerun
, and is useful when verifying that newly blessed tests don't change between test runs (such as due to being dependent on the current time or memory layout or RNG), without needing to change the test file or find the right file inbuild
to remove.