Skip to content

[Bug]: Rust binaries don't build under --collect_code_coverage #497

Open
@alexeagle

Description

@alexeagle

This only affects users of pre-releases under bazel coverage.

What happened?

Context: https://github.com/aspect-build/rules_py/pull/492/files#r1925513752

We have issues with our sysroot not containing files needed to build our rust binaries with llvm and code coverage enabled. If a user is using a rules_py prerelease (and for our own development on a prerelease) they'll have to build the rust binaries under the same config as their bazel coverage command - but no one intended to instrument our rust code for coverage.

We should probably have a transition to explicitly turn off coverage instrumentation when we depend on our rust tools.

Version

1.1.0

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedAspect isn't prioritizing this, but the community couldtech debtImplied cost of additional rework caused by choosing an quick/easy solution earlier

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions