You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LcovMerger not properly declared as a tool by StandaloneTestStrategy #4033
P3We're not considering working on this, but happy to review a PR. (No assignee)coveragenot staleIssues or PRs that are inactive but not considered staleteam-Rules-ServerIssues for serverside rules included with Bazeltype: bug
If coverage is enabled, TestActionBuilder sticks the LcovMerger tool's FilesToRun into the test action's inputs. This suffices to build the LcovMerger executable and runfiles tree before running the test. However, since StandaloneTestStrategy does not include LcovMerger as a tool in the underlying test-running spawn, the sandbox fails to mount LcovMerger's runfiles tree into the sandbox execroot. This "works" now because the wrapper script for LcovMerger follows symlinks back into the real execroot. Given that such behavior isn't correct, a future stricter sandbox implementation could break coverage.
We just came into this issue trying to implement bazel coverage in rules_nodejs. bazel-contrib/rules_nodejs#1135
It dosen't look like this is goign to be fixed anytime soon.
I think we could work around it by moving the logic that was meant to be in the lcov_merger into the test runner itself.
Would this be the preferred work around?
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen (or ping me to reopen) if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.
P3We're not considering working on this, but happy to review a PR. (No assignee)coveragenot staleIssues or PRs that are inactive but not considered staleteam-Rules-ServerIssues for serverside rules included with Bazeltype: bug
Activity
damienmg commentedon Nov 8, 2017
Routing through @lberki to triage.
ulfjack commentedon May 23, 2018
Depending on where and how fast we're going with coverage, we may not need to fix this.
Treat runfiles middlemen as aggregating middlemen.
Toxicable commentedon Feb 3, 2020
We just came into this issue trying to implement
bazel coveragein rules_nodejs. bazel-contrib/rules_nodejs#1135It dosen't look like this is goign to be fixed anytime soon.
I think we could work around it by moving the logic that was meant to be in the lcov_merger into the test runner itself.
Would this be the preferred work around?
Treat runfiles middlemen as aggregating middlemen.
sgowroji commentedon Feb 17, 2023
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen (or ping me to reopen) if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.
fmeum commentedon Feb 17, 2023
@sgowroji still relevant
@cushon Making the lcov merger a native image would be a decent workaround for this problem and also help with remote execution.
StandaloneTestStrategy: add lcov_merger to tools of TestRunner spawns
StandaloneTestStrategy: add lcov_merger to tools of TestRunner spawns
malt3 commentedon Nov 29, 2024
I think this is fixed in Bazel 8 (tested on 8.0.0rc2). Can anyone else double check?
fix: do not require _lcov_merger under coverage
fix: do not require `_lcov_merger` under coverage (#2273)