Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel 7.1.1 and intermittent class not found #25

Open
tempacc21 opened this issue Apr 9, 2024 · 1 comment
Open

Bazel 7.1.1 and intermittent class not found #25

tempacc21 opened this issue Apr 9, 2024 · 1 comment

Comments

@tempacc21
Copy link

tempacc21 commented Apr 9, 2024

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?

@Zetten
Copy link
Owner

Zetten commented Apr 9, 2024

Since upgrading to 7.x I've found the same, using coverage --coverage_report_generator=@bazel_sonarqube//:SonarQubeCoverageGenerator is more stable. I'm not sure exactly why, but I'll update the docs at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants