Skip to content

Bazel 7.1.1 and intermittent class not found  #25

@tempacc21

Description

@tempacc21

Hi,

We experienced random errors when using

$BAZEL_BIN coverage --build_tests_only --combined_report=lcov --coverage_report_generator=@bazel_sonarqube//:sonarqube_coverage_generator --strategy=CoverageReport=local,remote

(15:09:42) ERROR: : Coverage report generation failed: (Exit 1): coverage.launcher failed: error executing CoverageReport command
(cd /home/runner/.cache/bazel/_bazel_runner/bccdf71c163d013389bc1939108453cd/execroot/_main &&
exec env -
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/bazel_sonarqube/coverage.launcher '--reports_file=bazel-out/_coverage/lcov_files.tmp' '--output_file=bazel-out/_coverage/_coverage_report.dat')

Configuration: system
Error: Could not find or load main class com.google.devtools.coverageoutputgenerator.SonarQubeCoverageGenerator
Caused by: java.lang.ClassNotFoundException: com.google.devtools.coverageoutputgenerator.SonarQubeCoverageGenerator

We changed to use :SonarQubeCoverageGenerator instead and that seems a lot more stable. Any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions