-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
allow rustdoc-js tests to be run at stage0 #135375
allow rustdoc-js tests to be run at stage0 #135375
Conversation
this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
Are One of the reasons In this configuration, wouldn't cc @rust-lang/rustdoc, maybe you could provide some insights for this workflow? |
stage 0 rustdoc is the rustdoc built with the stage0 compiler. it is not beta rustdoc https://rustc-dev-guide.rust-lang.org/building/bootstrapping/what-bootstrapping-does.html#overview-1 |
... Right. Let me double-check in a bit. |
also, if the behavior of |
Oh wait, the step corresponding to @bors r+ rollup |
Slightly unrelated but, apparently the test mode is called |
yeah i was surprised to see that |
I think there's also some logic that checks for a prefix |
I just read that code, and I thought it actually checked for a suffix of unless there's separate code that checks for a prefix that i didn't see. |
No you're right, it checks for suffix (but why?), for some reason I thought it did prefix matching |
probably because prefix matching would make at least a little sense :p most likely seems like a typo |
I could try to clean that up, if you want. |
Yeah, feel free to send a PR to rename the test mode (and use exact matching over suffix matching, probably), I'd happily review that. |
is it weird to put |
technically also means less work for the constant deduplication pass, but i don't think that's worth optimizing for in 2025 :p |
Yes, I would've used enums. It's fine in the current iteration of compiletest (to fix this specific strangeness). If we're going to change how the suites and modes are propagated it should be done uniformally. |
I'm not sure if you're saying i should or should not use a string constant, tbh. inlining a constant is trivial tho :p |
…0-rustdoc-js, r=jieyouxu allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
Rollup of 5 pull requests Successful merges: - rust-lang#132232 (CI: build FreeBSD artifacts on FreeBSD 13.4) - rust-lang#135266 (Remove emsdk version update from 1.84.0 relnotes) - rust-lang#135364 (Cleanup `suggest_binding_for_closure_capture_self` diag in borrowck) - rust-lang#135375 (allow rustdoc-js tests to be run at stage0) - rust-lang#135379 (Make (unstable API) `UniqueRc` invariant for soundness) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#135266 (Remove emsdk version update from 1.84.0 relnotes) - rust-lang#135364 (Cleanup `suggest_binding_for_closure_capture_self` diag in borrowck) - rust-lang#135375 (allow rustdoc-js tests to be run at stage0) - rust-lang#135379 (Make (unstable API) `UniqueRc` invariant for soundness) - rust-lang#135389 (compiletest: include stage0-sysroot libstd dylib in recipe dylib search path) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#135375 - lolbinarycat:bootstrap-allow-stage0-rustdoc-js, r=jieyouxu allow rustdoc-js tests to be run at stage0 this mirrors the behavior of rustdoc-js-std tests. previously this required COMPILETEST_FORCE_STAGE0.
now that the name of the test mode has been renamed, this no longer works! this is why i don't like having a bunch of PRs open at once. |
…js, r=clubby789 bootstrap: still require `COMPILETEST_FORCE_STAGE0` for `./x test rustdoc-js --stage 0` This PR reverts rust-lang#135375, because through some more testing I found out `./x test rustdoc-js --stage 0` does not in fact build rustdoc, and all the tests fail. This can't be intended behavior, so at least require `COMPILETEST_FORCE_STAGE0` to make it less likely to run `rustdoc-js --stage 0` by accident. The problem that `--stage 0` is not working at all for this rustdoc-js test suite is tracked over at rust-lang#135603. cc `@lolbinarycat` r? bootstrap
this mirrors the behavior of rustdoc-js-std tests.
previously this required COMPILETEST_FORCE_STAGE0.