Open UebelAndre opened 11 months ago
/cc @c-mita @coeuvre
It appears that we’re not propagating the platform properties to the coverage spawn. I’ll take a look this week, it’s probably a simple fix.
On Tue, Dec 19, 2023 at 14:18 Yun Peng @.***> wrote:
/cc @c-mita https://github.com/c-mita @coeuvre https://github.com/coeuvre
— Reply to this email directly, view it on GitHub https://github.com/bazelbuild/bazel/issues/20578#issuecomment-1862744360, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBK5HJ3HO4WZO7RCBWWOKTYKGH3XAVCNFSM6AAAAABAYSEDNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSG42DIMZWGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@tjgq Just in case it's helpful, I started working on something similar at some point in the past but only covered the Skymeld case: https://github.com/bazelbuild/bazel/pull/19784.
https://github.com/bazelbuild/bazel/issues/19781 is related.
It would be great to have this fixed to be able to have RBE regression testing for coverage reports.
@fmeum Thanks, I am convinced that we do indeed need something similar to https://github.com/bazelbuild/bazel/pull/19784. However, I'd rather make remote execution work than pin it to the host platform; from my spelunking, it's apparent that we've always intended CoverageAction to be remotable, but we didn't wire up the execution properties correctly. It doesn't help that CoverageAction exists "outside of the system" (it has no owning target), so the wiring is extra annoying...
@UebelAndre Until then, I believe this can be worked around in one of two ways (please let me know if neither one works, as that means I have the wrong repro):
container-image
exec property (and any other required properties) via --remote_default_exec_properties
instead of a platform
rule (i.e., --remote_default_exec_properties=container-image=docker://...
--strategy=CoverageReport=local
Description of the bug:
I'm trying to add regression testing for generating coverage reports for Rust in RBE environments on https://github.com/bazelbuild/rules_rust/pull/2005 and I run into the following crash:
https://buildkite.com/bazel/rules-rust-rustlang/builds/10127#018c793a-1630-4729-a194-396fb371e6bf
Which category does this issue belong to?
Remote Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use the changes at https://github.com/bazelbuild/rules_rust/pull/2005 to build with RBE as described by presubmit.yaml
Which operating system are you running Bazel on?
Linux
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