Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getCacheKeyForTask (0.25 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            errorOutput =~ /Could not pack tree 'output'/
            def cacheKey = cacheOperations.getCacheKeyForTask(":customTask")
            !localCache.hasCacheEntry(cacheKey)
            localCache.listCacheTempFiles().empty
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

                buildCache { local.push = false }
            """
    
            when:
            succeeds("t")
    
            then:
            executed()
            localCache.empty
            def cacheKey = cacheOperations.getCacheKeyForTask(":t")
            remoteCache.hasCacheEntry(cacheKey)
    
            when:
            settingsFile << """
                buildCache.local.push = true
            """
            execute()
    
            then:
            cached()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

        }
    
        def "cache entry contains expected contents"() {
            buildFile << defineCacheableTask()
            when:
            withBuildCache().run("cacheable")
            then:
            def cacheKey = cacheOperations.getCacheKeyForTask(":cacheable")
            def cacheFile = listCacheFiles().find { it.name == cacheKey }
            cacheFile.exists()
            def cacheEntry = new TarTestFixture(cacheFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

            metadata.type == TaskExecution.name.replaceAll(/\$/, ".")
            metadata.gradleVersion == GradleVersion.current().version
        }
    
        private Properties readMetadata() {
            def cacheKey = cacheOperations.getCacheKeyForTask(":compileJava")
            assert localCache.hasCacheEntry(cacheKey)
            def cacheEntry = localCache.getCacheEntry(cacheKey)
    
            // Must rename to "*.tgz" for unpacking to work
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy

                tasks.withType(JavaCompile).configureEach { it.outputs.upToDateWhen { !upToDate.present } }
            """
    
            when:
            withBuildCache().run taskPath
            def originalCacheKey = cacheOperations.getCacheKeyForTask(taskPath)
            def originalCacheFile = listCacheFiles().find { it.name == originalCacheKey }
            TestFile.makeOlder(originalCacheFile)
            def originalModificationTime = originalCacheFile.lastModified()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildCacheOperationFixtures.groovy

            def packOperations = getPackOperationsForTask(taskPath)
            return packOperations.empty ? null : packOperations[0].details["cacheKey"]
        }
    
        String getCacheKeyForTask(String taskPath) {
            def cacheKey = getCacheKeyForTaskOrNull(taskPath)
            assert cacheKey != null
            return cacheKey
        }
    
        void assertStoredToLocalCacheForTask(String taskPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            result.assertTaskNotSkipped(someTask)
            someTaskOutput.assertExists()
        }
    
        private void assertTaskOutputCached(String taskName) {
            assert listCacheFiles().any { it.name == cacheOperations.getCacheKeyForTask(taskName) }
        }
    
        private void assertTaskOutputNotCached(String taskName) {
            def cacheKey = cacheOperations.getCacheKeyForTaskOrNull(taskName)
            assert cacheKey == null
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
Back to top