Skip to content

Commit 19427ce

Browse files
authored
Fix connection resets in CI for Maven (feast-dev#1164)
* Fix connection resets in Maven Signed-off-by: Willem Pienaar <git@willem.co> * Enable debug mode * Move debug flag to MAVEN_EXTRA_OPTS
1 parent fb46663 commit 19427ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/complete.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,11 @@ jobs:
153153
maven-version: 3.6.3
154154
- name: build-jar
155155
env:
156-
# Try to add retries to prevent download failure
156+
# Try to add retries to prevent connection resets
157157
# https://github.community/t/getting-maven-could-not-transfer-artifact-with-500-error-when-using-github-actions/17570
158-
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3
158+
# https://github.com/actions/virtual-environments/issues/1499#issuecomment-718396233
159+
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
160+
MAVEN_EXTRA_OPTS: -X
159161
run: make build-java-no-tests REVISION=${GITHUB_SHA}
160162
- name: copy to gs
161163
run: gsutil cp ./spark/ingestion/target/feast-ingestion-spark-${GITHUB_SHA}.jar gs://feast-jobs/spark/ingestion/

0 commit comments

Comments
 (0)