Skip to content
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

ci: Remove the power to skip tests from opt-dist #135960

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

workingjubilee
Copy link
Member

@workingjubilee workingjubilee commented Jan 24, 2025

This will probably take a bit of testing against the dist pipelines to make it pass.

r? @ghost

try-job: dist-aarch64-linux
try-job: dist-x86_64-linux
try-job: dist-x86_64-msvc

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 24, 2025
@workingjubilee workingjubilee force-pushed the remove-opt-dists-test-skipping-code branch from 7f6bb7d to 14e50f4 Compare January 24, 2025 00:08
@workingjubilee
Copy link
Member Author

@bors try

@bors
Copy link
Contributor

bors commented Jan 24, 2025

⌛ Trying commit 14e50f4 with merge 74575a8...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
…-skipping-code, r=<try>

ci: Remove the power to skip tests from opt-dist

This will probably take a bit of testing against the dist pipelines to make it pass.

r? `@ghost`

try-job: dist-aarch64-linux
try-job: dist-x86_64-msvc
@bors
Copy link
Contributor

bors commented Jan 24, 2025

☀️ Try build successful - checks-actions
Build commit: 74575a8 (74575a8f4e2633bb660eaf7c9deb3e6c3cb5cb21)

@workingjubilee
Copy link
Member Author

??? huh???

@workingjubilee
Copy link
Member Author

uh,

cc @mrkajetanp
r? Kobzol

@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2025

Could not assign reviewer from: Kobzol.
User(s) Kobzol are either the PR author, already assigned, or on vacation. Please use r? to specify someone else to assign.

@workingjubilee workingjubilee marked this pull request as ready for review January 24, 2025 04:03
@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2025

Some changes occurred in src/tools/opt-dist

cc @Kobzol

@workingjubilee
Copy link
Member Author

r? infra

@rustbot rustbot added the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Jan 24, 2025
@mrkajetanp
Copy link
Contributor

??? huh???

Hm I don't think the try builds run the test suite? I think they just build and there's a separate bors thing for running tests which happens on rollups.

Regardless I think this is a good idea tbh, if a test really needs to be skipped on a platform it might as well be skipped in the test file directly. That'll avoid the discrepancy between normal tests and opt-dist tests.

@lqd
Copy link
Member

lqd commented Jan 24, 2025

There’s an env var in jobs.yml

DIST_TRY_BUILD: 1
that you need to comment out for tests to be run in these dist jobs try builds. dist jobs don’t run tests apart from opt-dist tests, and these aren’t run in try builds on dist jobs, according to this documentation.

@jieyouxu jieyouxu self-assigned this Jan 24, 2025
@jieyouxu
Copy link
Member

Yes, you need to comment out that env var in order for opt-dist tests to run

@workingjubilee
Copy link
Member Author

Oh cool.

@rustbot rustbot added the A-testsuite Area: The testsuite used to check the correctness of rustc label Jan 24, 2025
@workingjubilee
Copy link
Member Author

@bors try

@bors
Copy link
Contributor

bors commented Jan 24, 2025

⌛ Trying commit ac37d7c with merge ba93dab...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
…-skipping-code, r=<try>

ci: Remove the power to skip tests from opt-dist

This will probably take a bit of testing against the dist pipelines to make it pass.

r? `@ghost`

try-job: dist-aarch64-linux
try-job: dist-x86_64-msvc
@Kobzol
Copy link
Contributor

Kobzol commented Jan 24, 2025

Are you trying to fix all the failing tests on dist runners? :D Note that opt-dist doesn't run the full test suite, e.g. it skips all run-make tests.

@jieyouxu
Copy link
Member

jieyouxu commented Jan 24, 2025

Are you trying to fix all the failing tests on dist runners? :D Note that opt-dist doesn't run the full test suite, e.g. it skips all run-make tests.

No, just the specific ones skipped by opt-dist because they're failing

@bors
Copy link
Contributor

bors commented Jan 24, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 24, 2025
@rust-log-analyzer
Copy link
Collaborator

