Skip to content

test: probe stable cargo through rustup - #17666

Merged
Muscraft merged 1 commit into
rust-lang:masterfrom
weihanglo:macro
Oct 30, 2026
Merged

Muscraft merged 1 commit into
rust-lang:masterfrom
weihanglo:macro

Conversation

@weihanglo

Copy link
Copy Markdown
Member

What does this PR try to resolve?

macOS runner image now uses Homebrew's rustup proxies, which is under brew --prefix rustup rather than $CARGO_HOME.

The homebrew toolchain is available via $PATH but requires_rustup_stable assumes it under $CARGO_HOME

Let's just use rustup run stable cargo --version to find the stable cargo instead.

See also

 error: custom attribute panicked
    --> tests/testsuite/global_cache_tracker.rs:1966:1
     |
1966 | #[cargo_test(requires_rustup_stable)]
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2)

error: custom attribute panicked
    --> tests/testsuite/global_cache_tracker.rs:2051:1
     |
2051 | #[cargo_test(requires_rustup_stable)]
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2)

Notes to reviewers


🤖 LLM involvement: Found those runner-images and homebrew issues

macOS runner image now uses Homebrew's rustup proxies,
which is under `brew --prefix rustup` rather than `$CARGO_HOME`.

The homebrew toolchain is available via `$PATH`
but `requires_rustup_stable` assumes it under $`CARGO_HOME`

Let's just use `rustup run stable cargo --version`
to find the stable cargo instead.

See also

* actions/runner-images#14990
* Homebrew/homebrew-core#283934
* And I don't know why they feel so freely making this change ;)

```
 error: custom attribute panicked
    --> tests/testsuite/global_cache_tracker.rs:1966:1
     |
1966 | #[cargo_test(requires_rustup_stable)]
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2)

error: custom attribute panicked
    --> tests/testsuite/global_cache_tracker.rs:2051:1
     |
2051 | #[cargo_test(requires_rustup_stable)]
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2)
```
@rustbot rustbot added A-testing-cargo-itself Area: cargo's tests S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 30, 2026
@rustbot

rustbot commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

r? @epage

rustbot has assigned @epage.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Muscraft, @epage, @weihanglo
  • @Muscraft, @epage, @weihanglo expanded to Muscraft, epage, weihanglo
  • Random selection from Muscraft, epage

@weihanglo

Copy link
Copy Markdown
Member Author

r? Muscraft

@rustbot rustbot assigned Muscraft and unassigned epage Oct 30, 2026

@Muscraft Muscraft left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Muscraft
Muscraft enabled auto-merge October 30, 2026 02:25
@Muscraft
Muscraft added this pull request to the merge queue Oct 30, 2026
Merged via the queue into rust-lang:master with commit 30b8c9e Oct 30, 2026
30 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 30, 2026
@weihanglo
weihanglo deleted the macro branch October 30, 2026 03:17
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 4, 2026
Update cargo submodule

13 commits in 31d3246e0e8d3a80d4a90b54aa48ff180adb408b..3c747ea3ead23951c1b43a5edfcbdb449135ddeb
2026-10-27 13:54:39 +0000 to 2026-11-03 21:25:31 +0000
- Link to `cargo search` result's crates.io pages (rust-lang/cargo#17668)
- Clean `/out` dir before compilation  (rust-lang/cargo#17675)
- Allow `uncommon_codepoints` in confusable test (rust-lang/cargo#17676)
- test: Update https certificate failed messages (rust-lang/cargo#17679)
- chore(deps): update rust-lang/crates-io-auth-action action to v1.0.6 (rust-lang/cargo#17670)
- chore(deps): update actions/deploy-pages action to v5.0.1 (rust-lang/cargo#17669)
- Fix manifest schema generation: `TomlOptLevel` and `StringOrVec` (rust-lang/cargo#17660)
- remove deprecated tempdir (rust-lang/cargo#17663)
- chore(ci): remove Windows rustup PATH workaround (rust-lang/cargo#17667)
- test: probe stable cargo through rustup (rust-lang/cargo#17666)
- Update outdated registry function comments (rust-lang/cargo#17664)
- perf(windows): Delay-load system DLLs that most commands don't use (rust-lang/cargo#17623)
- Suppress `dead_code_pub_in_binary` for library test units (rust-lang/cargo#17608)
@rustbot rustbot added this to the 1.101.0 milestone Nov 4, 2026
weihanglo added a commit that referenced this pull request Nov 5, 2026
### What does this PR try to resolve?

This is a beta backport of #17692 and #17666

---

🤖 LLM involvement: Helped identify and update some failing ssh tests
RalfJung pushed a commit to JoJoDeveloping/miri that referenced this pull request Nov 8, 2026
Update cargo submodule

13 commits in 31d3246e0e8d3a80d4a90b54aa48ff180adb408b..3c747ea3ead23951c1b43a5edfcbdb449135ddeb
2026-10-27 13:54:39 +0000 to 2026-11-03 21:25:31 +0000
- Link to `cargo search` result's crates.io pages (rust-lang/cargo#17668)
- Clean `/out` dir before compilation  (rust-lang/cargo#17675)
- Allow `uncommon_codepoints` in confusable test (rust-lang/cargo#17676)
- test: Update https certificate failed messages (rust-lang/cargo#17679)
- chore(deps): update rust-lang/crates-io-auth-action action to v1.0.6 (rust-lang/cargo#17670)
- chore(deps): update actions/deploy-pages action to v5.0.1 (rust-lang/cargo#17669)
- Fix manifest schema generation: `TomlOptLevel` and `StringOrVec` (rust-lang/cargo#17660)
- remove deprecated tempdir (rust-lang/cargo#17663)
- chore(ci): remove Windows rustup PATH workaround (rust-lang/cargo#17667)
- test: probe stable cargo through rustup (rust-lang/cargo#17666)
- Update outdated registry function comments (rust-lang/cargo#17664)
- perf(windows): Delay-load system DLLs that most commands don't use (rust-lang/cargo#17623)
- Suppress `dead_code_pub_in_binary` for library test units (rust-lang/cargo#17608)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testing-cargo-itself Area: cargo's tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants