From c25a3bbf460124c559a9ba2aa2d6e3111f77bdcc Mon Sep 17 00:00:00 2001 From: Alex Kasko Date: Mon, 21 Oct 2024 06:59:57 +0100 Subject: [PATCH] Make maven invocation in GitHub actions less verbose (#2698) This change adds the following flags to Maven invocation in GitHub actions JDBC test runs: -B, --batch-mode: suppresses Progress messages -ntp,--no-transfer-progress: suppresses Downloading messages Signed-off-by: Alex Kasko --- .../composite-actions/minor-version-upgrade-util/action.yml | 4 ++-- .github/composite-actions/run-jdbc-tests/action.yml | 4 ++-- .github/composite-actions/run-verify-tests/action.yml | 4 ++-- .github/composite-actions/setup-base-version/action.yml | 4 ++-- .github/workflows/jdbc-tests-db-collation.yml | 4 ++-- .../jdbc-tests-with-non-default-server-collation.yml | 2 +- .github/workflows/jdbc-tests-with-parallel-query.yml | 2 +- .github/workflows/major-version-upgrade.yml | 2 +- .github/workflows/minor-version-upgrade.yml | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/composite-actions/minor-version-upgrade-util/action.yml b/.github/composite-actions/minor-version-upgrade-util/action.yml index d242507416..9987f20f65 100644 --- a/.github/composite-actions/minor-version-upgrade-util/action.yml +++ b/.github/composite-actions/minor-version-upgrade-util/action.yml @@ -79,11 +79,11 @@ runs: tar_dir="latest" fi export inputFilesPath=upgrade/$tar_dir/verification_cleanup/$base_dir - mvn test + mvn -B -ntp test export inputFilesPath=input for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do sed -i "s/\b$filename[ ]*\b$/$filename-vu-verify\\n$filename-vu-cleanup/g" upgrade/$base_dir/schedule done export scheduleFile=upgrade/$base_dir/schedule - mvn test + mvn -B -ntp test shell: bash diff --git a/.github/composite-actions/run-jdbc-tests/action.yml b/.github/composite-actions/run-jdbc-tests/action.yml index 78e28dffbf..0dad6546e7 100644 --- a/.github/composite-actions/run-jdbc-tests/action.yml +++ b/.github/composite-actions/run-jdbc-tests/action.yml @@ -22,9 +22,9 @@ runs: cd test/JDBC/ if [[ '${{ inputs.migration_mode }}' == 'single-db' ]];then export isSingleDbMode=true - mvn test + mvn -B -ntp test unset isSingleDbMode else - mvn test + mvn -B -ntp test fi shell: bash diff --git a/.github/composite-actions/run-verify-tests/action.yml b/.github/composite-actions/run-verify-tests/action.yml index aaf86c53fc..be4596bb17 100644 --- a/.github/composite-actions/run-verify-tests/action.yml +++ b/.github/composite-actions/run-verify-tests/action.yml @@ -61,7 +61,7 @@ runs: export inputFilesPath=upgrade/singledb/verification_cleanup fi - mvn test + mvn -B -ntp test export inputFilesPath=input # Skip test BABEL-404 for previous versions while testing dump/restore since it specifies @@ -74,7 +74,7 @@ runs: sed -i "s/\b$filename[ ]*\b$/$filename-vu-verify\\n$filename-vu-cleanup/g" upgrade/$base_dir/schedule done export scheduleFile=upgrade/$base_dir/schedule - mvn test + mvn -B -ntp test shell: bash - name: Cleanup babelfish database diff --git a/.github/composite-actions/setup-base-version/action.yml b/.github/composite-actions/setup-base-version/action.yml index 283a40a337..30a312fe45 100644 --- a/.github/composite-actions/setup-base-version/action.yml +++ b/.github/composite-actions/setup-base-version/action.yml @@ -191,7 +191,7 @@ runs: fi export inputFilesPath=upgrade/$base_dir/preparation - mvn test + mvn -B -ntp test # Skip test BABEL-404 for previous versions while testing dump/restore since it specifies # contraint column ordering which is expected to fail after fix for BABEL-4888 @@ -211,7 +211,7 @@ runs: sed -i "s/\b$filename[ ]*\b$/$filename-vu-prepare/g" upgrade/$base_dir/schedule done export scheduleFile=upgrade/$base_dir/schedule - mvn test + mvn -B -ntp test shell: bash - uses: actions/checkout@v2 diff --git a/.github/workflows/jdbc-tests-db-collation.yml b/.github/workflows/jdbc-tests-db-collation.yml index f639bef202..c3082fdc89 100644 --- a/.github/workflows/jdbc-tests-db-collation.yml +++ b/.github/workflows/jdbc-tests-db-collation.yml @@ -65,7 +65,7 @@ jobs: sudo ~/${{env.INSTALL_DIR}}/bin/psql -v ON_ERROR_STOP=1 -d jdbc_testdb -U runner -c "select default_collation from sys.babelfish_sysdatabases where name = 'master';" cd test/JDBC/ export isdbCollationMode=true - mvn test + mvn -B -ntp test unset isdbCollationMode - name: Start secondary server @@ -96,7 +96,7 @@ jobs: cd test/JDBC/ export isdbCollationMode=true export inputFilesPath=replication - mvn test + mvn -B -ntp test unset isdbCollationMode - name: Cleanup babelfish database diff --git a/.github/workflows/jdbc-tests-with-non-default-server-collation.yml b/.github/workflows/jdbc-tests-with-non-default-server-collation.yml index b68306edf4..5ee0a0325e 100644 --- a/.github/workflows/jdbc-tests-with-non-default-server-collation.yml +++ b/.github/workflows/jdbc-tests-with-non-default-server-collation.yml @@ -65,7 +65,7 @@ jobs: cd test/JDBC/ # set env variable serverCollationName to current server collation name export serverCollationName=${{ env.SERVER_COLLATION_NAME }} - mvn test + mvn -B -ntp test # reset env variable unset serverCollationName diff --git a/.github/workflows/jdbc-tests-with-parallel-query.yml b/.github/workflows/jdbc-tests-with-parallel-query.yml index eb629f2fa4..390f2f0246 100644 --- a/.github/workflows/jdbc-tests-with-parallel-query.yml +++ b/.github/workflows/jdbc-tests-with-parallel-query.yml @@ -62,7 +62,7 @@ jobs: cd test/JDBC/ # set env variable isParallelQueryMode to true to let jdbc know not to run tests of file parallel_query_jdbc_schedule export isParallelQueryMode=true - mvn test + mvn -B -ntp test # reset env variable unset isParallelQueryMode diff --git a/.github/workflows/major-version-upgrade.yml b/.github/workflows/major-version-upgrade.yml index f24052db69..98aa5f27f8 100644 --- a/.github/workflows/major-version-upgrade.yml +++ b/.github/workflows/major-version-upgrade.yml @@ -223,7 +223,7 @@ jobs: cd test/JDBC/ # temporarily ignore test BABEL-2086 echo 'ignore#!#BABEL-2086' >> jdbc_schedule - mvn test + mvn -B -ntp test - name: Upload Postgres log if: always() && steps.jdbc.outcome == 'failure' diff --git a/.github/workflows/minor-version-upgrade.yml b/.github/workflows/minor-version-upgrade.yml index 06b7bbed34..6a29ca0807 100644 --- a/.github/workflows/minor-version-upgrade.yml +++ b/.github/workflows/minor-version-upgrade.yml @@ -146,7 +146,7 @@ jobs: export PATH=~/${{env.INSTALL_DIR}}/bin:$PATH export PG_SRC=~/work/babelfish_extensions/postgresql_modified_for_babelfish cd test/JDBC/ - mvn test + mvn -B -ntp test - name: Upload Log if: always() && steps.jdbc.outcome == 'failure'