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

Fix 2/4 tests skipped by opt-dist #135961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Jan 24, 2025

The linker errors were because this one test, strangely, wants itself compiled with -Ctarget-features=+crt-static, and yet it looks like the runner image is simply missing static libraries for libc and libm.

Eyeballing the output of

rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir

suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with. Exactly why that was would require some advanced digging, but it looks clean now.

@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Jan 24, 2025
@saethlin
Copy link
Member Author

@bors try

@bors
Copy link
Contributor

bors commented Jan 24, 2025

⌛ Trying commit d190986 with merge f721111...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

I do not have a Windows dev environment to test on right now, but eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with.

try-job: dist-aarch64-linux
try-job: dist-x86_64-msvc
@rust-log-analyzer

This comment has been minimized.

@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
@saethlin saethlin force-pushed the skip-less-in-opt-dist branch from d190986 to bac346d Compare January 24, 2025 00:39
@saethlin
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

I do not have a Windows dev environment to test on right now, but eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with.

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

bors commented Jan 24, 2025

⌛ Trying commit bac346d with merge 8e7365e...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jan 24, 2025

💔 Test failed - checks-actions

@saethlin saethlin force-pushed the skip-less-in-opt-dist branch from bac346d to 95bd654 Compare January 24, 2025 00:51
@saethlin
Copy link
Member Author

@bors try

@bors
Copy link
Contributor

bors commented Jan 24, 2025

⌛ Trying commit 95bd654 with merge 7476631...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

I do not have a Windows dev environment to test on right now, but eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with.

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: 7476631 (7476631894c000a3b1976e9ff5103af19d13f433)

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

@bors try

@bors
Copy link
Contributor

bors commented Jan 24, 2025

⌛ Trying commit a25126c with merge ee5adab...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 24, 2025
Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

I do not have a Windows dev environment to test on right now, but eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with.

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: ee5adab (ee5adabca2de90564dfd70a4229410c94bc1ec62)

@rustbot
Copy link
Collaborator

rustbot commented Jan 27, 2025

Some changes occurred in src/tools/opt-dist

cc @Kobzol

@rustbot rustbot assigned clubby789 and unassigned Mark-Simulacrum and jieyouxu Jan 27, 2025
@jieyouxu
Copy link
Member

r? jieyouxu @bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 27, 2025

📌 Commit ebf16b6 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 27, 2025
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this fix to acquire proper deps seems completely reasonable

Zalathar added a commit to Zalathar/rust that referenced this pull request Jan 27, 2025
…jieyouxu

Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

Eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with. Exactly why that was would require some advanced digging, but it looks clean now.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2025
Rollup of 6 pull requests

Successful merges:

 - rust-lang#135876 (fix doc for std::sync::mpmc)
 - rust-lang#135961 (Fix 2/4 tests skipped by opt-dist)
 - rust-lang#136037 (Mark all NuttX targets as tier 3 target and support the standard library)
 - rust-lang#136098 (Downgrade `linker-warnings` to allow-by-default)
 - rust-lang#136110 (Miri subtree update)
 - rust-lang#136117 (Subtree update of `rust-analyzer`)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2025
Rollup of 6 pull requests

Successful merges:

 - rust-lang#135876 (fix doc for std::sync::mpmc)
 - rust-lang#135961 (Fix 2/4 tests skipped by opt-dist)
 - rust-lang#136037 (Mark all NuttX targets as tier 3 target and support the standard library)
 - rust-lang#136098 (Downgrade `linker-warnings` to allow-by-default)
 - rust-lang#136110 (Miri subtree update)
 - rust-lang#136117 (Subtree update of `rust-analyzer`)

r? `@ghost`
`@rustbot` modify labels: rollup
@jyn514
Copy link
Member

jyn514 commented Jan 27, 2025

failed in #136119 (comment)

@Zalathar
Copy link
Contributor

@bors r-

@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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 27, 2025
@saethlin saethlin force-pushed the skip-less-in-opt-dist branch from ebf16b6 to 3bdee94 Compare January 27, 2025 21:06
@saethlin
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 27, 2025
Fix 2/4 tests skipped by opt-dist

The linker errors were because this one test, strangely, wants itself compiled with `-Ctarget-features=+crt-static`, and yet it looks like the runner image is simply missing static libraries for libc and libm.

Eyeballing the output of
```
rustc +nightly --target=x86_64-pc-windows-msvc -O tests/codegen/vec-shrink-panik.rs --emit=llvm-ir
```
suggests that vec-shrink-panik should pass on Windows. And it's quite disturbing that such a test would have failed only on Windows to start with. Exactly why that was would require some advanced digging, but it looks clean now.
@bors
Copy link
Contributor

bors commented Jan 27, 2025

⌛ Trying commit 3bdee94 with merge bc4b5c6...

@bors
Copy link
Contributor

bors commented Jan 28, 2025

☀️ Try build successful - checks-actions
Build commit: bc4b5c6 (bc4b5c678e1d677273b3fed9f9f731faf457e455)

@saethlin saethlin force-pushed the skip-less-in-opt-dist branch from 3bdee94 to 1f4309c Compare January 28, 2025 00:26
@saethlin
Copy link
Member Author

I'm pretty sure this has now passed all the try-build jobs that run opt-dist.

@bors r=jieyouxu

@bors
Copy link
Contributor

bors commented Jan 28, 2025

📌 Commit 1f4309c has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 28, 2025
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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

10 participants