Skip to content

cargo tests seems to not run by default on ./x test --stage 2 #141686

Open
@jieyouxu

Description

@jieyouxu

It seems surprising that we don't yet run cargo's tests in CI for hosts by default (as part of ./x test) on stage 2

$ ./x test --dry-run --stage=2 | grep cargo
Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.02s
Documenting stage2 cargo (x86_64-unknown-linux-gnu)
Doc path: /home/joe/repos/rust/build/tmp-dry-run/x86_64-unknown-linux-> gnu/doc/cargo/index.html
Building tool cargo (stage1 -> stage2, x86_64-unknown-linux-gnu)
Build completed successfully in 0:00:00

🤔

Yeah, e.g.

# x86_64-msvc-ext is split into multiple jobs to run tests in parallel.
- name: x86_64-msvc-ext1
env:
SCRIPT: python x.py --stage 2 test src/tools/cargotest src/tools/cargo

That seems weird

Originally posted by @jieyouxu in #141656 (comment)

I haven't looked into this yet, opening an issue to track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions