From 044ce8d77324209488364f25222accce08f8e2be Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 18 Nov 2022 12:07:20 +0100 Subject: [PATCH] Tweak Maven wagon settings to try to prevent connection timeouts downloading dependencies on GA (#15504) Closes #15503 --- .github/workflows/ci.yml | 1 + .github/workflows/codeql-java-analysis.yml | 3 +++ .github/workflows/codeql-js-adapter-analysis.yml | 3 +++ .github/workflows/codeql-theme-analysis.yml | 3 +++ .github/workflows/operator-ci.yml | 1 + .github/workflows/snyk.yml | 1 + 6 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7daa1939a..7e377f7d4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ on: env: DEFAULT_JDK_VERSION: 11 + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 concurrency: # Only run once for latest commit per ref and cancel other (previous) runs. diff --git a/.github/workflows/codeql-java-analysis.yml b/.github/workflows/codeql-java-analysis.yml index 3965acd3c1..76a20c528b 100644 --- a/.github/workflows/codeql-java-analysis.yml +++ b/.github/workflows/codeql-java-analysis.yml @@ -23,6 +23,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + jobs: analyze: name: CodeQL analyze diff --git a/.github/workflows/codeql-js-adapter-analysis.yml b/.github/workflows/codeql-js-adapter-analysis.yml index cff32d81b2..bc1f0911e1 100644 --- a/.github/workflows/codeql-js-adapter-analysis.yml +++ b/.github/workflows/codeql-js-adapter-analysis.yml @@ -23,6 +23,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + jobs: analyze: name: CodeQL analyze diff --git a/.github/workflows/codeql-theme-analysis.yml b/.github/workflows/codeql-theme-analysis.yml index ac9f20e3d0..6c33d4c34c 100644 --- a/.github/workflows/codeql-theme-analysis.yml +++ b/.github/workflows/codeql-theme-analysis.yml @@ -23,6 +23,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + jobs: analyze: name: CodeQL analyze diff --git a/.github/workflows/operator-ci.yml b/.github/workflows/operator-ci.yml index 5174e8c379..4027419cd9 100644 --- a/.github/workflows/operator-ci.yml +++ b/.github/workflows/operator-ci.yml @@ -14,6 +14,7 @@ env: JDK_VERSION: 11 MINIKUBE_VERSION: "v1.24.0" KUBERNETES_VERSION: "v1.22.3" + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 concurrency: # Only run once for latest commit per ref and cancel other (previous) runs. diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 651ed5d497..6cbe52d1ab 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -6,6 +6,7 @@ on: env: DEFAULT_JDK_VERSION: 11 + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 jobs: quarkus: