remote/bugs: some tests aren't cached remotely
These three tests aren't cached remotely on our CI.
```
//src/test/shell/bazel:bazel_determinism_test
//src/test/shell/bazel:bazel_bootstrap_distfile_test
//scripts/release:release_test
```

Need to investigate why this is the case.

cc: @ulfjack @philwo 


src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
index 4ef09ad268f260..2da0cc1203d446 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
@@ -90,7 +90,7 @@ final class RemoteSpawnCache implements SpawnCache {
   @Override
   public CacheHandle lookup(Spawn spawn, SpawnExecutionContext context)
       throws InterruptedException, IOException, ExecException {
-    if (!Spawns.mayBeCached(spawn)) {
+    if (!Spawns.mayBeCached(spawn) || !Spawns.mayBeExecutedRemotely(spawn)) {
       return SpawnCache.NO_RESULT_NO_STORE;
     }
     boolean checkCache = options.remoteAcceptCached;
