-
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
Port tests/run-make/libtest-json
to tests/ui
#126773
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
This PR modifies cc @jieyouxu Some changes occurred in src/tools/compiletest cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
Not sure why the meta test is unhappy in CI; I haven't been able to reproduce it locally. Maybe I can hack things to make the check unconditionally fail, and see what result that has. |
As a tangent, this kind of makes me want to rip out the automatic detection of JSON-like output, and replace it with one or more opt-in headers. |
This makes it easier to normalize output containing double-quotes, such as JSON strings.
If we're printing process output after some other check has failed, and the output is JSON-like, we shouldn't necessarily assume that it is valid JSON produced by the compiler. If it isn't, printing it as-is is more helpful than printing a less-relevant error message.
This comment has been minimized.
This comment has been minimized.
This is baffling. If I run the meta test on my machine, everything is as expected. When the same test runs in CI, it complains that the But if I remove any of those |
This also seems to work fine in |
Ah, maybe this is related to |
☔ The latest upstream changes (presumably #126788) made this pull request unmergeable. Please resolve the merge conflicts. |
r? @jieyouxu |
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? `@jieyouxu` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? `@jieyouxu` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? `@jieyouxu` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? ``@jieyouxu`` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? ```@jieyouxu``` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? ````@jieyouxu```` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Rollup merge of rust-lang#129037 - Zalathar:rmake-libtest, r=jieyouxu Port `run-make/libtest-json` and `run-make/libtest-junit` to rmake Unlike rust-lang#126773, this is just a straightforward port to `rmake`, without attempting to switch to compiletest or get rid of the (trivial) Python scripts. Part of rust-lang#121876. r? ````@jieyouxu```` try-job: x86_64-msvc try-job: i686-mingw try-job: test-various try-job: aarch64-gnu try-job: aarch64-apple
Superseded by #129037. |
This was another example of a run-make test that was almost a ui test, but needed a little bit of extra help from compiletest to make that happen.
Specifically, this PR:
"
in//@ normalize-*
headers, to make it viable to normalize JSON object fields.//@ normalize-*
headers #126370.extract_rendered
the option to not panic when it sees unfamiliar JSON-like output.//@ check-run-stdout-is-json-lines
header to verify that run-stdout contains well-formed JSON on each line.Part of #121876; fixes #126373.