-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Labels
team-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) teamtype: buguntriaged
Description
Description of the bug:
From Bazel 9.0.0rc1 to 9.0.0rc6, when building an executable target with remote cache (not necessarily in BwoB) and a BES backend (json file, text file or remote grpc backend) we have a warning:
WARNING: Uploading BEP referenced local file <bazel-out>/k8-fastbuild/bin/foo.sh.runfiles: <bazel-out>/k8-fastbuild/bin/foo.sh.runfiles (Is a directory)
- No warning with Bazel 8.4 and 8.5.
- No warning without
--build_event_publish_all_actions, or without BES, or without remote cache.
Which category does this issue belong to?
Core
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
MODULE.bazel
module(name = "playground")def.bzl
def _my_rule_impl(ctx):
f = ctx.actions.declare_file(ctx.label.name + ".sh")
ctx.actions.write(f, "", is_executable = True)
return DefaultInfo(executable = f)
my_rule = rule(
implementation = _my_rule_impl,
executable = True,
)BUILD.bazel
load("//:def.bzl", "my_rule")
my_rule(name = "foo").bazelrc
common --remote_cache="grpc://localhost:9092"
# common --bes_backend="grpc://localhost:8090"
common --build_event_json_file="/tmp/bep.json"
common --build_event_publish_all_actions
.bazelversion
9.0.0rc6
$ bazel build //:fooINFO: Invocation ID: 775ea0a9-f92b-4d56-9f0f-5a16b8e3c5a7
INFO: Analyzed target //:foo (5 packages loaded, 7 targets configured).
WARNING: Uploading BEP referenced local file <bazel-out>/k8-fastbuild/bin/foo.sh.runfiles: <bazel-out>/k8-fastbuild/bin/foo.sh.runfiles (Is a directory)
INFO: Found 1 target...
Target //:foo up-to-date:
bazel-bin/foo.sh
INFO: Elapsed time: 0.181s, Critical Path: 0.00s
INFO: 6 processes: 6 internal.
INFO: Build completed successfully, 6 total actions
INFO: Running command line: bazel-bin/foo.sh
INFO: Build Event Protocol files produced successfully.
Which operating system are you running Bazel on?
linux/amd64
What is the output of bazel info release?
release 9.0.0rc6
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
Maybe 4b8334c
Have you found anything relevant by searching the web?
Another similar issue I found was #19847.
Metadata
Metadata
Assignees
Labels
team-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) teamtype: buguntriaged