Uh oh!
There was an error while loading. Please reload this page.
Revamp // run-fail wrt. --pass & support // build-fail & // check-fail - #66932
Conversation
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ninjasource
commented
Dec 1, 2019
@Centril and @petrochenkov, there is a preexisting (and passing) It may be worthwhile adding the relevant flags above to the offending async run-fail tests. However, I'm not sure if this test gets any special treatment and I cannot reproduce the failures locally. |
5660aef to
68cce86Compare--pass check work with // run-fail tests// run-fail wrt. --pass & support // build-fail & // check-failCentril
commented
Dec 14, 2019
@petrochenkov I've rewritten the approach from scratch to something more useful and principled. :) |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -1,3 +1,4 @@ | |||
| // build-fail | |||
There was a problem hiding this comment.
I don't see how this is checked.
Looks like if the test starts failing at the "check" phase it will still pass with the // build-fail annotation.
Why are such annotations useful then?
There was a problem hiding this comment.
Also, how the // build-fail test set was collected?
This can be done by introducing some kind of analogue of --pass check, but for failing tests, but I don't see it in this PR.
There was a problem hiding this comment.
Looks like if the test starts failing at the "check" phase it will still pass with the
// build-failannotation.
Ouch; Didn't think of that. To fix it, I think we'd need to compile the test twice, once as check-pass and once as build-fail.
Also, how the
// build-failtest set was collected?
A set of tests started failing because they did not fail with --emit metadata.
This can be done by introducing some kind of analogue of
--pass check, but for failing tests, but I don't see it in this PR.
Didn't feel necessary, but I can add --fail if you think it's useful.
There was a problem hiding this comment.
but I can add --fail if you think it's useful.
No, no, just running twice would probably be preferable, the number of such tests is not too large, but we need to measure.
This is material for another PR anyway.
There was a problem hiding this comment.
I think I fixed it, but I had to refactor things to get rid of some implicit state to make it work. I think things should be less brittle & more understandable now. Let's see what the CI builder says. :)
Centril
commented
Dec 14, 2019
PR builder is happy at last. 🎉 |
petrochenkov
commented
Dec 14, 2019
@bors r+ |
bors
commented
Dec 14, 2019
📌 Commit fdedf4c has been approved by |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Centril
commented
Dec 20, 2019
@bors p=199 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3049924 to
73e6a21CompareCentril
commented
Dec 21, 2019
Fixed the 32-bit-only tests wrt. build-fail. @bors r=petrochenkov |
bors
commented
Dec 21, 2019
📌 Commit 73e6a21 has been approved by |
bors
commented
Dec 22, 2019
Revamp `// run-fail` wrt. `--pass` & support `// build-fail` & `// check-fail` Revamp how `// run-fail` tests work internally by having a separate `FailMode` that does not interfere with `PassMode`. In particular, `--pass check` will now have no effect on `// *-fail` tests. Moreover, new test annotations `// check-fail` (the default) and `// build-fail` are added. The latter is useful to distinguish post-monomorphization failures from pre-monomorphization failures as seen throughout the PR. Finally, ensure that non-`Ui` tests do not listen to `--pass check` such that the flag can be used with e.g. `./x.py test --pass check` directly. Fixes#66929. Fixes#67128. r? @petrochenkov cc @RalfJung@ninjasource
bors
commented
Dec 22, 2019
☀️ Test successful - checks-azure |
Revamp how
// run-failtests work internally by having a separateFailModethat does not interfere withPassMode. In particular,--pass checkwill now have no effect on// *-failtests. Moreover, new test annotations// check-fail(the default) and// build-failare added. The latter is useful to distinguish post-monomorphization failures from pre-monomorphization failures as seen throughout the PR. Finally, ensure that non-Uitests do not listen to--pass checksuch that the flag can be used with e.g../x.py test --pass checkdirectly.Fixes#66929.
Fixes#67128.
r? @petrochenkov
cc @RalfJung@ninjasource