Uh oh!
There was an error while loading. Please reload this page.
Support incremental in compiletest for non-incremental modes. - #89101
Conversation
rust-highfive
commented
Sep 19, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
ehuss
commented
Sep 19, 2021
There was prior discussion about this at https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Incremental.20ICE.20running.20rustc.20tests.20on.20origin.2Fmaster/near/251211217 It was suggested that these tests could be moved to the incremental directory, but I don't think that is possible because these are codegen tests which are tested differently. I'm not familiar with these tests, so maybe they can be moved, so let me know if an alternate solution would be preferred. |
Uh oh!
There was an error while loading. Please reload this page.
Mark-Simulacrum
commented
Sep 23, 2021
I think we should also consider renaming the flag to "incremental" or "incremental-mode" -- I want to avoid accidentally reading it as similar to 'build-pass' or otherwise tying it specifically to build in that sense. r=me with the docs and a possible rename, happy to leave it up to you which to choose -- or if you feel strongly about -build, that's also OK. |
6a1342a to
2da6e66Compareehuss
commented
Sep 23, 2021
Yea, I can see how that can be confusing with I went ahead and renamed it back to just I kinda wish the header parsing was a little more strict so that risk of accidental matches wasn't there. Feel free to r- if that doesn't sound good, or if the comment I added isn't correct or clear. |
ehuss
commented
Sep 23, 2021
@bors r=Mark-Simulacrum |
bors
commented
Sep 23, 2021
📌 Commit 2da6e66 has been approved by |
Mark-Simulacrum
commented
Sep 23, 2021
Sounds great, thanks! Yeah, our header parsing story is not great :) |
bors
commented
Sep 26, 2021
bors
commented
Sep 26, 2021
☀️ Test successful - checks-actions |
rust-timer
commented
Sep 26, 2021
Finished benchmarking commit (ac8dd1b): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
These used to be used by codegen-units tests, but were switched from manually specifying directories to just using `// incremental` in rust-lang#89101. Remove the old references.
…acrum Remove references to `./tmp` in-tree These used to be used by codegen-units tests, but were switched from manually specifying directories to just using `// incremental` in rust-lang#89101. Remove the old references. Fixesrust-lang#34586.
This adds first-class support for using incremental builds in non-incremental-mode tests. These tests previously manually passed
-C incremental=tmp/foowhich resulted in reusing the same tmp folder between runs. This means that these tests could fail whenever the on-disk incremental format changed (such as when updating one's local source tree). This changes it so that these tests can pass a// incremental-buildheader which instructs compiletest to create a set aside a dedicated incremental directory which will be cleared before the test starts to ensure it has a clean slate.