-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Move compile-fail tests with NOTE/HELP annotations to UI #46641
Conversation
This looks good. We should however document the expected policy, I think, to the compiler test documentation. I guess the idea is:
I will note one thing (which should not hold up this PR). I've been very much enjoying the fact that UI tests check for ERRORs. I like being able to add minimal annotations to the test that give the kind of "overall parameters" for what the test is testing (that errors occur here, here, and here) and then having the But there are times when I want to document a subset of the NOTEs that are present. i.e., so that I can outline "other variations in the stderr output may be acceptable, but if this NOTE disappears, that's a big problem". Note that I say subset -- often there are many notes, but it's just one piece I want to guarantee is present. Before, we required that if you document any note, you must document all notes. The result is that it discourages me from annotating these notes that I want to be present. (On the other hand, if you can't declare that the set of notes is exhaustive, you can't document that a note should not appear. I don't find this to be something I want to document very often, but it's certainly possible. But we could easily have a "NO_NOTE" annotation or something then.) What I do for now is to leave comments, but I fear that future people will not read them. |
Maybe it would be better suited for an issue with the appropriate tags? Do we have testsuite tags? |
@bors r+ |
📌 Commit 8f58682 has been approved by |
I don't follow. Maye what would be better suited? |
Sorry, I kind of skipped ahead. Adding a way to make these comments annotations that can't be ignored is certainly something that makes sense. It'll prevent accidental changes down the road. What I meant was make this comment an issue so it's not forgotten. |
☔ The latest upstream changes (presumably #46558) made this pull request unmergeable. Please resolve the merge conflicts. |
8f58682
to
2820616
Compare
@bors r=nikomatsakis |
📌 Commit 2820616 has been approved by |
⌛ Testing commit 28206165f20f9aab2eb1bdc9e27e93e64b266369 with merge 634341d84dbfa933c5ef2d6b41b9c9e554294d25... |
💔 Test failed - status-travis |
Curl failure, looks spurious. |
⌛ Testing commit 28206165f20f9aab2eb1bdc9e27e93e64b266369 with merge dc02dfe1058a0af48ebd811a8f744e6ef26500c9... |
💔 Test failed - status-travis |
@bors retry — http://crosstool-ng.org was down. |
☔ The latest upstream changes (presumably #46633) made this pull request unmergeable. Please resolve the merge conflicts. |
Update docs for custom normalization of test output
2820616
to
66bd53a
Compare
@bors r=nikomatsakis |
📌 Commit 66bd53a has been approved by |
Move compile-fail tests with NOTE/HELP annotations to UI Remove NOTE/HELP annotations from UI tests cc #44844 @oli-obk @est31 r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Remove NOTE/HELP annotations from UI tests
cc #44844 @oli-obk @est31
r? @nikomatsakis