-
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
remote_coverage_tools/Main cannot locate runfiles directory when building with --nobuild_runfile_links
#20577
Comments
Might relate to #4685 |
@sgowroji this bug is reproduced without remote execution. Is that tag correct? |
Does the bug go away if you use This is admittedly very confusing, but Alternatively, you might be able to hack around it by editing the Java binary wrapper script to say |
(Note: assigning to the core team because they're the best owner for runfiles-related issues. I'm not actually convinced there's a bug, this might just be an unfortunate consequence of how things work.) |
On a second look, I'm not sure this statement is true. But I'm still interested in the result of running with |
This is fairly different behavior but I can add it to my PR and show you the logs
I don't believe I'm doing such a thing. As far as I can tell everything that's running with the exception of the statically linked coverage binary from |
It seems like
but it seems like the way coverage is setup should be to take this java tool as a binary so runfiles are kept. |
Sounds like "It's not a bug, it's a feature" 😄. Arguable though lol |
Ok, that validates the theory that the problem is that the
Yeah, I'm now convinced that there's an actual bug here. Judging from the logs, it looks like the following is happening:
So I expect there's some missing logic in the |
--nobuild_runfile_links
This would be a great one to get fixed since |
I also see this when I attempt to generate coverage reports using llvm-cov from a clang cc toolchain :( |
A fairly simple solution for this would be to replace the LCOV merger with a Graal native image, which as far as I know is the setup Google is using internally. This is already done for Turbine now, it would "just" require splitting cc @hvadehra |
Is that something that can be done for Bazel 7.1.0? 🙏 |
Any updates here? This is still impacting |
@c-mita WDYT about the idea in #20577 (comment)? |
Friendly ping @c-mita |
also interested. friendly ping @c-mita :) |
We currently are trying to upgrade to bazel 7 with a rust + python codebase. Allowing the building of runfile links significantly slows down build time. is there a workaround in the meantime to allow |
Is this fix gonna be in Bazel 7.3.0? |
This commit is part of a series of cleanups that look challenging to cherry-pick. @lberki Can you assess how much work that would be? |
really hoping that this can go in to 7.3.0! we're still stuck on bazel 6.5 because of this. friendly ping @lberki |
Fixes bazelbuild#20577 Closes bazelbuild#22676. PiperOrigin-RevId: 649065192 Change-Id: I0a57f580c1cb3a03184950e3e5ea24e9ef4962b4
I've also come across this issue and wondering if it's possible to backport to 7.X? |
@tomrenn we can include this in 7.4.0 |
@bazel-io fork 7.4.0 |
Fixes bazelbuild#20577 Closes bazelbuild#22676. PiperOrigin-RevId: 649065192 Change-Id: I0a57f580c1cb3a03184950e3e5ea24e9ef4962b4
Description of the bug:
Whenever
--nobuild_runfiles_links
is enabled I encounter a failure where theremote_coverage_tools/Main
tool errors and fails to find runfiles. The logging is confusing as searching appears as though it should be inhibited.https://buildkite.com/bazel/rules-rust-rustlang/builds/10120#018c7929-4564-4947-9fa6-ea73aa7e0e26
This issue is reproduced on bazelbuild/rules_rust#2340
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This issue is reproduced on bazelbuild/rules_rust#2340
Which operating system are you running Bazel on?
Linux, MacOS
What is the output of
bazel info release
?7.0.0
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
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
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: