Skip to content

Some tests are incorrectly skipped for macOS CI #117721

Closed
@shepmaster

Description

@shepmaster

CI specifies these two jobs for x86_64-apple-darwin:

- name: x86_64-apple-1
env: &env-x86_64-apple-tests
SCRIPT: ./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc --skip tests/run-make-fulldeps
RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
MACOSX_DEPLOYMENT_TARGET: 10.12
MACOSX_STD_DEPLOYMENT_TARGET: 10.12
NO_LLVM_ASSERTIONS: 1
NO_DEBUG_ASSERTIONS: 1
NO_OVERFLOW_CHECKS: 1
<<: *job-macos-xl
- name: x86_64-apple-2
env:
SCRIPT: ./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps
<<: *env-x86_64-apple-tests
<<: *job-macos-xl

Note these two lines (with padding I've added):

./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc --skip tests/run-make-fulldeps 
./x.py --stage 2 test        tests/ui        tests/rustdoc        tests/run-make-fulldeps 

It appears that the intent was for the first job to run a subset of the tests and the second job to run the complementary subset. However, it seems that --skip performs a substring match while the list of directories is an exact match. This means that the tests in rustdoc-js, rustdoc-json, and rustdoc-ui are never run on macOS CI — they are excluded by --skip and never explicitly added back.

Surprisingly, it seems that tests in rustdoc-js-std are run. That seems like a secondary bug as it isn't behaving the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CIArea: Our Github Actions CIO-macosOperating system: macOST-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