Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for expectConcurrent (0.68 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationBuildOperationIntegrationTest.groovy

                        }
                    }
                """
            }
            def numWorkers = (parallelTaskCount / 2) + 2 as int
    
            when:
            server.expectConcurrent(numWorkers, ["parallel-task-done"] * parallelTaskCount + ["before-interrupt"] as String[])
            fails('parallelTask', '--parallel', ':interrupting', "--console=plain", "--max-workers=${numWorkers}", '--continue')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:46:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildSourceBuilderIntegrationTest.groovy

                }
            }
    
            task build2(type:BuildSrcTask) {
                doLast {
                    ${server.callFromBuild('build2')}
                }
            }
            """
    
            server.expectConcurrent("build1", "build2")
    
            when:
            // https://github.com/gradle/gradle-private/issues/3639 warmup to avoid potential timeout.
            executer.withTasks("warmup").run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginSyntheticIntegrationTest.kt

                    }
                """
                )
                withPrecompiledKotlinScript("some.gradle.kts", """plugins { id("applied-output") }""")
    
                server.expectConcurrent("blockStart", "unblockStart")
                server.expectConcurrent("blockStop", "unblockStop")
    
                build(":concurrentTask", ":compileKotlin").apply {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 07:16:19 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/GradleBuildTaskIntegrationTest.groovy

                task log { }
            """
    
            def runs = GradleContextualExecuter.isConfigCache() ? 2 : 1
            runs.times {
                barrier.expectConcurrent("child-build-started", "1-started", "2-started")
                barrier.expectConcurrent("child-build-finished", "1-finished", "2-finished")
            }
    
            when:
            runs.times {
                executer.withArgument("--parallel")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TaskProgressCrossVersionSpec.groovy

                }
    
                task para1(type:ParTask)
                task para2(type:ParTask)
                task parallelTasks(dependsOn:[para1,para2])
            """
            server.expectConcurrent("para1", "para2")
    
            when:
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/DestroyerTaskCommandLineOrderIntegrationTest.groovy

            def generate = rootBuild.task('generate').dependsOn(generateBar).dependsOn(generateFoo)
    
            server.start()
    
            writeAllFiles()
    
            expect:
            2.times {
                server.expectConcurrent(cleanFoo.path, cleanBarLocal.path)
    
                args '--parallel', '--max-workers=2'
                succeeds(clean.path, cleanBarLocal.path, generate.path)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 14:13:02 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

                }
            });
        }
    
        /**
         * Expects the given requests to be made concurrently. Blocks each request until they have all been received then releases them all.
         */
        public void expectConcurrent(String... expectedRequests) {
            List<ResourceExpectation> expectations = new ArrayList<>();
            for (String request : expectedRequests) {
                expectations.add(doGet(request));
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

                    doLast {
                        new URL("${getUrl('started')}\${buildNum.get()}").text
                    }
                }
            """
    
            when:
            server.expectConcurrent("started1", "started2")
            def gradle1 = executer.withTasks("block").withArguments("--debug", "-PbuildNum=1").start()
            def gradle2 = executer.withTasks("block").withArguments("--debug", "-PbuildNum=2").start()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskFailureIntegrationTest.groovy

                        throw new RuntimeException("broken")
                    }
                }
                processResources.dependsOn(broken)
            """
            server.expectConcurrent("buildA", "buildB")
    
            when:
            fails(buildA, "assemble")
    
            then:
            result.assertTaskExecuted(":broken")
            result.assertTaskExecuted(":buildB:broken")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 08 20:51:23 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/rich/RichConsoleBasicGroupedTaskLoggingFunctionalTest.groovy

            then:
            handle.waitForAllPendingCalls()
            assertOutputContains(gradle, "longRunning has started...")
    
            when:
            server.expectConcurrent('longRunningFinish', 'task2')
            handle.releaseAll()
            result = gradle.waitForFinish()
    
            then:
            result.groupedOutput.task(':a:longRunning').outputs.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top