Skip to content

sporadic macOS CI test failures #11334

@ehuss

Description

@ehuss

About 3 days ago it looks like rust-lang/cargo has been migrated to the macos-12 CI image. Coincidentally, there have been some unexpected test failures on macOS. This issue is for tracking any future failures and investigating the cause, in case they are related.

https://github.com/rust-lang/cargo/actions/runs/3382989341

---- cargo_add::path_inferred_name::path_inferred_name stdout ----
thread 'cargo_add::path_inferred_name::path_inferred_name' panicked at 'Expected success, was interrupted
', tests/testsuite/cargo_add/path_inferred_name/mod.rs:20:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

https://github.com/rust-lang/cargo/actions/runs/3387966256

---- out_dir::replaces_artifacts stdout ----
running `/Users/runner/work/cargo/cargo/target/debug/cargo build -Z unstable-options --out-dir out`
running `/Users/runner/work/cargo/cargo/target/tmp/cit/t1625/foo/out/foo`
running `/Users/runner/work/cargo/cargo/target/debug/cargo build -Z unstable-options --out-dir out`
running `/Users/runner/work/cargo/cargo/target/tmp/cit/t1625/foo/out/foo`
thread 'out_dir::replaces_artifacts' panicked at '
test failed running `/Users/runner/work/cargo/cargo/target/tmp/cit/t1625/foo/out/foo`
error: stdout did not match:
error: test failed, to rerun pass `--test testsuite`
1        -bar
    1    +foo

https://github.com/rust-lang/cargo/actions/runs/3703048561

EDIT: collision_doc_profile_split has been fixed via #11489

---- collisions::collision_doc_profile_split stdout ----
running `/Users/runner/work/cargo/cargo/target/debug/cargo build -v`
thread 'collisions::collision_doc_profile_split' panicked at '
test failed running `/Users/runner/work/cargo/cargo/target/debug/cargo build -v`
error: stderr did not match:
1   1         Updating [..]
2   2      Downloading crates ...
3   3       Downloaded common v1.0.0 [..]
4   4        Compiling common v1.0.0
5   5          Running `rustc --crate-name common [..]
6        -     Running `rustc --crate-name common [..]
7   6        Compiling pm v0.1.0 [..]
8   7          Running `rustc --crate-name pm [..]
    8    +     Running `rustc --crate-name common /Users/runner/work/cargo/cargo/target/tmp/cit/t768/home/.cargo/registry/src/-64f5ff1469e28552/common-1.0.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C debug-assertions=on -C metadata=863125f229193b90 -C extra-filename=-863125f229193b90 --out-dir /Users/runner/work/cargo/cargo/target/tmp/cit/t768/foo/target/debug/deps -L dependency=/Users/runner/work/cargo/cargo/target/tmp/cit/t768/foo/target/debug/deps --cap-lints allow`
9   9        Compiling foo v0.1.0 [..]
10  10         Running `rustc --crate-name foo [..]
11  11        Finished [..]

https://github.com/rust-lang/cargo/actions/runs/3917884106

---- build_script::rerun_if_directory stdout ----
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check`
error: test failed, to rerun pass `--test testsuite`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check`
running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
thread 'build_script::rerun_if_directory' panicked at '
test failed running `/Users/runner/work/cargo/cargo/target/debug/cargo check -v`
error: stderr did not match:
1        -       Dirty foo v0.1.0 ([..]): the file `somedir` has changed ([..])
2        -   Compiling foo [..]
3        -     Running `[..]build-script-build[..]`
4        -     Running `rustc --crate-name foo [..]
    1    +       Fresh foo v0.1.0 (/Users/runner/work/cargo/cargo/target/tmp/cit/t452/foo)
5   2         Finished [..]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testing-cargo-itselfArea: cargo's testsO-macosOS: macOSS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions