-
Notifications
You must be signed in to change notification settings - Fork 13.4k
"./x.py test --stage 0 --doc" does not run doc tests #73286
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I can confirm, doctests are not being run for std. I think a bigger question is, have they ever worked? Cargo will skip doctests whenever |
I am pretty sure that have used this command before and got test failures when I had screwed up. If you want, I can go back to older versions and verify. |
I'll try to figure out what's going on. I tried running with It's also very possible I am missing something, but I edited some doctests with errors, and a bare |
I'll try to put together a fix. |
Ouch. Is there a way we can ensure this does not happen again in the future? Looks like our test suite needs a test suite... |
It's pretty hard :/ I guess we can add a dummy doc test that writes some "well known" file and we can assert that the file is present -- perhaps do this per-crate. |
OK, it wasn't as bad as I originally reported. This regressed via rust-lang/cargo#8167 which is only in 1.45 (beta). I have a fix started at rust-lang/cargo#8358. This will require various steps:
|
Well, but it does mean that currently on CI we do not run doctests, right? |
Right, I just mean it hasn't been that long (only about a week). |
Fix doctests not running with --target=HOST. There was a regression in #8167 where `cargo test --target=$HOST` stopped running doctests. This caused doctests to silently stop running in rust-lang/rust (rust-lang/rust#73286). This PR restores the original behavior where `--target=$HOST` behaves as-if it is a normal host test. There was a discussion about this at #8167 (review), but I think I let it slip through the cracks.
Update bootstrap to rustc 1.45.0-beta.2 (1dc0f6d 2020-06-15) Pulls in changes from rust-lang#73326. Closes rust-lang#73286
Update bootstrap to rustc 1.45.0-beta.2 (1dc0f6d 2020-06-15) Pulls in changes from rust-lang#73326. Closes rust-lang#73286
I would expect the following command to run the libcore doc tests:
This used to work, but now all it does it build libcore and its test binaries. No tests are actually being run (which I verified by breaking one of them deliberately).
@Mark-Simulacrum any idea what is happening?
The text was updated successfully, but these errors were encountered: