Skip to content

Commit

Permalink
SNOW-1333078: Add maven opts to the test script
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Apr 17, 2024
1 parent eaf6463 commit 43c78b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
TARGET_DOCKER_TEST_IMAGE: ${{ matrix.image }}
JDBC_TEST_CATEGORY: ${{ matrix.category }}
ADDITIONAL_MAVEN_PROFILE: ${{ matrix.additionalMavenProfile }}
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
run: ./ci/test.sh

test-linux-old-driver:
Expand All @@ -79,6 +78,5 @@ jobs:
CLOUD_PROVIDER: ${{ matrix.cloud }}
TARGET_DOCKER_TEST_IMAGE: ${{ matrix.image }}
JDBC_TEST_CATEGORY: ${{ matrix.category }}
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
is_old_driver: ${{ matrix.is_old_driver }}
run: ./ci/test.sh
4 changes: 3 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,6 +70,9 @@ python3 $THIS_DIR/hang_webserver.py 12345&
IFS=','
read -ra CATEGORY <<< "$JDBC_TEST_CATEGORY"

# Avoid connection timeout
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
for c in "${CATEGORY[@]}"; do
c=$(echo $c | sed 's/ *$//g')
Expand Down

0 comments on commit 43c78b7

Please sign in to comment.