rust-lang / rust-lang/rust

"./x.py test --verbose --no-fail-fast" causes tidy to fail

Open
#147,500 5 comments 0 reactions 1 assignee View on GitHub

@jieyouxu is already working on this.

Since Dec 30, 2025.

A-tidy C-bug E-needs-investigation T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

With node.js-22.20.0 (npm-10.9.3) installed, a test checking if /usr/bin/npm --verbose returns exit code 0 fails. This is because npm's behavior when not given a command will return exit code 1. As far as npm is concerned, it wasn't given a command, like help, even though the --verbose option was passed. However, passing help to the npm command will return exit code 0 as intended. So the command to run would be /usr/bin/npm --verbose help. This should make the test succeed.

The file seeming to cause it is src/bootstrap/src/core/build_steps/test.rs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.