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

StandaloneTestStrategy: add lcov_merger to tools of TestRunner spawns #24406

Conversation

malt3
Copy link
Contributor

@malt3 malt3 commented Nov 20, 2024

The default lcov_merger (@bazel_tools//tools/test:lcov_merger) is a java_binary that requires runfiles to work.
In StandaloneTestStrategy, it was added to the inputs of TestRunner spawns, but not to tools.
This prevents the runfiles from being available to the action, preventing coverage from being collected during remote execution.

Fixes #4033

The default lcov_merger (@bazel_tools//tools/test:lcov_merger) is a
java_binary that requires runfiles to work.
In StandaloneTestStrategy, it was added to the inputs of TestRunner
spawns, but not to tools.
This prevents the runfiles from being available to the action,
preventing coverage to be collected during remote execution.

Fixes bazelbuild#4033
@malt3 malt3 marked this pull request as ready for review November 20, 2024 09:42
@malt3 malt3 requested a review from a team as a code owner November 20, 2024 09:42
@malt3 malt3 requested review from aranguyen and removed request for a team November 20, 2024 09:42
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Nov 20, 2024
@fmeum
Copy link
Collaborator

fmeum commented Nov 20, 2024

@lberki

@malt3
Copy link
Contributor Author

malt3 commented Nov 27, 2024

I just retested this on Bazel 8.0.0rc2 and later and noticed that this fix is no longer needed.
I originally wrote the fix for Bazel 7.4.1 where this was needed.

@malt3 malt3 closed this Nov 27, 2024
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LcovMerger not properly declared as a tool by StandaloneTestStrategy
2 participants