From 6ddbb6e48bf1fb389634934dcce1e251a77e50e5 Mon Sep 17 00:00:00 2001 From: Janak Ramakrishnan Date: Tue, 28 Jul 2015 21:39:22 +0000 Subject: Allow modules to specify additional nodes in the graph to be invalidated and use this functionality to properly invalidate http download nodes if the downloaded zip file doesn't match the specified hash. This still means that the actual files downloaded may not match, but checking all such files may be too expensive. This helps with #336 but before that issue can be closed all remote repositories (git, etc.), should have similar functionality added. -- MOS_MIGRATED_REVID=99317085 --- .../build/lib/skyframe/SkyframeExecutorFactory.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutorFactory.java') diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutorFactory.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutorFactory.java index a1615cf02e..7710fb0b67 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutorFactory.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutorFactory.java @@ -41,8 +41,6 @@ public interface SkyframeExecutorFactory { * * @param reporter the reporter to be used by the executor * @param pkgFactory the package factory - * @param skyframeBuild use Skyframe for the build phase. Should be always true after we are in - * the skyframe full mode. * @param tsgm timestamp granularity monitor * @param directories Blaze directories * @param workspaceStatusActionFactory a factory for creating WorkspaceStatusAction objects @@ -52,11 +50,15 @@ public interface SkyframeExecutorFactory { * @param preprocessorFactorySupplier * @param extraSkyFunctions * @param extraPrecomputedValues + * @param customDirtinessCheckers * @return an instance of the SkyframeExecutor * @throws AbruptExitException if the executor cannot be created */ - SkyframeExecutor create(Reporter reporter, PackageFactory pkgFactory, - TimestampGranularityMonitor tsgm, BlazeDirectories directories, + SkyframeExecutor create( + Reporter reporter, + PackageFactory pkgFactory, + TimestampGranularityMonitor tsgm, + BlazeDirectories directories, Factory workspaceStatusActionFactory, ImmutableList buildInfoFactories, Set immutableDirectories, @@ -64,5 +66,7 @@ public interface SkyframeExecutorFactory { Predicate allowedMissingInputs, Preprocessor.Factory.Supplier preprocessorFactorySupplier, ImmutableMap extraSkyFunctions, - ImmutableList extraPrecomputedValues) throws AbruptExitException; + ImmutableList extraPrecomputedValues, + Iterable customDirtinessCheckers) + throws AbruptExitException; } -- cgit v1.2.3