From bda1bf402c4072a3dd60c8e4c772f260196f85f0 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 2 Jan 2025 19:14:06 +0000 Subject: [PATCH] Add timeout + logging to try and debug issue --- build.gradle | 7 ++++++- .../fabricmc/loom/test/integration/RunConfigTest.groovy | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d63f04364..db58217e4 100644 --- a/build.gradle +++ b/build.gradle @@ -270,6 +270,11 @@ test { maxRetries = 3 } } + + testLogging { + // Log everything to the console + setEvents(TestLogEvent.values().toList()) + } } // Workaround https://github.com/gradle/gradle/issues/25898 @@ -283,7 +288,7 @@ tasks.withType(Test).configureEach { } -import org.gradle.api.internal.artifacts.configurations.ConfigurationRoles +import org.gradle.api.tasks.testing.logging.TestLogEvent import org.gradle.util.GradleVersion import org.w3c.dom.Document import org.w3c.dom.Element diff --git a/src/test/groovy/net/fabricmc/loom/test/integration/RunConfigTest.groovy b/src/test/groovy/net/fabricmc/loom/test/integration/RunConfigTest.groovy index 95a340307..916bf3fd2 100644 --- a/src/test/groovy/net/fabricmc/loom/test/integration/RunConfigTest.groovy +++ b/src/test/groovy/net/fabricmc/loom/test/integration/RunConfigTest.groovy @@ -24,7 +24,10 @@ package net.fabricmc.loom.test.integration +import java.util.concurrent.TimeUnit + import spock.lang.Specification +import spock.lang.Timeout import spock.lang.Unroll import spock.util.environment.RestoreSystemProperties @@ -156,6 +159,7 @@ class RunConfigTest extends Specification implements GradleProjectTestTrait { version << STANDARD_TEST_VERSIONS } + @Timeout(value = 10, unit = TimeUnit.MINUTES) @Unroll // XVFB is installed on the CI for this test def "prod client (gradle #version)"() {