Git Product home page Git Product logo

Comments (4)

taiki-e avatar taiki-e commented on July 18, 2024
RUN cargo nextest archive --workspace --archive-file test.tar.zst

You have to use cargo llvm-cov nextest-archive, like:

cargo llvm-cov nextest-archive --archive-file a.tar.zst
cargo llvm-cov nextest --archive-file a.tar.zst --text --fail-under-lines 70

(We should perhaps expand the documentation of nextest to explain this or enhance our own documentation on nextest.)

from cargo-llvm-cov.

robertprp avatar robertprp commented on July 18, 2024

The issue with using cargo llvm-cov nextest-archive is that it recompiles everything again.

I have tried without success.

COPY --from=builder /app/target /app/target/llvm-cov-target/
COPY . .
RUN cargo llvm-cov nextest-archive --workspace --archive-file test.tar.zst

ENTRYPOINT ["cargo", "make", "docker-ci"]

Note that i mapped the build to /app/target/llvm-cov-target/ and /app/target/

We use a custom build command for a package and using nextest-archive does throw error
Captura de pantalla 2024-01-30 a las 10 47 47

from cargo-llvm-cov.

taiki-e avatar taiki-e commented on July 18, 2024

The issue with using cargo llvm-cov nextest-archive is that it recompiles everything again.

This is a fundamental limitation of Rust's current code coverage (regardless of which way you use it). There are several RFCs and proposals to improve this, but none have been approved yet.

We use a custom build command for a package and using nextest-archive does throw error

I don't have any information about the project you are building, so I don't know the details, but it is possible that the old build artifact is doing something or the fact that rustflags is being applied to the build script is causing some problems. (The former can be addressed by running cargo clean first, the latter by passing --target option.)

from cargo-llvm-cov.

robertprp avatar robertprp commented on July 18, 2024

Thanks for your responses, I will try to investigate a bit more about this topic & avoid recompiling

from cargo-llvm-cov.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.