Skip to content

bazel coverage: "Coverage runner: cannot locate file" #7529

Closed as not planned

Description

@ensonic

Description of the problem / feature request:

Generating a test coverage report fails with the error above. It looks like this is the code
https://github.com/bazelbuild/bazel/blob/master/tools/test/collect_coverage.sh#L68
and LCOV_MERGER is empty. Running bazel coverage --combined_report=lcov //... does not help, since it leads to #6450.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

git clone https://github.com/googlecloudrobotics/core.git
cd core
bazel coverage //...

What operating system are you running Bazel on?

linux (debian)

What's the output of bazel info release?

release 0.22.0

Have you found anything relevant by searching the web?

Nothing on Stackoverflow/Github issues.

Activity

  1. ensonic commented on Feb 25, 2019

    @ensonic
    ContributorAuthor

    Is something failing to pass the LcovMerger to the env? It looks like this was added here:
    werkt@b00c8e7

  2. iirina commented on Feb 25, 2019

    @iirina
    Contributor

    @ensonic what rule sets do you use? Only the rules embedded by Bazel and that allow coverage collection (Java, C++, shell) have an attribute defined named $lcov_merger. For custom rules the owners have to also define this attribute.

  3. ensonic commented on Feb 25, 2019

    @ensonic
    ContributorAuthor

    I just run it against the top of the project, so there is at least python and go. I understand that coverage report is not 100%, but it would be nice to find a better failure mode (eg not run the test rule if the attr is missing?).

  4. added
    team-Rules-Java
    untriaged
    on Mar 1, 2019
  5. added
    P2
    and removed
    untriaged
    on Mar 13, 2019
  6. added
    stale
    on Feb 16, 2023
  7. sgowroji commented on Feb 16, 2023

    @sgowroji
    Member

    Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2coveragestaleteam-Rules-Javatype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions