Skip to content

Commit

Permalink
Flip the default value of --remote_discard_merkle_trees to true
Browse files Browse the repository at this point in the history
This commit also removes the experimental_ prefix.
  • Loading branch information
moroten committed Oct 25, 2023
1 parent 6c02329 commit 31c121f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ public RemoteOutputsStrategyConverter() {
public boolean markToolInputs;

@Option(
name = "experimental_remote_discard_merkle_trees",
defaultValue = "false",
name = "remote_discard_merkle_trees",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.REMOTE,
effectTags = {OptionEffectTag.UNKNOWN},
help =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,7 @@ public void buildRemoteActionForRemotePersistentWorkers() throws Exception {
.build();
FakeSpawnExecutionContext context = newSpawnExecutionContext(spawn);
remoteOptions.markToolInputs = true;
remoteOptions.remoteDiscardMerkleTrees = false;
RemoteExecutionService service = newRemoteExecutionService(remoteOptions);

// Check that worker files are properly marked in the merkle tree.
Expand Down Expand Up @@ -2277,6 +2278,7 @@ public void buildRemoteActionWithScrubbing() throws Exception {
.setSource("some/path")
.setTarget("another/dir"))))
.build());
remoteOptions.remoteDiscardMerkleTrees = false;
RemoteExecutionService service = newRemoteExecutionService(remoteOptions);

RemoteAction remoteAction = service.buildRemoteAction(spawn, context);
Expand Down Expand Up @@ -2332,6 +2334,7 @@ public void buildRemoteActionWithPathMapping(@TestParameter boolean remoteMerkle
.setPathMapper(pathMapper)
.build();
FakeSpawnExecutionContext context = newSpawnExecutionContext(spawn);
remoteOptions.remoteDiscardMerkleTrees = false;
RemoteExecutionService service = newRemoteExecutionService(remoteOptions);

// Check that inputs and outputs of the remote action are mapped correctly.
Expand Down

0 comments on commit 31c121f

Please sign in to comment.