-
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
build without the bytes: "dangling symbolic link" error for symlink output #19143
Comments
This has been fixed by Bazel@HEAD and due to massive changes to BwoB recently, it's unlikely we can cherry-pick the fix to 6.x. cc @tjgq |
@coeuvre Would a localized fix be possible? The report says that it only broke in 6.3.x, but 6.2.1 worked, so this is minor release regression? |
@brentleyjones I will take a look to see if a simple fix is possible. |
6.4 is slated to go out soon. Is there any update on the feasibility of fixing this 6.x regression? |
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again at head. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again at head. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again at head. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
…bytes. (#19739) This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again at head. The divergence is too great at this point, so it's not possible to cherry-pick the relevant changes from head. Instead, I've written a targeted fix that falls back to downloading every action output if at least one of the outputs was materialized as a symlink. Fixes #19143.
A fix has been submitted into the 6.4.0 release branch. |
A fix for this issue has been included in Bazel 6.4.0 RC2. Please test out the release candidate and report any issues as soon as possible. Thanks! |
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
…ilding without the bytes. This is the same bug as bazelbuild#19143, except that the fix in 3a48457 missed the case where the symlink occurs inside an output directory. Fixes bazelbuild#20408.
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again at head. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again on main but is not mapped to 7.0.x. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
…bytes. This appears to have worked in 6.2.x, got broken in 6.3.x, and is working again on main but is not mapped to 7.0.x. The divergence is too great at this point, so it's not possible to cherry-pick the necessary changes from head. Instead, I've written a targeted fix that falls back to downloading every target output if at least one of the outputs was materialized as a symlink. Fixes bazelbuild#19143.
Description of the bug:
I have an action with an output that is a symlink to another output of the same action. When build without the bytes is enabled (e.g.
--remote_download_toplevel
or--remote_download_minimal
), the symlink gets downloaded, but the target does not, resulting in bazel failing due to a "dangling symbolic link".What 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.
This is a simple action which produces two outputs, one of which is a symlink to the other:
This succeeds and populates the disk cache:
Then this fails:
Error:
The output directory contains just a broken
b
symlink, noa
in sight.Which operating system are you running Bazel on?
Ubuntu 18.04
What is the output of
bazel info release
?6.3.1
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.
This reproduces in bazel 6.3.0 and 6.3.1, but not in 6.2.1 or 7.0.0-pre.20230710.5.
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
I have shown an example with a genrule and disk cache, but this also reproduces with a rule with declared outputs and a proper remote cache setup.
The text was updated successfully, but these errors were encountered: