-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[EXPERIMENTAL] Test failure investigation #139561
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
Conversation
Co-authored-by: Oli Scherer <[email protected]>
Where the error relevant for these tests is emitted in `report_selection_error` in `fulfillment_errors.rs`, there's a check for the diagostic width. If the explanation is too wide for that width, it's moved to the `help` instead. This was causing the results from CI to not match the results observed in blessing the test locally. Let's update the relevant tests to fix this width and to test it both in a `narrow` and in a `wide` configuration. Thanks to jieyouxu for figuring this out.
@@ -7,9 +7,7 @@ | |||
// explanation is moved to the `help` instead of the span label. | |||
// | |||
//@ edition: 2024 | |||
//@ revisions: narrow wide | |||
//@[narrow] compile-flags: --diagnostic-width=20 | |||
//@[wide] compile-flags: --diagnostic-width=300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks almost like the test intentionally wants to cover different widths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Yes, I'm just checking if the original version of the test passes without manually specifying diag width, since it failed in CI but not locally)
For #137725.
r? ghost
@rustbot label +S-experimental