From e78e2fa5b346c737c0a6cc73d4b4cda44558486e Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:26:21 -0800 Subject: [PATCH 01/15] Reduce request bursts during snapshot publishing Run snapshot publishing without parallel project execution and give Gradle 10 seconds before the first retry. This gives Sonatype time to recover from throttling while Gradle retries the individual request. --- .github/workflows/publish-snapshot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index ca0e0879..578ef34d 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -33,8 +33,8 @@ jobs: - name: Publish snapshot run: | - ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache - ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache + ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 + ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME_RALF }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD_RALF }} From 2a2b5bc0d079fecb177e230c354bf8840ce9b4fd Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:27:38 -0800 Subject: [PATCH 02/15] Temporarily verify snapshot publishing from PR 311 Run the snapshot publish job on pushes to this pull request so both Gradle builds can exercise the Sonatype upload before merge. --- .github/workflows/publish-snapshot.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 578ef34d..8ccb2a57 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,6 +6,10 @@ on: - main paths-ignore: - '**/*.md' + pull_request: + types: [synchronize] + branches: + - main permissions: contents: read @@ -19,7 +23,12 @@ concurrency: jobs: publish-snapshot: runs-on: ubuntu-latest - if: github.repository == 'vRallev/app-platform' + if: >- + github.repository == 'vRallev/app-platform' && + (github.event_name == 'push' || + (github.event.pull_request.number == 311 && + github.event.pull_request.head.repo.full_name == github.repository && + github.head_ref == 'ralf/slow-snapshot-publishing')) timeout-minutes: 60 steps: From e4d03d2dfd016899495b201323a354a90304530e Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:37:06 -0800 Subject: [PATCH 03/15] Revert "Temporarily verify snapshot publishing from PR 311" This reverts commit 2a2b5bc0d079fecb177e230c354bf8840ce9b4fd. --- .github/workflows/publish-snapshot.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 8ccb2a57..578ef34d 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,10 +6,6 @@ on: - main paths-ignore: - '**/*.md' - pull_request: - types: [synchronize] - branches: - - main permissions: contents: read @@ -23,12 +19,7 @@ concurrency: jobs: publish-snapshot: runs-on: ubuntu-latest - if: >- - github.repository == 'vRallev/app-platform' && - (github.event_name == 'push' || - (github.event.pull_request.number == 311 && - github.event.pull_request.head.repo.full_name == github.repository && - github.head_ref == 'ralf/slow-snapshot-publishing')) + if: github.repository == 'vRallev/app-platform' timeout-minutes: 60 steps: From 9044bf95d58ecb209699c8da43eb58d4496e664a Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:41:17 -0800 Subject: [PATCH 04/15] Extend recovery time for throttled snapshot requests Keep snapshot uploads serial and allow five retries per request. The longer backoff gives Sonatype more time to clear a throttling window without restarting the publication or dropping signatures and checksums. --- .github/workflows/publish-snapshot.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 578ef34d..a6038592 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -20,7 +20,7 @@ jobs: publish-snapshot: runs-on: ubuntu-latest if: github.repository == 'vRallev/app-platform' - timeout-minutes: 60 + timeout-minutes: 90 steps: - uses: actions/checkout@v4 @@ -33,8 +33,10 @@ jobs: - name: Publish snapshot run: | - ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 - ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 + # Give each throttled request up to five retries, with delays from 10 to 160 seconds. + retry_flags=(-Dorg.gradle.internal.network.retry.initial.backOff=10000 -Dorg.gradle.internal.network.retry.max.attempts=6) + ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" + ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME_RALF }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD_RALF }} From 6d2244539c9ac073f41a91b5047fa347d51b72a9 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:41:43 -0800 Subject: [PATCH 05/15] Temporarily test longer snapshot backoff on PR 311 Run publishing on this pull request and log Gradle retry timing to verify how the client handles throttled requests. --- .github/workflows/publish-snapshot.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index a6038592..a10f642a 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,6 +6,10 @@ on: - main paths-ignore: - '**/*.md' + pull_request: + types: [synchronize] + branches: + - main permissions: contents: read @@ -19,7 +23,12 @@ concurrency: jobs: publish-snapshot: runs-on: ubuntu-latest - if: github.repository == 'vRallev/app-platform' + if: >- + github.repository == 'vRallev/app-platform' && + (github.event_name == 'push' || + (github.event.pull_request.number == 311 && + github.event.pull_request.head.repo.full_name == github.repository && + github.head_ref == 'ralf/slow-snapshot-publishing')) timeout-minutes: 90 steps: @@ -35,8 +44,8 @@ jobs: run: | # Give each throttled request up to five retries, with delays from 10 to 160 seconds. retry_flags=(-Dorg.gradle.internal.network.retry.initial.backOff=10000 -Dorg.gradle.internal.network.retry.max.attempts=6) - ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" - ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" + ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel --info "${retry_flags[@]}" + ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel --info "${retry_flags[@]}" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME_RALF }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD_RALF }} From 6dc8914ebc0e89d7a9e3ec6b04762d948e0237d4 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:54:57 -0800 Subject: [PATCH 06/15] Revert "Temporarily test longer snapshot backoff on PR 311" This reverts commit 6d2244539c9ac073f41a91b5047fa347d51b72a9. --- .github/workflows/publish-snapshot.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index a10f642a..a6038592 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,10 +6,6 @@ on: - main paths-ignore: - '**/*.md' - pull_request: - types: [synchronize] - branches: - - main permissions: contents: read @@ -23,12 +19,7 @@ concurrency: jobs: publish-snapshot: runs-on: ubuntu-latest - if: >- - github.repository == 'vRallev/app-platform' && - (github.event_name == 'push' || - (github.event.pull_request.number == 311 && - github.event.pull_request.head.repo.full_name == github.repository && - github.head_ref == 'ralf/slow-snapshot-publishing')) + if: github.repository == 'vRallev/app-platform' timeout-minutes: 90 steps: @@ -44,8 +35,8 @@ jobs: run: | # Give each throttled request up to five retries, with delays from 10 to 160 seconds. retry_flags=(-Dorg.gradle.internal.network.retry.initial.backOff=10000 -Dorg.gradle.internal.network.retry.max.attempts=6) - ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel --info "${retry_flags[@]}" - ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel --info "${retry_flags[@]}" + ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" + ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME_RALF }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD_RALF }} From 2f48e5cfcc19a5c52e50bac40aeae7dfbfcccddd Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:56:06 -0800 Subject: [PATCH 07/15] Pace Sonatype snapshot publications Separate the start of consecutive Sonatype snapshot publications by at least 45 seconds to reduce sustained request volume. Keep the signed artifact set and give the snapshot job time to upload the full catalog at that pace. --- .../pace-snapshot-publishing.init.gradle | 20 +++++++++++++++++++ .github/workflows/publish-snapshot.yml | 9 ++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/gradle/pace-snapshot-publishing.init.gradle diff --git a/.github/gradle/pace-snapshot-publishing.init.gradle b/.github/gradle/pace-snapshot-publishing.init.gradle new file mode 100644 index 00000000..e2b7665d --- /dev/null +++ b/.github/gradle/pace-snapshot-publishing.init.gradle @@ -0,0 +1,20 @@ +import java.util.concurrent.TimeUnit +import org.gradle.api.publish.maven.tasks.PublishToMavenRepository + +// The snapshot workflow runs with --no-parallel. Space out its remote publications. +def publicationInterval = TimeUnit.SECONDS.toNanos(45) +long nextPublication = System.nanoTime() + +gradle.beforeProject { project -> + project.tasks.withType(PublishToMavenRepository).configureEach { publication -> + publication.doFirst { + if (publication.repository.url.toString() == 'https://central.sonatype.com/repository/maven-snapshots/') { + long wait = nextPublication - System.nanoTime() + if (wait > 0) { + TimeUnit.NANOSECONDS.sleep(wait) + } + nextPublication = System.nanoTime() + publicationInterval + } + } + } +} diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index a6038592..5f8fe1f0 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -20,7 +20,7 @@ jobs: publish-snapshot: runs-on: ubuntu-latest if: github.repository == 'vRallev/app-platform' - timeout-minutes: 90 + timeout-minutes: 150 steps: - uses: actions/checkout@v4 @@ -33,10 +33,9 @@ jobs: - name: Publish snapshot run: | - # Give each throttled request up to five retries, with delays from 10 to 160 seconds. - retry_flags=(-Dorg.gradle.internal.network.retry.initial.backOff=10000 -Dorg.gradle.internal.network.retry.max.attempts=6) - ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" - ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache --no-parallel "${retry_flags[@]}" + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) + ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" + ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_PORTAL_USERNAME_RALF }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PORTAL_PASSWORD_RALF }} From cb7708d22bfb6376b841e446946baccfef826189 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 15:56:26 -0800 Subject: [PATCH 08/15] Temporarily test paced snapshot publishing on PR 311 Run the paced snapshot workflow on this pull request and record retry timing and the runner egress address for diagnosis. --- .github/workflows/publish-snapshot.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 5f8fe1f0..3537de69 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,6 +6,10 @@ on: - main paths-ignore: - '**/*.md' + pull_request: + types: [synchronize] + branches: + - main permissions: contents: read @@ -13,13 +17,18 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "snapshot-upload" + group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: github.repository == 'vRallev/app-platform' + if: >- + github.repository == 'vRallev/app-platform' && + (github.event_name == 'push' || + (github.event.pull_request.number == 311 && + github.event.pull_request.head.repo.full_name == github.repository && + github.head_ref == 'ralf/slow-snapshot-publishing')) timeout-minutes: 150 steps: @@ -33,7 +42,8 @@ jobs: - name: Publish snapshot run: | - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) + curl --fail --silent --max-time 10 https://central.sonatype.com/cdn-cgi/trace | sed -n 's/^ip=/Sonatype egress IP /p' || true + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: From a7397f4651ce7982e9aaeb14945ded0446172db8 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 17:59:06 -0800 Subject: [PATCH 09/15] Revert "Temporarily test paced snapshot publishing on PR 311" This reverts commit cb7708d22bfb6376b841e446946baccfef826189. --- .github/workflows/publish-snapshot.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 3537de69..5f8fe1f0 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,10 +6,6 @@ on: - main paths-ignore: - '**/*.md' - pull_request: - types: [synchronize] - branches: - - main permissions: contents: read @@ -17,18 +13,13 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} + group: "snapshot-upload" cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: >- - github.repository == 'vRallev/app-platform' && - (github.event_name == 'push' || - (github.event.pull_request.number == 311 && - github.event.pull_request.head.repo.full_name == github.repository && - github.head_ref == 'ralf/slow-snapshot-publishing')) + if: github.repository == 'vRallev/app-platform' timeout-minutes: 150 steps: @@ -42,8 +33,7 @@ jobs: - name: Publish snapshot run: | - curl --fail --silent --max-time 10 https://central.sonatype.com/cdn-cgi/trace | sed -n 's/^ip=/Sonatype egress IP /p' || true - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: From 1977570de6ba222043fe2f3a1e080d0de666b83b Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 18:06:05 -0800 Subject: [PATCH 10/15] Shorten the interval between snapshot publications Start each publication at least 25 seconds apart so the full catalog can publish sooner while retaining request pacing and the complete signed artifact set. --- .github/gradle/pace-snapshot-publishing.init.gradle | 2 +- .github/workflows/publish-snapshot.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/gradle/pace-snapshot-publishing.init.gradle b/.github/gradle/pace-snapshot-publishing.init.gradle index e2b7665d..cee70047 100644 --- a/.github/gradle/pace-snapshot-publishing.init.gradle +++ b/.github/gradle/pace-snapshot-publishing.init.gradle @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit import org.gradle.api.publish.maven.tasks.PublishToMavenRepository // The snapshot workflow runs with --no-parallel. Space out its remote publications. -def publicationInterval = TimeUnit.SECONDS.toNanos(45) +def publicationInterval = TimeUnit.SECONDS.toNanos(25) long nextPublication = System.nanoTime() gradle.beforeProject { project -> diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 5f8fe1f0..0b8b7773 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -20,7 +20,7 @@ jobs: publish-snapshot: runs-on: ubuntu-latest if: github.repository == 'vRallev/app-platform' - timeout-minutes: 150 + timeout-minutes: 100 steps: - uses: actions/checkout@v4 From 384b455b10549d05aad0f8e221e39b4397b7b1c8 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 18:06:22 -0800 Subject: [PATCH 11/15] Temporarily verify the shorter snapshot interval on PR 311 Publish from this pull request with Gradle retry logging to verify the 25-second interval against the Sonatype snapshot endpoint. --- .github/workflows/publish-snapshot.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 0b8b7773..8f978974 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,6 +6,10 @@ on: - main paths-ignore: - '**/*.md' + pull_request: + types: [synchronize] + branches: + - main permissions: contents: read @@ -13,13 +17,18 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "snapshot-upload" + group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: github.repository == 'vRallev/app-platform' + if: >- + github.repository == 'vRallev/app-platform' && + (github.event_name == 'push' || + (github.event.pull_request.number == 311 && + github.event.pull_request.head.repo.full_name == github.repository && + github.head_ref == 'ralf/slow-snapshot-publishing')) timeout-minutes: 100 steps: @@ -33,7 +42,7 @@ jobs: - name: Publish snapshot run: | - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: From 98f63633f6a8dd64d365628de8b254efb39a6a45 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 18:15:36 -0800 Subject: [PATCH 12/15] Revert "Temporarily verify the shorter snapshot interval on PR 311" This reverts commit 384b455b10549d05aad0f8e221e39b4397b7b1c8. --- .github/workflows/publish-snapshot.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 8f978974..0b8b7773 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,10 +6,6 @@ on: - main paths-ignore: - '**/*.md' - pull_request: - types: [synchronize] - branches: - - main permissions: contents: read @@ -17,18 +13,13 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} + group: "snapshot-upload" cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: >- - github.repository == 'vRallev/app-platform' && - (github.event_name == 'push' || - (github.event.pull_request.number == 311 && - github.event.pull_request.head.repo.full_name == github.repository && - github.head_ref == 'ralf/slow-snapshot-publishing')) + if: github.repository == 'vRallev/app-platform' timeout-minutes: 100 steps: @@ -42,7 +33,7 @@ jobs: - name: Publish snapshot run: | - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: From e2929f64bce3125fb1a36d1800927f7b3056c04f Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 18:15:49 -0800 Subject: [PATCH 13/15] Allow more recovery time between snapshot publications Use a 30-second interval after Sonatype throttled the 25-second validation run. The longer interval still removes about 40 minutes of waiting from a full catalog compared with 45 seconds. --- .github/gradle/pace-snapshot-publishing.init.gradle | 2 +- .github/workflows/publish-snapshot.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/gradle/pace-snapshot-publishing.init.gradle b/.github/gradle/pace-snapshot-publishing.init.gradle index cee70047..eb9e5267 100644 --- a/.github/gradle/pace-snapshot-publishing.init.gradle +++ b/.github/gradle/pace-snapshot-publishing.init.gradle @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit import org.gradle.api.publish.maven.tasks.PublishToMavenRepository // The snapshot workflow runs with --no-parallel. Space out its remote publications. -def publicationInterval = TimeUnit.SECONDS.toNanos(25) +def publicationInterval = TimeUnit.SECONDS.toNanos(30) long nextPublication = System.nanoTime() gradle.beforeProject { project -> diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 0b8b7773..d84cec46 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -20,7 +20,7 @@ jobs: publish-snapshot: runs-on: ubuntu-latest if: github.repository == 'vRallev/app-platform' - timeout-minutes: 100 + timeout-minutes: 110 steps: - uses: actions/checkout@v4 From 609d582f86ff8ddbccaf0b38e294132e9ed552b7 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 18:06:22 -0800 Subject: [PATCH 14/15] Temporarily verify the shorter snapshot interval on PR 311 Publish from this pull request with Gradle retry logging to verify the 25-second interval against the Sonatype snapshot endpoint. --- .github/workflows/publish-snapshot.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index d84cec46..a510f23e 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,6 +6,10 @@ on: - main paths-ignore: - '**/*.md' + pull_request: + types: [synchronize] + branches: + - main permissions: contents: read @@ -13,13 +17,18 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "snapshot-upload" + group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: github.repository == 'vRallev/app-platform' + if: >- + github.repository == 'vRallev/app-platform' && + (github.event_name == 'push' || + (github.event.pull_request.number == 311 && + github.event.pull_request.head.repo.full_name == github.repository && + github.head_ref == 'ralf/slow-snapshot-publishing')) timeout-minutes: 110 steps: @@ -33,7 +42,7 @@ jobs: - name: Publish snapshot run: | - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: From 00c60510bedd24b9723de4a904ea7883af637a64 Mon Sep 17 00:00:00 2001 From: Ralf Wondratschek Date: Thu, 12 Nov 2026 19:38:48 -0800 Subject: [PATCH 15/15] Revert "Temporarily verify the shorter snapshot interval on PR 311" This reverts commit 609d582f86ff8ddbccaf0b38e294132e9ed552b7. --- .github/workflows/publish-snapshot.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index a510f23e..d84cec46 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -6,10 +6,6 @@ on: - main paths-ignore: - '**/*.md' - pull_request: - types: [synchronize] - branches: - - main permissions: contents: read @@ -17,18 +13,13 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: ${{ (github.event_name == 'push' || github.event.pull_request.number == 311) && 'snapshot-upload' || github.run_id }} + group: "snapshot-upload" cancel-in-progress: false jobs: publish-snapshot: runs-on: ubuntu-latest - if: >- - github.repository == 'vRallev/app-platform' && - (github.event_name == 'push' || - (github.event.pull_request.number == 311 && - github.event.pull_request.head.repo.full_name == github.repository && - github.head_ref == 'ralf/slow-snapshot-publishing')) + if: github.repository == 'vRallev/app-platform' timeout-minutes: 110 steps: @@ -42,7 +33,7 @@ jobs: - name: Publish snapshot run: | - publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000 --info) + publish_flags=(--init-script "$PWD/.github/gradle/pace-snapshot-publishing.init.gradle" --no-parallel -Dorg.gradle.internal.network.retry.initial.backOff=10000) ./gradlew clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" ./gradlew -p gradle-plugin clean publish -PRELEASE_SIGNING_ENABLED=true --no-build-cache --stacktrace --show-version --no-configuration-cache "${publish_flags[@]}" env: