-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Filter ui revision tests #59250
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
Filter ui revision tests #59250
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This is just an oversight, yes, thanks for fixing it. You may want to check whether fulldeps tests and NLL tests are updated properly. ./x.py test --bless src/test/ui --compare-mode nll
./x.py test --bless src/test/ui-fulldeps and otherwise search for accidental r=me after that |
I applied some sed-magic to the test folder, hopefully this will fix all the tests I didn't/couldn't run. |
@bors r+ p=1 I suspect that these ones are just stray files and can be removed though
|
📌 Commit 9eedfdea35797da3cc03acf9882ca2b9df87f2f2 has been approved by |
@petrochenkov Do you want me to remove those files? Also, what is the common practice, should I squash the last two commits (and possibly the last one) into one commit? Or maybe noone cares? |
@bovinebuddha |
I found 402 other stderr revision files which are no longer used.... I'd like to remove them all, but maybe I'll do that in another PR once this lands. Would it be okay to add a bash script under src/test with a make command to remove these extraneous files? It was a 'simple' exercise of find, grep, sed. Or should something maybe be added to x.py instead? |
Are you sure those are not produced by NLL tests or something?
We already have a check for unused files in |
9eedfde
to
704649d
Compare
Ah, you were right of course. Those were all nll checks plus a few false positives by me. I didn't realize that revisions and the nll compare mode had the same mechanism for generating stderr files... I pushed a commit which removed the files you mentioned, there were no other obsolete files I could find. |
@petrochenkov Thanks for the help, and please r+ when you have the time :) |
@bors r+ |
📌 Commit 704649d has been approved by |
How do you actually know which tests are executed for each compare mode? I was thinking about updating 'tools/tidy/src/ui_tests.rs' to check if the test actually specified the relevant revision. I don't know where to check to resolve mode/revision ambiguity though. |
I'm not entirely sure, but from what I can infer from code in Revisions that are run for each specific test are specified in its |
Hmmm, I see. I also find this fascinating 'ignore-compare-mode-nll' annotations in tests which actually specify nll as a revision. I guess any check would have to hardcode all possible compare modes for their possible existence. |
…chenkov Filter ui revision tests Updates UI test output filtering to also filter away test annotations for revisions: Previously filtered: //~ ERROR [XXXX] Now also filters: //[revision]~ ERROR [XXXX] I reckon, if we have the one, we should have the other for consistency, its lack was probably an oversight (the existence of revision testing is not really well documented...)
☀️ Test successful - checks-travis, status-appveyor |
Updates UI test output filtering to also filter away test annotations for revisions:
Previously filtered: //~ ERROR [XXXX]
Now also filters: //[revision]~ ERROR [XXXX]
I reckon, if we have the one, we should have the other for consistency, its lack was probably an oversight (the existence of revision testing is not really well documented...)