Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for previousExecutionState (0.42 sec)

  1. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/PreviousExecutionState.java

    import org.gradle.internal.hash.HashCode;
    
    /**
     * Captures the state a {@link org.gradle.internal.execution.UnitOfWork} after the previous execution has finished.
     */
    public interface PreviousExecutionState extends ExecutionInputState, ExecutionOutputState {
    
        /**
         * Returns the cache key from the previous execution.
         */
        HashCode getCacheKey();
    
        /**
         * {@inheritDoc}
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 09:46:47 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureIncrementalStateBeforeExecutionStepTest.groovy

            when:
            step.execute(work, context)
            then:
            _ * context.previousExecutionState >> Optional.of(previousExecutionState)
            1 * previousExecutionState.inputProperties >> ImmutableSortedMap.of()
            1 * previousExecutionState.inputFileProperties >> ImmutableSortedMap.of()
            1 * previousExecutionState.outputFilesProducedByWork >> previousOutputSnapshots
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/StoreExecutionStateStepTest.groovy

            _ * context.previousExecutionState >> Optional.empty()
    
            then:
            interaction { expectStore(false, outputFilesProducedByWork) }
            0 * _
        }
    
        def "output snapshots are stored after failed execution with changed outputs"() {
            def previousExecutionState = Mock(PreviousExecutionState)
    
            when:
            def result = step.execute(work, context)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/SkipUpToDateStep.java

            }
            @SuppressWarnings("OptionalGetWithoutIsPresent")
            PreviousExecutionState previousExecutionState = context.getPreviousExecutionState().get();
            ExecutionOutputState executionOutputState = new DefaultExecutionOutputState(true, previousExecutionState.getOutputFilesProducedByWork(), previousExecutionState.getOriginMetadata(), true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveIncrementalCachingStateStepTest.groovy

            _ * context.beforeExecutionState >> Optional.of(beforeExecutionState)
            _ * executionStateChanges.changeDescriptions >> ImmutableList.of()
    
            _ * context.previousExecutionState >> Optional.of(previousExecutionState)
            _ * previousExecutionState.cacheKey >> cacheKey
            _ * context.validationProblems >> ImmutableList.of()
            1 * delegate.execute(work, { CachingContext context ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ResolveChangesStepTest.groovy

            _ * context.previousExecutionState >> Optional.of(previousExecutionState)
            _ * context.validationProblems >> ImmutableList.of(Mock(Problem))
            _ * context.previousExecutionState >> Optional.empty()
            0 * _
        }
    
        def "provides input file changes when history is available"() {
            def previousExecutionState = Mock(PreviousExecutionState)
            def changes = Mock(ExecutionStateChanges)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/testFixtures/groovy/org/gradle/internal/execution/TestExecutionHistoryStore.java

    import static com.google.common.collect.Maps.transformValues;
    
    public class TestExecutionHistoryStore implements ExecutionHistoryStore {
    
        private final Map<String, PreviousExecutionState> executionHistory = new HashMap<>();
    
        @Override
        public Optional<PreviousExecutionState> load(String key) {
            return Optional.ofNullable(executionHistory.get(key));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 09:09:23 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AbstractCaptureStateBeforeExecutionStep.java

            }
    
            Optional<PreviousExecutionState> previousExecutionState = context.getPreviousExecutionState();
            ImmutableSortedMap<String, ValueSnapshot> previousInputPropertySnapshots = previousExecutionState
                .map(ExecutionInputState::getInputProperties)
                .orElse(ImmutableSortedMap.of());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/DefaultExecutionHistoryStore.java

    import org.gradle.internal.execution.history.AfterExecutionState;
    import org.gradle.internal.execution.history.ExecutionHistoryStore;
    import org.gradle.internal.execution.history.PreviousExecutionState;
    import org.gradle.internal.fingerprint.CurrentFileCollectionFingerprint;
    import org.gradle.internal.fingerprint.FileCollectionFingerprint;
    import org.gradle.internal.hash.ClassLoaderHierarchyHasher;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 09:09:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ExecuteStepTest.groovy

    class ExecuteStepTest extends StepSpec<ChangingOutputsContext> {
        def workspace = Mock(File)
        def previousOutputs = ImmutableSortedMap.of()
        def previousExecutionState = Stub(PreviousExecutionState) {
            getOutputFilesProducedByWork() >> previousOutputs
        }
    
        def step = new ExecuteStep<>(new TestBuildOperationRunner())
        def inputChanges = Mock(InputChangesInternal)
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top