-
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
Migrate libtest-thread-limit
run-make
test to rmake
#128507
Conversation
This PR modifies cc @jieyouxu |
This comment has been minimized.
This comment has been minimized.
|
Argh, you see the
See In particular, the
|
Also note that the |
☔ The latest upstream changes (presumably #128361) made this pull request unmergeable. Please resolve the merge conflicts. |
@rustbot author |
5602322
to
97485af
Compare
The run-make-support library was changed cc @jieyouxu These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
97485af
to
cd3fe6d
Compare
@rustbot review This feels like progress, but it feels as if every possible permutation of 0 and 1 in all 3 arguments result in either a test failure or a coredump. |
This comment has been minimized.
This comment has been minimized.
I'm stuck on this libtest one as well, so I'm asking for help in #t-libs. @rustbot blocked (waiting for elp) |
#[test] fn foo() {}
#[test] fn bar() {} |
cd3fe6d
to
7ccc842
Compare
…eyouxu Migrate `libtest-thread-limit` `run-make` test to rmake Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try, but **only if normal CI is green**: // try-job: armhf-gnu // <- failed on this try-job: aarch64-gnu
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry (msvc ci spurious failure) |
…jieyouxu Migrate `libtest-thread-limit` `run-make` test to rmake Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try, but **only if normal CI is green**: // try-job: armhf-gnu // <- failed on this try-job: aarch64-gnu
Rollup of 7 pull requests Successful merges: - rust-lang#126985 (Implement `-Z embed-source` (DWARFv5 source code embedding extension)) - rust-lang#128507 (Migrate `libtest-thread-limit` `run-make` test to rmake) - rust-lang#128935 (More work on `zstd` compression) - rust-lang#129190 (Add f16 and f128 to tests/ui/consts/const-float-bits-conv.rs) - rust-lang#129295 (Build `library/profiler_builtins` from `ci-llvm` if appropriate) - rust-lang#129416 (library: Move unstable API of new_uninit to new features) - rust-lang#129418 (rustc: Simplify getting sysroot library directory) r? `@ghost` `@rustbot` modify labels: rollup
☀️ Test successful - checks-actions |
Finished benchmarking commit (eef00c8): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (secondary 1.6%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 750.941s -> 751.017s (0.01%) |
|
||
// The fork + exec is required because we cannot first try to limit the number of | ||
// processes/threads to 1 and then try to spawn a new process to run the test. We need to | ||
// setrlimit and run the libtest test program in the same process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using cmd.pre_exec(|| setrlimit(...))
would have worked too, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it probably would've worked too. I was not aware that existed.
I think the old never properly worked at all. With |
That is what we found out, it constantly failed because of the
I'm not sure I understand, is it accurate if I rephrase what you said as: "Adding
Are you saying that the new rmake.rs test is failing in Cranelift's CI in its current form, or only if you add the unwind flags?
Do you think the test should also be expanded to check that adding |
Yes
In it's current form it fails. Adding |
Alright, added in #129690. |
Yes. Unfortunately the test never properly worked ever since it was added due to makefile syntax shenangians. The actual test itself always failed, but the Makefile never fails. |
…ouxu Add `needs-unwind` compiletest directive to `libtest-thread-limit` and replace some `Path` with `path` in `run-make` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). This PR does two things: 1. Add this to `libtest-thread-limit` ([Why?](rust-lang#128507 (comment))) ``` //@ needs-unwind // Reason: this should be ignored in cg_clif (Cranelift) CI and anywhere // else that uses panic=abort. ``` 2. Use `path` instead of `Path` to simplify multiple run-make tests.
Rollup merge of rust-lang#129690 - Oneirical:run-make-tidbits, r=jieyouxu Add `needs-unwind` compiletest directive to `libtest-thread-limit` and replace some `Path` with `path` in `run-make` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). This PR does two things: 1. Add this to `libtest-thread-limit` ([Why?](rust-lang#128507 (comment))) ``` //@ needs-unwind // Reason: this should be ignored in cg_clif (Cranelift) CI and anywhere // else that uses panic=abort. ``` 2. Use `path` instead of `Path` to simplify multiple run-make tests.
Part of #121876 and the associated Google Summer of Code project.
Please try, but only if normal CI is green:
// try-job: armhf-gnu // <- failed on this
try-job: aarch64-gnu