Skip to content

Bless uitest source annotations #109080

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

Closed
wants to merge 1 commit into from

Conversation

clubby789
Copy link
Contributor

When --bless is set, automatically rewrite the test file with the found annotations. I'm not sure if the line length numbers here are great.
I'm also not sure what the best way to approach re-blessing stderr files is (in case line numbers were changed with the new annotations)

@rustbot
Copy link
Collaborator

rustbot commented Mar 13, 2023

r? @oli-obk

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 13, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Mar 13, 2023

The whole purpose of these annotations is that you take care with them and make a decision on every single one, especially if the lines change or the formatting changes.

I do see that when you do changes to main error messages that they affect a lot of ui tests, but I don't think making blessing the default is a good idea.

@clubby789
Copy link
Contributor Author

What do you think about putting this behind a new flag like --bless-annotations?

@oli-obk
Copy link
Contributor

oli-obk commented Mar 16, 2023

My problem is not with how complicated it is to do, but with the fact that it is doable at all. I do not think we should pursue this. We already bless stderr files, if we blessed the annotations we could also just not have the annotations and only look at the stderr output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants