Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for detectedOverlappingOutputs (0.48 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureIncrementalStateBeforeExecutionStepTest.groovy

            1 * delegate.execute(work, _ as BeforeExecutionContext) >> { UnitOfWork work, BeforeExecutionContext delegateContext ->
                def state = delegateContext.beforeExecutionState.get()
                assert !state.detectedOverlappingOutputs.present
                assert state.outputFileLocationSnapshots == outputSnapshots
            }
            0 * _
    
            assertOperation()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/AbstractResolveCachingStateStep.java

                cachingDisabledReasonsBuilder.add(BUILD_CACHE_DISABLED_REASON);
            }
            OverlappingOutputs detectedOverlappingOutputs = beforeExecutionState.getDetectedOverlappingOutputs()
                .orElse(null);
            work.shouldDisableCaching(detectedOverlappingOutputs)
                .ifPresent(cachingDisabledReasonsBuilder::add);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AbstractCaptureStateBeforeExecutionStepTest.groovy

            1 * delegate.execute(work, _ as BeforeExecutionContext) >> { UnitOfWork work, BeforeExecutionContext delegateContext ->
                def state = delegateContext.beforeExecutionState.get()
                assert !state.detectedOverlappingOutputs.present
                assert state.implementation == implementationSnapshot
                assert state.additionalImplementations == additionalImplementations
            }
            0 * _
    
            assertOperation()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:34 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureNonIncrementalStateBeforeExecutionStepTest.groovy

            1 * delegate.execute(work, _ as BeforeExecutionContext) >> { UnitOfWork work, BeforeExecutionContext delegateContext ->
                def state = delegateContext.beforeExecutionState.get()
                assert !state.detectedOverlappingOutputs.present
                assert state.outputFileLocationSnapshots == ImmutableSortedMap.of()
            }
            0 * _
    
            assertOperation()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/RemovePreviousOutputsStepTest.groovy

            _ * work.shouldCleanupOutputsOnNonIncrementalExecution() >> true
            _ * context.beforeExecutionState >> Optional.of(beforeExecutionState)
            1 * beforeExecutionState.detectedOverlappingOutputs >> Optional.of(new OverlappingOutputs("test", "/absolute/path"))
            _ * work.visitOutputs(_, _) >> { File workspace, OutputVisitor visitor ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/OverlappingOutputsFilterTest.groovy

                "outputDir", directoryWithOutputFile
            )
            def overlappingOutputs = Mock(OverlappingOutputs)
    
            def beforeExecutionState = Stub(BeforeExecutionState) {
                detectedOverlappingOutputs >> Optional.of(overlappingOutputs)
                outputFileLocationSnapshots >> outputsBeforeExecution
            }
            def previousExecutionState = Stub(PreviousExecutionState) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptEvaluator.kt

    
            override fun shouldDisableCaching(detectedOverlappingOutputs: OverlappingOutputs?): Optional<CachingDisabledReason> {
                if (cachingDisabledByProperty) {
                    return Optional.of(CACHING_DISABLED_REASON)
                }
    
                return super.shouldDisableCaching(detectedOverlappingOutputs)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 10:23:24 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/TaskExecution.java

            return getExecutionBehavior() == ExecutionBehavior.INCREMENTAL;
        }
    
        @Override
        public Optional<CachingDisabledReason> shouldDisableCaching(@Nullable OverlappingOutputs detectedOverlappingOutputs) {
            if (task.isHasCustomActions()) {
                LOGGER.info("Custom actions are attached to {}.", task);
            }
    
            return taskCacheabilityResolver.shouldDisableCaching(
                task,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AbstractTransformExecution.java

                operationContext = null;
            }
        }
    
        @Override
        public Optional<CachingDisabledReason> shouldDisableCaching(@Nullable OverlappingOutputs detectedOverlappingOutputs) {
            return transform.isCacheable()
                ? maybeDisableCachingByProperty()
                : Optional.of(NOT_CACHEABLE);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/UnitOfWork.java

         * When returning {@link Optional#empty()} if caching can still be disabled further down the pipeline.
         */
        default Optional<CachingDisabledReason> shouldDisableCaching(@Nullable OverlappingOutputs detectedOverlappingOutputs) {
            return Optional.empty();
        }
    
        /**
         * Is this work item allowed to load from the cache, or if we only allow it to be stored.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 13.1K bytes
    - Viewed (0)
Back to top