-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 relro-levels
, static-pie
to rmake
#126715
Conversation
This PR modifies cc @jieyouxu The run-make-support library was changed cc @jieyouxu |
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.
I left a comment about extra_c_flags
and extra_cxx_flags
anyhow in issue-68794-textrel-on-minimal-lib
as it may be useful to you in the future if you want to continue helping the test oxidization efforts!
24b5de8
to
9f8d584
Compare
relro-levels
, issue-68794-textrel-on-minimal-lib
, static-pie
to rmake
relro-levels
, static-pie
to rmake
tests/run-make/relro-levels/rmake.rs
Outdated
@@ -0,0 +1,29 @@ | |||
// This tests the different -Crelro-level values, and makes sure that they work properly. | |||
|
|||
//@ ignore-cross-compile |
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.
Question: is ignoring cross-compilation load-bearing here? We can try to see if this test fails in cross-compiling CI jobs if you remove this for now.
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.
Question: can you try removing this //@ ignore-cross-compile
and we can run try jobs to check if that is needed.
tests/run-make/static-pie/rmake.rs
Outdated
.arg(format!("-Clinker={compiler}")) | ||
.arg("-Clinker-flavor=gcc") | ||
.arg("-Ctarget-feature=+crt-static") |
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.
Suggestion: we should add helpers for these to the support library if they don't already exist.
9f8d584
to
591bbf6
Compare
This comment has been minimized.
This comment has been minimized.
4a93663
to
f8c9a23
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #126817) made this pull request unmergeable. Please resolve the merge conflicts. |
f8c9a23
to
9128769
Compare
This comment has been minimized.
This comment has been minimized.
9128769
to
39faece
Compare
This comment has been minimized.
This comment has been minimized.
2085157
to
c69770d
Compare
@rustbot review |
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.
Thanks, looks overall good to me, just have two questions.
tests/run-make/relro-levels/rmake.rs
Outdated
@@ -0,0 +1,29 @@ | |||
// This tests the different -Crelro-level values, and makes sure that they work properly. | |||
|
|||
//@ ignore-cross-compile |
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.
Question: can you try removing this //@ ignore-cross-compile
and we can run try jobs to check if that is needed.
@bors try |
Migrate `relro-levels`, `static-pie` to `rmake` Part of rust-lang#121876. r? `@jieyouxu` try-job: aarch64-gnu try-job: arm-android try-job: armhf-gnu try-job: dist-i586-gnu-i586-i686-musl try-job: dist-various-1 try-job: test-various
☀️ Try build successful - checks-actions |
In the long term I think we should hoist such C compiler detection to compiletest and then expose them to tests via specific env vars, but this is fine. Thanks! |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d4cc01c): 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 (primary -2.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: 691.822s -> 692.678s (0.12%) |
Part of #121876.
r? @jieyouxu
try-job: aarch64-gnu
try-job: arm-android
try-job: armhf-gnu
try-job: dist-i586-gnu-i586-i686-musl
try-job: dist-various-1
try-job: test-various