-
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.
Fix local execution deduplication to 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. Work towards #23288 Closes #23296. PiperOrigin-RevId: 665744936 Change-Id: I89a409c7a6b28b2a5fa532bdb233dca9bc5bde73
- Loading branch information
1 parent
6fabb1f
commit 5482fea
Showing
1 changed file
with
57 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