Skip to content

Commit

Permalink
SNOW-1333078: Try to fix maven timeout on CI (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz authored Apr 22, 2024
1 parent 4184f23 commit 035c117
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fi
eval $(jq -r '.testconnection | to_entries | map("export \(.key)=\(.value|tostring)")|.[]' $PARAMETER_FILE)
eval $(jq -r '.orgconnection | to_entries | map("export \(.key)=\(.value|tostring)")|.[]' $PARAMETER_FILE)


if [[ -n "$GITHUB_SHA" ]]; then
# Github Action
export TARGET_SCHEMA_NAME=${RUNNER_TRACKING_ID//-/_}_${GITHUB_SHA}
Expand Down Expand Up @@ -71,7 +70,14 @@ python3 $THIS_DIR/hang_webserver.py 12345&
IFS=','
read -ra CATEGORY <<< "$JDBC_TEST_CATEGORY"

# Avoid connection timeouts
export MAVEN_OPTS="$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"

cd $SOURCE_ROOT

# Avoid connection timeout on plugin dependency fetch or fail-fast when dependency cannot be fetched
mvn --batch-mode --show-version dependency:resolve-plugins

for c in "${CATEGORY[@]}"; do
c=$(echo $c | sed 's/ *$//g')
if [[ "$is_old_driver" == "true" ]]; then
Expand Down

0 comments on commit 035c117

Please sign in to comment.