From a3d5e08402e1b8c42c778cb88361d20882516e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Wed, 8 Jan 2025 15:05:10 +0100 Subject: [PATCH] Do not timeout tests locally --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9e0dcb0166..7c6d3a0799 100644 --- a/build.gradle +++ b/build.gradle @@ -99,6 +99,7 @@ allprojects { apply from: script("ide") +boolean isCiServer = System.env["CI"] || System.env["GITHUB_ACTIONS"] subprojects { apply plugin: "java-library" apply plugin: "groovy" @@ -195,7 +196,10 @@ subprojects { } } // As a generous general timeout, instead of the 6h of GHA. - timeout = Duration.ofMinutes(15) + // But only on CI or longer needing debug sessions get killed by the timeout. + if (isCiServer) { + timeout = Duration.ofMinutes(15) + } } tasks.register("allDependencyInsight", DependencyInsightReportTask) {}