Skip to content

Commit 4256d46

Browse files
MarkDacekcopybara-github
authored andcommitted
Automated rollback of commit d84f799.
*** Reason for rollback *** Breaks some targets. PiperOrigin-RevId: 412968486
1 parent 9fddd56 commit 4256d46

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/test/java/com/google/devtools/build/lib/remote/RemoteSpawnCacheTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public MetadataProvider getMetadataProvider() {
143143

144144
@Override
145145
public ArtifactExpander getArtifactExpander() {
146-
return SIMPLE_ARTIFACT_EXPANDER;
146+
throw new UnsupportedOperationException();
147147
}
148148

149149
@Override

src/test/java/com/google/devtools/build/lib/remote/RemoteSpawnRunnerTest.java

-7
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
import com.google.devtools.build.lib.exec.RemoteLocalFallbackRegistry;
7575
import com.google.devtools.build.lib.exec.SpawnCheckingCacheEvent;
7676
import com.google.devtools.build.lib.exec.SpawnExecutingEvent;
77-
import com.google.devtools.build.lib.exec.SpawnInputExpander;
7877
import com.google.devtools.build.lib.exec.SpawnRunner;
7978
import com.google.devtools.build.lib.exec.SpawnRunner.SpawnExecutionContext;
8079
import com.google.devtools.build.lib.exec.SpawnSchedulingEvent;
@@ -1268,7 +1267,6 @@ public void shouldReportCheckingCacheBeforeScheduling() throws Exception {
12681267

12691268
Spawn spawn = newSimpleSpawn();
12701269
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1271-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
12721270
when(policy.getTimeout()).thenReturn(Duration.ZERO);
12731271

12741272
when(executor.executeRemotely(
@@ -1312,7 +1310,6 @@ public void shouldReportExecutingStatusWithoutMetadata() throws Exception {
13121310

13131311
Spawn spawn = newSimpleSpawn();
13141312
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1315-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
13161313
when(policy.getTimeout()).thenReturn(Duration.ZERO);
13171314

13181315
when(executor.executeRemotely(
@@ -1356,7 +1353,6 @@ public void shouldReportExecutingStatusAfterGotExecutingStageFromMetadata() thro
13561353

13571354
Spawn spawn = newSimpleSpawn();
13581355
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1359-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
13601356
when(policy.getTimeout()).thenReturn(Duration.ZERO);
13611357

13621358
when(executor.executeRemotely(
@@ -1417,7 +1413,6 @@ public void shouldIgnoreInvalidMetadata() throws Exception {
14171413

14181414
Spawn spawn = newSimpleSpawn();
14191415
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1420-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
14211416
when(policy.getTimeout()).thenReturn(Duration.ZERO);
14221417

14231418
when(executor.executeRemotely(
@@ -1466,7 +1461,6 @@ public void shouldReportExecutingStatusIfNoExecutingStatusFromMetadata() throws
14661461

14671462
Spawn spawn = newSimpleSpawn();
14681463
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1469-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
14701464
when(policy.getTimeout()).thenReturn(Duration.ZERO);
14711465

14721466
when(executor.executeRemotely(
@@ -1516,7 +1510,6 @@ public void shouldReportExecutingStatusEvenNoOperationFromServer() throws Except
15161510

15171511
Spawn spawn = newSimpleSpawn();
15181512
SpawnExecutionContext policy = mock(SpawnExecutionContext.class);
1519-
when(policy.getSpawnInputExpander()).thenReturn(mock(SpawnInputExpander.class));
15201513
when(policy.getTimeout()).thenReturn(Duration.ZERO);
15211514

15221515
when(executor.executeRemotely(

0 commit comments

Comments
 (0)