-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tidy on UI tests is annoying #75987
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
Comments
Ok, I've found |
I disagree that this is an issue, various tidy checks are still very much useful for test code.
|
Tidy has been a nightmare.
I just wanted to add one word to an error message. It's taking me hours of tinkering and recompiling and the PR is taking two days to just get past the tidy. My enthusiasm went from "I've found a poorly worded error, I can fix it!" to "screw the petty gatekeeping tool, I don't have time to fight this". |
Perhaps it's annoying for the first time, but updating failing tests doesn't require any rebuilds and take ~5 minutes at most after the initial build.
|
But what do I need to do? I got this
No action was mention on how to solve it so the first one that came into my mind is to add The line looks like this and I don't know how to continue other than the mentioned impl Foo for u32 { //~ ERROR not all trait items implemented, missing: `foo`
default pub fn foo<T: Default>() -> T { T::default() }
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub`
} |
@kornelski do you think disabling the line length check is enough? #77675 I do think tidy (and all tests really) should suggest how to replicate exactly what went wrong without running a full x.py test, I'll open a separate issue for that. |
Line length has been the major issue, so perhaps just this is enough. |
Ok. I'm sorry you had a frustrating experience. I'll see if I can implement #84742 today or this weekend. |
I've added a single word to an error message, and it broke tests for a silly reason:
The line has to be that long, otherwise it's not testing the message. I don't know what to do about this.
The text was updated successfully, but these errors were encountered: