Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for requireIsolatedDaemons (0.36 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApi.groovy

         */
        void requireIsolatedDaemons() {
            if (useSeparateDaemonBaseDir) {
                daemonBaseDir = testWorkDirProvider.testDirectory.file("daemons")
            } else {
                gradleUserHomeDir = testWorkDirProvider.testDirectory.file("user-home-dir")
            }
            requireIsolatedDaemons = true
            requiresDaemon = true
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:07:23 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

            def lastCleanupCheck = initializeHome()
    
            expect:
            run()
            assertCacheWasNotCleanedUpSince(lastCleanupCheck)
        }
    
        private long initializeHome() {
            executer.requireIsolatedDaemons() // needs to stop daemon
            requireOwnGradleUserHomeDir() // needs its own journal
            run() // Make sure cache directory is initialized
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

            }
    
            when:
            executer.withGradleUserHomeDir(homeDirectory)
            executer.requireDaemon()
            executer.requireIsolatedDaemons()
            run 'help'
    
            then:
            getCompileBuildFileOperationsCount() == 4 // classpath + body for settings and for the 2 identical scripts
    
            when:
            def before = scriptDetails()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

        }
    
        def "daemon with different native services flag is not reused"() {
            given:
            executer.requireDaemon()
            executer.requireIsolatedDaemons()
    
            when:
            executer.withArguments("-D$NATIVE_SERVICES_OPTION=$firstRunNativeServicesOption")
            succeeds()
    
            then:
            daemons.daemon.becomesIdle()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

    class ToolingApiShutdownCrossVersionSpec extends CancellationSpec {
    
        def waitFor
    
        def setup() {
            waitFor = new PollingConditions(timeout: 60, initialDelay: 0, factor: 1.25)
            toolingApi.requireIsolatedDaemons()
        }
    
        @TargetGradleVersion(">=6.5")
        def "disconnect during build stops daemon"() {
            setup:
            buildFile.text = """
                task hang {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

        def setup() {
            expectReindentedValidationMessage()
            // This is required for the daemon to clean up symlinks between builds
            executer.requireDaemon()
            executer.requireIsolatedDaemons()
        }
    
        def "#desc can handle symlinks"() {
            def buildScript = file("build.gradle")
            def baseDir = file('build')
            baseDir.file('file').text = 'some contents'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy

                    includeBuild '../included'
                """
            }
    
            and:
            // classloader reuse requires daemon reuse without memory pressure
            executer.requireIsolatedDaemons()
    
            when:
            inDirectory 'root'
            configurationCacheRun ':included:classloader1:probe', ':included:boundary:classloader2:probe'
    
            then: 'on classloader classloader1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 11:47:23 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

        def "does not leak project state across multiple builds"() {
            fixture.withWorkActionClassInBuildSrc()
            executer.withBuildJvmOpts('-Xms256m', '-Xmx512m').requireIsolatedDaemons().requireDaemon()
    
            buildFile << """
                ext.memoryHog = new byte[1024*1024*150] // ~150MB
    
                tasks.withType(WorkerTask) { task ->
                    isolationMode = 'processIsolation'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformExecutionBuildOperationIntegrationTest.groovy

            return snapshotExecution.hash as String
        }
    
        void enableIdentityCache() {
            // So we don't get a daemon from another test
            executer.requireIsolatedDaemons()
            executer.beforeExecute {
                executer.withArgument("-D$REUSE_USER_HOME_SERVICES=true")
            }
        }
    
        List<BuildOperationRecord> getTransformExecutions() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ResolveConfigurationDependenciesBuildOperationIntegrationTest.groovy

                    dependencies {
    
                        classpath 'org.sample:sub1:1.0'
                    }
                }
                task foo
            """
    
            m1.allowAll()
            executer.requireIsolatedDaemons()
            when:
            run "foo"
    
            then:
            def op = operations.first(ResolveConfigurationDependenciesBuildOperationType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top