-
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_download_toplevel does not download symlink targets of runfiles #18249
Labels
P1
I'll work on this now. (Assignee required)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
Comments
Pavank1992
added
the
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
label
Apr 28, 2023
joeleba
added
P1
I'll work on this now. (Assignee required)
and removed
untriaged
labels
May 2, 2023
19 tasks
12 tasks
iancha1992
pushed a commit
to iancha1992/bazel
that referenced
this issue
May 18, 2023
Fixes bazelbuild#18249. Closes bazelbuild#18399. PiperOrigin-RevId: 532767884 Change-Id: I7c50b2bea7b93072e601a192031c14d2c22a5713
fweikert
pushed a commit
to fweikert/bazel
that referenced
this issue
May 25, 2023
Fixes bazelbuild#18249. Closes bazelbuild#18399. PiperOrigin-RevId: 532767884 Change-Id: I7c50b2bea7b93072e601a192031c14d2c22a5713
We see a backport of the fix to this issue to 6.3.0 in #18446, but it doesn't look like that merged and as of 6.3.2 this is still broken. Is this fix expected to be backported to 6.x or do we need to wait for 7.x? |
@william-smith-skydio That's an unrelated change of mine that hasn't been merged yet. |
The fix was not cherry-picked into 6.x due to conflicts. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P1
I'll work on this now. (Assignee required)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
Description of the bug:
--remote_download_toplevel
downloads the runfiles associated with any outputs explicitly listed on the command line, and (on Linux) constructs a runfiles tree of symlinks for them.Unfortunately, if the runfiles is constructed with
symlinks=
orroot_symlinks=
that refer to File objects not in thefiles=
depset of the runfiles, this process fails and the target of the symlink is not downloaded, which results in a broken symlink in the resulting runfiles tree.This is important for us because we use root_symlinks to relocate files to keep our PYTHONPATH smaller. This works file when not using --remote_download_toplevel.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
rules.bzl
BUILD
Reproduction steps:
bazel run //:symlink --remote_download_toplevel --disk_cache /tmp/cache
bazel clean
bazel run //:symlink --remote_download_toplevel --disk_cache /tmp/cache
Which operating system are you running Bazel on?
Ubuntu 18.04
What is the output of
bazel info release
?release 6.1.2
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
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
This seems to reproduce both on Bazel 5.x and the latest 7.0.0-pre*
The text was updated successfully, but these errors were encountered: