Uh oh!
There was an error while loading. Please reload this page.
Make it possible to run cargo test for bootstrap - #95253
Conversation
rust-highfive
commented
Mar 23, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Huh. I'm surprised this is the same behavior-wise:
If the package has a build script, this is set to the folder where the build script should place its output. See below for more information. (Only set during compilation.)
That doesn't really seem like what we want? Or at least, it seems a little weird.
There was a problem hiding this comment.
ah, good point, cargo will probably cache these temporary files indefinitely. One alternative is to just use the out determined by Config::parse? But unfortunately cargo runs these tests with a working directory of src/bootstrap, so it will use src/bootstrap/build instead of the top-level build file :( you mentioned in another PR adding tempdir seems overkill, so I think OUT_DIR is probably an OK alternative? at least, it shouldn't hurt anything, nothing else in bootstrap reads from OUT_DIR.
Mark-Simulacrum
commented
Apr 6, 2022
I'm interested in hearing what the next steps for cargo test are. Are you intending to add support for anything other than bootstrap itself to get run via cargo test? (It seems possible though somewhat annoying). |
jyn514
commented
Apr 9, 2022
Ooh, this is an excellent idea :D I think it wouldn't be too terrible to do if we added an integration test in |
Note that this only runs bootstrap's self-tests, not compiler or library tests.
jyn514
commented
Apr 9, 2022
@rustbot ready |
Mark-Simulacrum
commented
Apr 10, 2022
@bors r+ |
bors
commented
Apr 10, 2022
📌 Commit a0de44f has been approved by |
bors
commented
Apr 10, 2022
⌛ Testing commit a0de44f with merge 693dcc53bd2ca16987fd5b93582444b0ff33534b... |
bors
commented
Apr 10, 2022
💔 Test failed - checks-actions |
rust-log-analyzer
commented
Apr 10, 2022
The job Click to see the possible cause of the failure (guessed by this bot) |
Mark-Simulacrum
commented
Apr 10, 2022
@bors retry stdio-from I/O error: operation failed to complete synchronously msvc |
bors
commented
Apr 10, 2022
bors
commented
Apr 10, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Apr 10, 2022
Finished benchmarking commit (32c2630): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Note that this only runs bootstrap's self-tests, not compiler or library tests.
Helps with #94829.