This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch ci/publish-retry-timeout-7.0.x in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 908d2f082e6eccbb8678316dd02d53e07cd84ef4 Author: James Daugherty <[email protected]> AuthorDate: Thu Jul 9 11:41:10 2026 -0400 ci: raise publish retry timeout to give slow Nexus uploads headroom The publish job wraps the Gradle publish command (--no-build-cache --rerun-tasks) in the nick-fields/retry action with a per-attempt timeout_seconds: 1200 (20 min). That command does a full from-scratch recompile plus groovydoc/javadoc for 60+ modules and uploads to Apache Nexus, which legitimately runs ~14-20+ min. When the build runs cold or Nexus uploads are slow, a single attempt exceeds 20 min and is killed mid-publish even though it is making healthy progress, forcing a wasteful retry on every snapshot publish (see run 28983551993, job 86011906888: attempt 1 killed on a pure timeout, attempt 2 succeeded). Raise timeout_seconds to 1800 (30 min) to match the fix already applied to 8.0.x in 82946a2ca8, while keeping max_attempts: 3 / retry_wait_seconds: 180 for genuine transient read-timeouts. --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3284e504fc..58ef649045 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -641,7 +641,7 @@ jobs: MAVEN_PUBLISH_USERNAME: ${{ secrets.NEXUS_USER }} MAVEN_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PW }} with: - timeout_seconds: 1200 # normal range 14min if build is not cached (no tests running) + timeout_seconds: 1800 # normal range ~14min uncached (no tests); headroom for slow Nexus uploads so a single attempt is not killed mid-publish max_attempts: 3 # Attempts to address: Could not write to resource 'https://repository.apache.org/content/repositories/snapshots/...' Read timed out retry_wait_seconds: 180 command: ./gradlew publish aggregateChecksums aggregatePublishedArtifacts --no-build-cache --rerun-tasks
