-
-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Labels
C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
Description
I'm trying to combine cargo-llvm-cov
with cargo-careful
in a single "cargo test" run.
Via https://github.com/taiki-e/cargo-llvm-cov/blob/main/README.md#get-coverage-of-external-tests
$ cargo new --bin example && cd example/
$ source <(cargo +nightly llvm-cov show-env --export-prefix)
$ cargo +nightly llvm-cov clean --workspace
$ cargo +nightly careful setup
[..]
error: could not compile `core` (lib) due to 3688 previous errors; 117 warnings emitted
thread 'main' panicked at 'failed to build sysroot; run `cargo careful setup` to see what went wrong: sysroot build failed'
$ # the above fails, usually one would not run "careful setup" but the steps below
$ cargo +nightly careful test --all-targets --all-features --verbose
$ cargo +nightly llvm-cov report --codecov --output-path codecov.json
Without cargo-llvm-cov
in the mix the "cargo careful test" step does work.
$ cargo +nightly --version
cargo 1.74.0-nightly (414d9e3a6 2023-09-22)
$ cargo +nightly llvm-cov --version
cargo-llvm-cov 0.5.33
$ cargo install --list | grep 'cargo-careful v'
cargo-careful v0.4.0:
I do not know if that is not possible by design of those two tools? Both docs are a bit spare on what they actually do behind the covers.
Would I just have two separate CI jobs instead?
Metadata
Metadata
Assignees
Labels
C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)