Skip to content

Commit

Permalink
Do not timeout tests locally (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire authored Jan 12, 2025
1 parent 8017fc3 commit f7204d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {}
Expand Down

0 comments on commit f7204d4

Please sign in to comment.