-
Notifications
You must be signed in to change notification settings - Fork 352
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
"./miri test" is very slow on repeated executions #3297
Comments
It's not just "./miri run". "./miri test" has the same issue. This was fine until recently, so something must have changed somewhere to break this. |
I think it has to do with ui_test dependency building. Repeating "./miri test hello" is fine, but repeating a pass-dep test rebuilds a lot of stuff. Cc @oli-obk -- somehow it seems like ui_test dependency building is now polluting Miri's own build cache? |
Huh. We're still on a version from October. I'll investigate |
Turns out this has been ongoing for a while. |
Bisecting says this is the bad PR: #3252. That did indeed touch the "deps build" logic, by setting RUSTFLAGS to be empty. I'll leave it to you to continue here. :) |
As far as I can tell the |
Oh I see, so the issue isn't that dep builds get mixed with the other builds but that we're re-building |
compiletest: call cargo-miri directly rather than via 'cargo run' Fixes rust-lang/miri#3297. Thanks to `@bjorn3` for figuring out the cause of this. r? `@oli-obk`
Running
./miri run --dep
multiple times is very slow. The first time I guess it is building parts of Miri or so (./miri run
doesn't print any updates about what it does, making this hard to figure out), but the 2nd time it shouldn't have to do any of that -- and yet, it is slow.Needless to say, this is quite painful when debugging a pass-dep test.
The text was updated successfully, but these errors were encountered: