Skip to content

Commit

Permalink
[Skymeld] Gracefully handle the incompatibility with BwoB.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 530670590
Change-Id: Ia67ce990bd34065e83609e4d030918b2fcdccd53
  • Loading branch information
joeleba authored and copybara-github committed May 9, 2023
1 parent 1c1584b commit fd33575
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/google/devtools/build/lib/skyframe/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2416,6 +2416,7 @@ java_library(
"//src/main/java/com/google/devtools/build/lib/analysis:analysis_options",
"//src/main/java/com/google/devtools/build/lib/events",
"//src/main/java/com/google/devtools/build/lib/pkgcache",
"//src/main/java/com/google/devtools/build/lib/remote/options",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.google.devtools.build.lib.buildtool.BuildRequestOptions;
import com.google.devtools.build.lib.events.Event;
import com.google.devtools.build.lib.pkgcache.PathPackageLocator;
import com.google.devtools.build.lib.remote.options.RemoteOptions;
import com.google.devtools.build.lib.runtime.BlazeModule;
import com.google.devtools.build.lib.runtime.CommandEnvironment;

Expand Down Expand Up @@ -94,6 +95,20 @@ boolean determineIfMergingAnalysisExecution(CommandEnvironment env) {
+ " generating an aquery dump after builds and its value will be ignored."));
effectiveValue = false;
}
if (effectiveValue
&& env.getOptions().getOptions(RemoteOptions.class) != null
&& !env.getOptions()
.getOptions(RemoteOptions.class)
.remoteOutputsMode
.downloadAllOutputs()) {
env.getReporter()
.handle(
Event.warn(
"--experimental_merged_skyframe_analysis_execution is incompatible with"
+ " --remote_download_outputs=(minimal|toplevel) and its value will be"
+ " ignored."));
effectiveValue = false;
}

return effectiveValue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ protected void setupOptions() throws Exception {
"--remote_download_minimal",
"--dynamic_local_strategy=standalone",
"--dynamic_remote_strategy=remote");
// (b/281655526) Skymeld is incompatible.
addOptions("--noexperimental_merged_skyframe_analysis_execution");
}

@Override
Expand Down

0 comments on commit fd33575

Please sign in to comment.