Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for becomesIdle (0.18 sec)

  1. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            when:
            startBuild("compileJava")
    
            then:
            handler.waitForAllPendingCalls()
    
            then:
            cancelBuild()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            new ProcessFixture(pid1).waitForFinish()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionMonitoringIntegrationTest.groovy

            then:
            daemons.daemon.becomesIdle()
            !output.contains("The Daemon will expire")
        }
    
        def "does not expire daemon when leak does not consume metaspace threshold"() {
            given:
            configureGarbageCollectionNonHeapEventsFor(256, 512, 5, 0)
    
            when:
            run "injectEvents"
    
            then:
            daemons.daemon.becomesIdle()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/AbstractDaemonFixture.groovy

            }
        }
    
        @Override
        long getLogLineCount() {
            return daemonLog.lines().withCloseable { lines -> lines.count() }
        }
    
        DaemonFixture becomesIdle() {
            waitForState(Idle)
            this
        }
    
        DaemonFixture stops() {
            waitForState(Stopped)
            this
        }
    
        @Override
        void assertIdle() {
            assertHasState(Idle)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonFixture.java

        void assertRegistryNotWorldReadable();
    
        /**
         * Asserts that this daemon becomes idle within a short timeout. Blocks until this has happened.
         */
        DaemonFixture becomesIdle();
    
        /**
         * Asserts that this daemon stops and is no longer visible to any clients within a short timeout. Blocks until this has happened.
         */
        DaemonFixture stops();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

            assert !client.gradleHandle.standardOutput.contains("BUILD FAIL")
            assert !client.gradleHandle.standardOutput.contains("BUILD SUCCESS")
            daemons.daemon.becomesIdle()
        }
    
        private void assertTaskGetsRerun(String task, boolean buildCacheEnabled = false) {
            startBuild(task, buildCacheEnabled)
            cancelBuild(task)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonInitialCommunicationFailureIntegrationSpec.groovy

            socket.outputStream.flush()
    
            then:
            // Nothing sent back
            socket.inputStream.read() == -1
    
            // Daemon is still running
            daemon.becomesIdle()
            daemon.log.contains("Unable to receive command from client")
    
            when:
            // Ensure daemon is functional
            buildSucceeds()
    
            then:
            daemon.assertIdle()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 07:46:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

            executer.requireIsolatedDaemons()
            withDumpAgentStatusTask()
    
            when:
            withAgentApplied(useAgentOnFirstRun)
            succeeds()
    
            then:
            daemons.daemon.becomesIdle()
    
            when:
            withAgentApplied(useAgentOnSecondRun)
            succeeds()
    
            then:
            def expectedDaemonCount = shouldReuseDaemon ? 1 : 2
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/LoggingFileSystemWatchingIntegrationTest.groovy

            withWatchFs().run("assemble")
            then:
            vfsLogs.retainedFilesInCurrentBuild >= 4
            // Make sure the daemon is already idle before making the file changes
            daemon.becomesIdle()
    
            when:
            sourceFile.text = "public class MyClass { private void doStuff() {} }"
            waitForChangesToBePickedUp()
            sourceFile.text = "public class MyClass { private void doStuff1() {} }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

            executer.requireIsolatedDaemons()
    
            when:
            executer.withArguments("-D$NATIVE_SERVICES_OPTION=$firstRunNativeServicesOption")
            succeeds()
    
            then:
            daemons.daemon.becomesIdle()
    
            when:
            executer.withArguments("-D$NATIVE_SERVICES_OPTION=$secondRunNativeServicesOption")
            succeeds()
    
            then:
            daemons.daemons.size() == expectedDaemonCount
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/ProcessCrashHandlingIntegrationTest.groovy

            daemons.daemon.assertBusy()
            client.kill()
    
            then:
            daemons.daemon.becomesCanceled()
    
            when:
            block.releaseAll()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            daemons.daemon.log.contains(DaemonMessages.CANCELED_BUILD)
        }
    
        /**
         * When the daemon is started on *nix, we need to detach it from the terminal session of the parent process,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top