Skip to content

Commit

Permalink
Avoid Azure timeouts by producing output during :checker:test task
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Apr 25, 2024
1 parent 7a94969 commit c970683
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,18 @@ subprojects {
// Run tests in parallel, except on CI where it seems to lead to flaky failures.
// The TF_BUILD environment variable is set to 'True' for jobs running on Azure Pipelines.
if (!System.getenv('TF_BUILD')?.equals('True')) {
// Not running under Azure Pipelines CI.
maxParallelForks = Integer.MAX_VALUE
} else {
// Running under Azure Pipelines CI.

// Azure seems to time out when a task doesn't produce periodic output.
if (project.name.is('checker')) {
testLogging {
events "started", "skipped", "failed"
displayGranularity 3
}
}
}

if (project.name.is('checker')) {
Expand Down

0 comments on commit c970683

Please sign in to comment.