The job dist-aarch64-linux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
file:.git/config remote.origin.url=https://github.com/rust-lang-ci/rust
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config gc.auto=0
file:.git/config http.https://github.com/.extraheader=AUTHORIZATION: basic ***
file:.git/config branch.try.remote=origin
file:.git/config branch.try.merge=refs/heads/try
file:.git/config remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/*
file:.git/config submodule.library/backtrace.active=true
file:.git/config submodule.library/backtrace.url=https://github.com/rust-lang/backtrace-rs.git
file:.git/config submodule.library/stdarch.active=true
---
[2025-01-24T06:41:39Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T06:41:39Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:41:39Z DEBUG collector::compile::execute] cd "/tmp/.tmphbjPCf" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmphbjPCf#bitmaps@3.1.0" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2025-01-24T06:41:40Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:41:40Z DEBUG collector::compile::execute] cd "/tmp/.tmphbjPCf" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmphbjPCf#bitmaps@3.1.0" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmphbjPCf/incremental-state"
[2025-01-24T06:41:41Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrUnchanged), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:41:41Z DEBUG collector::compile::execute] cd "/tmp/.tmphbjPCf" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmphbjPCf#bitmaps@3.1.0" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmphbjPCf/incremental-state"
[2025-01-24T06:41:42Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmphbjPCf"
[2025-01-24T06:41:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:41:42Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:41:42Z DEBUG collector::compile::execute] cd "/tmp/.tmphbjPCf" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmphbjPCf#bitmaps@3.1.0" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmphbjPCf/incremental-state"
Executing benchmark cargo-0.60.0 (2/8)
Preparing cargo-0.60.0
[2025-01-24T06:41:42Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None, backend=Llvm, phase=dependencies
[2025-01-24T06:41:42Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Check, scenario=None, patch=None, backend=Llvm, phase=dependencies
---
[2025-01-24T06:47:41Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T06:47:41Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:47:41Z DEBUG collector::compile::execute] cd "/tmp/.tmpykAdpL" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpykAdpL#diesel@1.4.8" "--" "--wrap-rustc-with" "Eprintln"
[2025-01-24T06:47:48Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrFull), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:47:48Z DEBUG collector::compile::execute] cd "/tmp/.tmpykAdpL" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpykAdpL#diesel@1.4.8" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpykAdpL/incremental-state"
[2025-01-24T06:47:55Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrUnchanged), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:47:55Z DEBUG collector::compile::execute] cd "/tmp/.tmpykAdpL" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpykAdpL#diesel@1.4.8" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpykAdpL/incremental-state"
[2025-01-24T06:47:57Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmpykAdpL"
[2025-01-24T06:47:57Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:47:57Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Debug, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:47:57Z DEBUG collector::compile::execute] cd "/tmp/.tmpykAdpL" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpykAdpL#diesel@1.4.8" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpykAdpL/incremental-state"
[2025-01-24T06:47:59Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T06:47:59Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:47:59Z DEBUG collector::compile::execute] cd "/tmp/.tmpS6dUzN" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpS6dUzN#diesel@1.4.8" "--release" "--" "--wrap-rustc-with" "Eprintln"
[2025-01-24T06:48:06Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:48:06Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrFull), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:48:06Z DEBUG collector::compile::execute] cd "/tmp/.tmpS6dUzN" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpS6dUzN#diesel@1.4.8" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpS6dUzN/incremental-state"
[2025-01-24T06:48:14Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrUnchanged), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T06:48:14Z DEBUG collector::compile::execute] cd "/tmp/.tmpS6dUzN" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpS6dUzN#diesel@1.4.8" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpS6dUzN/incremental-state"
[2025-01-24T06:48:16Z DEBUG collector::compile::benchmark::patch] applying println to "/tmp/.tmpS6dUzN"
[2025-01-24T06:48:16Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:48:16Z INFO  collector::compile::execute] run_rustc with incremental=true, profile=Opt, scenario=Some(IncrPatched), patch=Some(Patch { index: 0, name: PatchName("println"), path: "0-println.patch" }), backend=Llvm, phase=benchmark
[2025-01-24T06:48:16Z DEBUG collector::compile::execute] cd "/tmp/.tmpS6dUzN" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpS6dUzN#diesel@1.4.8" "--release" "--" "--wrap-rustc-with" "Eprintln" "-C" "incremental=/tmp/.tmpS6dUzN/incremental-state"
Executing benchmark externs (5/8)
Preparing externs
[2025-01-24T06:48:18Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None, backend=Llvm, phase=dependencies
[2025-01-24T06:48:18Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None, backend=Llvm, phase=dependencies
---
Executing benchmark cargo-0.60.0 (1/8)
Preparing cargo-0.60.0
[2025-01-24T07:13:21Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None, backend=Llvm, phase=dependencies
[2025-01-24T07:13:21Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None, backend=Llvm, phase=dependencies
[2025-01-24T07:13:21Z DEBUG collector::compile::execute] cd "/tmp/.tmpa9Wxpj" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=9,10 --jobserver-auth=9,10" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpa9Wxpj#cargo@0.60.0" "--release" "--lib" "--" "--skip-this-rustc"
[2025-01-24T07:13:21Z DEBUG collector::compile::execute] cd "/tmp/.tmpGrMVEF" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=9,10 --jobserver-auth=9,10" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpGrMVEF#cargo@0.60.0" "--lib" "--" "--skip-this-rustc"
[2025-01-24T07:14:55Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T07:14:56Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T07:14:56Z DEBUG collector::compile::execute] cd "/tmp/.tmp4rbZFc" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp4rbZFc#cargo@0.60.0" "--lib" "--" "--wrap-rustc-with" "Eprintln"
Running cargo-0.60.0: Opt + [Full] + Llvm
---
[2025-01-24T07:16:38Z DEBUG collector::compile::execute] cd "/tmp/.tmp2PMaPW" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmp2PMaPW#clap@3.1.6" "--" "--wrap-rustc-with" "Eprintln"
Running clap-3.1.6: Opt + [Full] + Llvm
[2025-01-24T07:16:40Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T07:16:40Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T07:16:40Z DEBUG collector::compile::execute] cd "/tmp/.tmpkwyqUr" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpkwyqUr#clap@3.1.6" "--release" "--" "--wrap-rustc-with" "Eprintln"
Executing benchmark hyper-0.14.18 (3/8)
Preparing hyper-0.14.18
[2025-01-24T07:16:47Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=None, patch=None, backend=Llvm, phase=dependencies
[2025-01-24T07:16:47Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=None, patch=None, backend=Llvm, phase=dependencies
---
[2025-01-24T07:17:24Z DEBUG collector::compile::execute] cd "/tmp/.tmpQKcFUz" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" CARGO_MAKEFLAGS="-j --jobserver-fds=9,10 --jobserver-auth=9,10" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpQKcFUz#regex@1.5.5" "--" "--skip-this-rustc"
Running regex-1.5.5: Debug + [Full] + Llvm
[2025-01-24T07:17:30Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T07:17:30Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Debug, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T07:17:30Z DEBUG collector::compile::execute] cd "/tmp/.tmpsdKwqv" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpsdKwqv#regex@1.5.5" "--" "--wrap-rustc-with" "Eprintln"
[2025-01-24T07:17:32Z DEBUG collector::compile::benchmark] Benchmark iteration 1/1
[2025-01-24T07:17:32Z INFO  collector::compile::execute] run_rustc with incremental=false, profile=Opt, scenario=Some(Full), patch=None, backend=Llvm, phase=benchmark
[2025-01-24T07:17:32Z DEBUG collector::compile::execute] cd "/tmp/.tmpUpMIuw" && CARGO="/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" CARGO_INCREMENTAL="0" EXPECT_ONLY_WRAPPED_RUSTC="1" RUSTC="/tmp/tmp-multistage/opt-artifacts/rustc-perf/target/debug/rustc-fake" RUSTC_BOOTSTRAP="1" RUSTC_REAL="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "rustc" "--manifest-path" "Cargo.toml" "-p" "path+file:///tmp/.tmpUpMIuw#regex@1.5.5" "--release" "--" "--wrap-rustc-with" "Eprintln"
Finished benchmark regex-1.5.5 (4/8)
---
failures:

---- [ui] tests/ui/consts/large_const_alloc.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 9 (SIGKILL)
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/bin/rustc" "/checkout/tests/ui/consts/large_const_alloc.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/consts/large_const_alloc" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"
stderr: none


---- [ui] tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs stdout ----
---- [ui] tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs stdout ----

error: Error: expected failure status (Some(1)) but received status None.
status: signal: 9 (SIGKILL)
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/bin/rustc" "/checkout/tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/consts/promoted_running_out_of_memory_issue-130687" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"
stderr: none


---- [ui] tests/ui/process/nofile-limit.rs stdout ----
---- [ui] tests/ui/process/nofile-limit.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/bin/rustc" "/checkout/tests/ui/process/nofile-limit.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-o" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Ctarget-feature=+crt-static" "-Crpath=no" "-Crelocation-model=static"
--- stderr -------------------------------
error: linking with `cc` failed: exit status: 1
   |
   |
   = note: LC_ALL="C" PATH="/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/lib/rustlib/aarch64-unknown-linux-gnu/bin:/rustroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "/tmp/rustcmrLqJU/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/lib/rustlib/aarch64-unknown-linux-gnu/lib/{libstd-bef35d9ca5c756d7.rlib,libpanic_unwind-52f0b5d8a438be73.rlib,libobject-f206eb3d43a90172.rlib,libmemchr-48d0e305b4924b5b.rlib,libaddr2line-53154f0dea1fa2b5.rlib,libgimli-f805432e35d30a66.rlib,librustc_demangle-134c2970db94a535.rlib,libstd_detect-631f200363e935d9.rlib,libhashbrown-8c7b1f1293e055ff.rlib,librustc_std_workspace_alloc-280e9deb253287ac.rlib,libminiz_oxide-740a5ed5ad8e2c07.rlib,libadler2-51de9e92d44a5785.rlib,libunwind-80898f30568c54d4.rlib,libcfg_if-81575c0c56028631.rlib,liblibc-3edbaab77255110b.rlib}" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-lgcc_eh" "-lgcc" "-lc" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/lib/rustlib/aarch64-unknown-linux-gnu/lib/{liballoc-3f871271d62b29d5.rlib,librustc_std_workspace_core-fc217cc4a2b61421.rlib,libcore-be4345cf633f1609.rlib,libcompiler_builtins-675cf4479bf2e753.rlib}" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/unpacked-dist/rustc-nightly-aarch64-unknown-linux-gnu/rustc/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
   = note: /usr/bin/ld: cannot find -lutil
           /usr/bin/ld: cannot find -lrt
           /usr/bin/ld: cannot find -lpthread
           /usr/bin/ld: cannot find -lm
---
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2: std::backtrace::Backtrace::create
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/backtrace.rs:331:13
   3: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.95/src/backtrace.rs:27:14
   4: <opt_dist::exec::CmdBuilder>::run
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/exec.rs:80:17
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/tests.rs:110:5
   6: opt_dist::execute_pipeline::{closure#5}
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/main.rs:340:40
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/main.rs:340:40
   7: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#5}, ()>
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/timer.rs:111:22
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/main.rs:340:9
   9: opt_dist::main
             at /rustc/ba93dab64292befec6c0ef98fbd30321c33c0b60/src/tools/opt-dist/src/main.rs:391:18
  10: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
  10: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/ops/function.rs:250:5
  11: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/sys/backtrace.rs:152:18
  12: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/rt.rs:195:18
  13: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/ops/function.rs:284:13
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/panicking.rs:584:40
  15: std::panicking::try
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/panicking.rs:547:19
  16: std::panic::catch_unwind

mrkajetanp added a commit to mrkajetanp/rust that referenced this pull request Jan 24, 2025
Skip const OOM tests on AArch64 Linux through explicit annotations
instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.
@workingjubilee
Copy link
Member Author

tests/ui/consts/large_const_alloc.rs
tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs
tests/ui/process/nofile-limit.rs

mrkajetanp added a commit to mrkajetanp/rust that referenced this pull request Jan 24, 2025
Skip const OOM tests on AArch64 Linux through explicit annotations
instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.
@workingjubilee
Copy link
Member Author

= note: /usr/bin/ld: cannot find -lutil
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm

@mrkajetanp I think the Docker doesn't include, er, basic libraries?

@mrkajetanp
Copy link
Contributor

I think the Docker doesn't include, er, basic libraries?

It's pretty much the same Docker file as dist-x86_64-linux, only adapted for aarch64.
I'd put try-job: dist-x86_64-linux for this PR too. They're both built on now ancient centos images to maintain minimum glibc compatibility, so all the libraries used are built by hand and put under non-standard paths then linked against. The libraries will be somewhere probably under /rustroot/lib.
I'd be weary of using /usr/bin/ld on there because that's probably an ancient version too. The actual builds use built from source clang as the linker.

mrkajetanp added a commit to mrkajetanp/rust that referenced this pull request Jan 24, 2025
Skip const OOM tests on AArch64 Linux through explicit annotations
instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
…alloc-tests, r=<try>

tests: Skip const OOM tests on aarch64-unknown-linux-gnu

Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.

 r? `@Kobzol`
cc `@workingjubilee`

try-job: dist-aarch64-linux
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 28, 2025
…t-alloc-tests, r=Kobzol

tests: Skip const OOM tests on aarch64-unknown-linux-gnu

Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.

 r? `@Kobzol`
cc `@workingjubilee`

try-job: dist-aarch64-linux
@bors
Copy link
Contributor

bors commented Jan 28, 2025

☔ The latest upstream changes (presumably #136185) made this pull request unmergeable. Please resolve the merge conflicts.

mrkajetanp added a commit to mrkajetanp/rust that referenced this pull request Jan 29, 2025
Skip const OOM tests on AArch64 Linux through explicit annotations
instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 30, 2025
…t-alloc-tests, r=Kobzol

tests: Skip const OOM tests on aarch64-unknown-linux-gnu

Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.

 r? `@Kobzol`
cc `@workingjubilee`

try-job: dist-aarch64-linux
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 31, 2025
Rollup merge of rust-lang#136004 - mrkajetanp:aarch64-skip-large-const-alloc-tests, r=Kobzol

tests: Skip const OOM tests on aarch64-unknown-linux-gnu

Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist.
Intended to avoid confusion in cases like rust-lang#135952.

Prerequisite for rust-lang#135960.

 r? `@Kobzol`
cc `@workingjubilee`

try-job: dist-aarch64-linux
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jan 31, 2025
…ests, r=Kobzol

tests: Skip const OOM tests on aarch64-unknown-linux-gnu

Skip const OOM tests on AArch64 Linux through explicit annotations instead of inside opt-dist.
Intended to avoid confusion in cases like #135952.

Prerequisite for rust-lang/rust#135960.

 r? `@Kobzol`
cc `@workingjubilee`

try-job: dist-aarch64-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants