-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Running coverage on a py_test fails when --java_runtime_version is Java 8 #17568
Comments
What's the content of the log file for the failing test? I wonder if this is a simple matter of the |
Apologies, here is the log output:
|
Another data point: I can't reproduce this on a local build of the latest |
Looks like Python Starlarkification fixed this, but guessing that's not something cherry-pickable for 6.x:
|
Confirmed that adding the transition to |
The error message confirms the issue; Jacoco is running on the coverage generator itself and it shouldn't be. The Starlark version correctly specifies the exec configuration already. |
Fixes bazelbuild#17568 Closes bazelbuild#17587. PiperOrigin-RevId: 512563828 Change-Id: If95b26f5b86b2848dbaaf6129d1daa1538a22826
Description of the bug:
The tools in
@remote_coverage_tools
require a JRE 11 or higher. When running coverage onjava_test
, the JRE from--tool_java_runtime_version
will be used, which enables running the tests themselves with a different JRE. However, when running coverage onpy_test
, the JRE from--java_runtime_version
will be used, so Bazel will fail if--java_runtime_version
is a JRE 8.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Minimal workspace: testrepo.zip
Which operating system are you running Bazel on?
macOS 13.2.1
What is the output of
bazel info release
?6.1.0rc1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: