-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make local execution deduplication work with optional outputs
This fixes failures such as the following when a spawn, e.g. a reduced Java compilation spawn, doesn't create an optional output: ``` java.io.FileNotFoundException: /private/var/tmp/_bazel_fmeum/507738cfc7e6cde00e4a0230e9aa0722/execroot/_main/bazel-out/_tmp/actions/remote/175.tmp (No such file or directory) at com.google.devtools.build.lib.unix.NativePosixFiles.lstat(Native Method) at com.google.devtools.build.lib.unix.UnixFileSystem.statInternal(UnixFileSystem.java:212) at com.google.devtools.build.lib.unix.UnixFileSystem.stat(UnixFileSystem.java:201) at com.google.devtools.build.lib.vfs.Path.stat(Path.java:290) at com.google.devtools.build.lib.vfs.FileSystemUtils.moveFile(FileSystemUtils.java:456) at com.google.devtools.build.lib.remote.RemoteExecutionService.moveOutputsToFinalLocation(RemoteExecutionService.java:878) ... ``` Also clean up temporary files in case of an exception.
- Loading branch information
Showing
1 changed file
with
53 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters