-
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
File output inside directory output fails to download from remote cache #15328
Labels
Comments
@bazelbuild/remote-execution |
I cannot reproduce the exact error with your example but I do encountered another error:
|
I guess this depends on how remote server reports the outputs. i.e. whether output file is omitted in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description of the bug:
Bazel allows an action to generate an output file and an output directory, where the file is a child of the directory. This is useful for actions where the output structure is only partially understood/deterministic.
When using such an output structure with remote execution, Bazel fails to download outputs from the remote CAS. It appears that the downloads list contains duplicate entries for nested files, which breaks the atomic file renaming in
RemoteExecutionService.moveOutputsToFinalLocation()
.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
I can reproduce the error on macOS 12.2.1 and Ubuntu 20.04
What is the output of
bazel info release
?release 5.1.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
Have you found anything relevant by searching the web?
The discussion in bazelbuild/remote-apis#63 documents that output files are allowed to be the child of an output directory.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: