Skip to content

Commit 2b5a4b7

Browse files
committed
ci: enable info logging in publish workflow as a debugging aid
To find out why publishing sporadically fails, this commit enabled Gradle info logging in the publish workflow. Gradle would log HTTP request retries on this level and maybe they are the source of our sporadic redeployment issues. Info level should be safe to stay enabled as it does not leak credentials or something else.
1 parent 3d41891 commit 2b5a4b7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ jobs:
2929
- name: Use tag as version
3030
run: echo "${GITHUB_REF#refs/*/}" > version.txt
3131
- name: Build and Publish Artifacts
32+
# We run gradle with --info to debug the ongoing random publishing
33+
# issues. Gradle would log upload retries on info level:
34+
# https://github.com/gradle/gradle/blob/2e843f089f969940e505e69eb0742ed4fbf67993/platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java#L64
35+
# Maybe retries are the source of our duplicate publication attempts.
3236
run: >-
3337
./gradlew --build-cache build publish
38+
--info
3439
-PciBuild=true
3540
-Partifacts.itemis.cloud.user=${{ secrets.ARTIFACTS_ITEMIS_CLOUD_USER }}
3641
-Partifacts.itemis.cloud.pw=${{ secrets.ARTIFACTS_ITEMIS_CLOUD_PW }}

0 commit comments

Comments
 (0)