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

[nextest-runner] detect host platform via rustc -vV #2130

Merged
merged 3 commits into from
Feb 9, 2025

Conversation

sunshowers
Copy link
Member

In some cases, like running musl binaries against GNU-based rustc, we should return -gnu, not -musl.

Fixes #2124.

This pulls in support for parsing `rustc -vV` output.
0.4.24 was yanked.
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 85.00000% with 39 lines in your changes missing coverage. Please review.

Project coverage is 80.12%. Comparing base (8a5fc67) to head (4bc7614).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
nextest-runner/src/platform.rs 81.98% 20 Missing ⚠️
cargo-nextest/src/dispatch.rs 78.94% 8 Missing ⚠️
integration-tests/test-helpers/rustc-shim.rs 86.00% 7 Missing ⚠️
nextest-runner/src/update.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2130      +/-   ##
==========================================
+ Coverage   80.08%   80.12%   +0.04%     
==========================================
  Files         102      103       +1     
  Lines       24139    24343     +204     
==========================================
+ Hits        19331    19505     +174     
- Misses       4808     4838      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

trunk-io bot commented Feb 9, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

In some cases, such as using a musl binary on a GNU-based Linux, we should
return `x86_64-unknown-linux-gnu`, not `-musl`.

Continue to fall back to the build target, and produce an error if both methods
fail.
@sunshowers sunshowers merged commit 02424f4 into main Feb 9, 2025
18 checks passed
@sunshowers sunshowers deleted the host-platform-vv branch February 9, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: default deduced target triple is wrong
1 participant