-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
x.py test src/test/rustdoc
tries to run src/tools/tidy as if it were HTML tidy
#82501
Comments
I can't replicate this (specifically, confusing |
Semicolons replaced with newlines for clarity:
Interestingly a |
This is indeed Windows only. This is the culprit: Lines 1785 to 1792 in 1fdadbf
On windows, dylib_env_var() is PATH : rust/src/tools/compiletest/src/runtest.rs Lines 71 to 73 in 1fdadbf
stage0-bootstrap-tools\86_64-pc-windows-msvc\release\deps and stage0\bin . The strange thing is tidy isn't in either of those directories 😕 it's in stage0-bootstrap-tools\86_64-pc-windows-msvc\release (without deps ).
Hopefully I can change this so that only commands that compiletest runs get this variable set, not compiletest itself. If not, maybe I could just rename the |
I think I figured it out. The tidy that's being run is in build\x86_64-pc-windows-msvc\stage0-tools-bin, which is the same location as compiletest.exe. That's how it's finding a tidy without one being anywhere in PATH. |
Only look for HTML `tidy` when running rustdoc tests This avoids printing lots of unnecessary errors, as well as making the test suite slightly faster. This doesn't fix the windows bug tracked by rust-lang#82501, though. r? `@petrochenkov`
After #79370 I see this spam in
x.py
output:As I understand
compiletest
wants to run some third-party tool calledtidy
(withtidy --version
), but it actually runs the rustbuild'stidy
which doesn't support such command line use.(Also this expensive probing happens unconditionally when running any test, even it is not related to rustdoc.)
Originally posted by @petrochenkov in #79370 (comment)
The text was updated successfully, but these errors were encountered: