Comments (6)
The behavior changes included in this release only change a case that previously resulted in an error (#360), so I guess the problem is most likely a mismatch between the LLVM version of LLVM tools and the LLVM version of rustc.
IIUC, CI using rustc beta (LLVM 18.1.2) and Homebrew LLVM 17.0.6. (When 0.6.8 was tested they were probably both LLVM 17.)
Considering that it appears that CI uses rustup to install rustc, a reasonable solution to this would be to remove llvm-tools-related environment variables and use llvm-tools-preview, which is distributed via rustup. Alternatively, using stable rustc instead of beta for testing would also work. The latter does not address the underlying problem, though.
By the way, the title of this issue is "build failure", but it appears that it is the test that is actually failing.
from cargo-llvm-cov.
(Unrelated to this issue, but it appears that homebrew-core uses the crate generated by cargo new --bin
to test. Since the crate generated that way does not contain any test, I think it would be better to use the crate generated by cargo new --lib
.)
from cargo-llvm-cov.
IIUC, CI using rustc beta (LLVM 18.1.2) and Homebrew LLVM 17.0.6. (When 0.6.8 was tested they were probably both LLVM 17.)
I was thinking the same. Thanks for confirming it.
By the way, the title of this issue is "build failure", but it appears that it is the test that is actually failing.
oh, that is mainly it is because I think it is build related as it is a version bump (which caused the test failure)
from cargo-llvm-cov.
(Unrelated to this issue, but it appears that homebrew-core uses the crate generated by
cargo new --bin
to test. Since the crate generated that way does not contain any test, I think it would be better to use the crate generated bycargo new --lib
.)
that makes sense to me, do you want to take on a PR to do the update :)
from cargo-llvm-cov.
Filed Homebrew/homebrew-core#168319 to fix.
from cargo-llvm-cov.
The problem on the Homebrew side has been fixed in Homebrew/homebrew-core#168319 & cargo-llvm-cov documentation has also been updated and a note on compatibility when setting LLVM_* env vars has been duplicated in an easy-to-find place (fa229e3).
from cargo-llvm-cov.
Related Issues (20)
- Exclude tag does not work properly on packages with both main.rs and lib.rs HOT 2
- Demangling HOT 4
- Failed to load coverage: *.rmeta The file was not recognized as a valid object file HOT 3
- Code compiled with different #[cfg] flags shows up as different instantiations HOT 6
- [HELP] error: failed to merge profile data: process didn't exit successfully HOT 4
- Allow running individual tests with coverage HOT 2
- `cargo llvm-cov nexttest-archive` does not work with the `--cargo-profile` flag of nextest HOT 1
- Support for fuzzing HOT 1
- List the tests that exercise a function HOT 5
- Line coverage mismatch on trybuild-based proc-macros tests HOT 2
- Coverage for a single package inside a workspace HOT 1
- Runtime and instrumentation version mismatch HOT 6
- Coverage of #[no_mangle] functions in cdylib is missed HOT 5
- Add issue template (reproduction is very important!)
- Add support for specifying arbitrary `--object`s HOT 1
- No coverage for log macros HOT 1
- Rust 1.80 upcoming warning: unexpected `cfg` condition name: `coverage_nightly` HOT 2
- Performance level expecations HOT 1
- `cargo build` support in `cargo-llvm-cov` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-llvm-cov.