-
Notifications
You must be signed in to change notification settings - Fork 13k
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
"the full type name has been written to disk" causes UI tests to fail #113424
Comments
The tests pass for me and they're passing in CI. So I suspect there is something about your system that differs from mine and CI. Can you post the contents of your |
Also, could you share how these tests are failing? Failing tests usually explain why their stderr differs from expected, or otherwise explain why the test happened to fail. |
Hi there, I just did a fresh clone and got the same failures (target x86_64-unknown-linux-gnu). The Cargo.toml file has not been changed. The test pass when I used my Mac device. The test each have "The actual stderr differed from the expected stderr." The actual stderr seems to have extra lines " ...the full type name has been written to.." which are not in the expected stderr. Could that be the cause of the failure? If so, what can a fix look like? Full output on terminal: |
@cchiw is your copy of rust cloned into some really deep directory path? like... the problem is that your tests are failing because your build is producing type names that hit the length limit and are spilled to disk, and that file limit is dependent (unfortunately) on the path that the rust clone is located at... |
we should probably fix this so that UI tests don't spill any long type names to disk by default. We could do this by adding a compiler flag that disables this behavior, and enable that flag by default in the ui testing suite. |
this is a great idea — if we do this, we should also remove the code that enables remap-path-prefix in CI. |
I can reproduce this locally by cloning @rustbot claim |
alternatively, we could gate it under the existing |
I have code that works for this, but there are some tests under |
👍 this seems good. i would bikeshed the name as |
I have a pull-request for this, but I'm getting an error in the CI pipeline that I haven't dug too deep into, was wondering if there is a simple explanation for this? #113893 (comment) Thanks |
Pull-request to remove remap-path-prefix code for CI builds: #114090 |
I tried this code:
./x test --doc
and./x test --no-doc
I expected to see this happen: All tests passing. No doc tests running when using
--no-doc
Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: