From e07045974aebfa13d022e8cd40808ae4c43de2c0 Mon Sep 17 00:00:00 2001 From: Sergey Cheremisin <100359974+scheremisin@users.noreply.github.com> Date: Wed, 21 May 2025 21:18:19 +0100 Subject: [PATCH] patch bazel 7.5.0 --- .../build/lib/remote/RemoteExecutionCache.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionCache.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionCache.java index cec1f33d197b54..fdb61193712f3d 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionCache.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionCache.java @@ -36,8 +36,6 @@ import com.google.devtools.build.lib.events.Reporter; import com.google.devtools.build.lib.profiler.Profiler; import com.google.devtools.build.lib.profiler.SilentCloseable; -import com.google.devtools.build.lib.remote.common.CacheNotFoundException; -import com.google.devtools.build.lib.remote.common.LostInputsEvent; import com.google.devtools.build.lib.remote.common.RemoteActionExecutionContext; import com.google.devtools.build.lib.remote.common.RemoteCacheClient; import com.google.devtools.build.lib.remote.merkletree.MerkleTree; @@ -185,19 +183,7 @@ private ListenableFuture uploadBlob( return cacheProtocol.uploadBlob(context, digest, file.getBytes()); } - var path = checkNotNull(file.getPath()); - try { - if (remotePathChecker.isRemote(context, path)) { - // If we get here, the remote input was determined to exist in the remote or disk cache at - // some point before action execution, but reported to be missing when querying the remote - // for missing action inputs; possibly because it was evicted in the interim. - reporter.post(new LostInputsEvent(digest)); - throw new CacheNotFoundException(digest, path.getPathString()); - } - } catch (IOException e) { - return immediateFailedFuture(e); - } - return cacheProtocol.uploadFile(context, digest, path); + return cacheProtocol.uploadFile(context, digest, file.getPath()); } Message message = additionalInputs.get(digest);