From a8083563a558479bf87e24119cae0c632d9e95c3 Mon Sep 17 00:00:00 2001 From: Tanzeel Khan Date: Wed, 21 Feb 2024 13:09:36 +0000 Subject: [PATCH 1/2] update create extension line in code coverage with correct params Signed-off-by: Tanzeel Khan --- .github/workflows/code-coverage.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 6d7b86baaa..61f1c75384 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -1,7 +1,5 @@ name: Code Coverage -on: - schedule: - - cron: '0 0 * * *' # runs every midnight +on: [push, pull_request] jobs: run-code-coverage-tests: @@ -82,7 +80,7 @@ jobs: if: always() && steps.install-extensions.outcome == 'success' run: | sudo ~/psql/bin/psql -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -f .github/scripts/cleanup_babelfish_database.sql - sudo ~/psql/bin/psql -v ON_ERROR_STOP=1 -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -v migration_mode="single_db" -f .github/scripts/create_extension.sql + sudo ~/psql/bin/psql -v ON_ERROR_STOP=1 -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -v migration_mode="single-db" -v tsql_port=1433 -v parallel_query_mode=false -f .github/scripts/create_extension.sql sqlcmd -S localhost -U "jdbc_user" -P 12345678 -Q "SELECT @@version GO" - name: Run Python Tests From eb70d9c85553023d28f05f8e0e1bb56d66bca816 Mon Sep 17 00:00:00 2001 From: Tanzeel Khan Date: Wed, 21 Feb 2024 16:09:48 +0000 Subject: [PATCH 2/2] remove temp changes Signed-off-by: Tanzeel Khan --- .github/workflows/code-coverage.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 61f1c75384..583f5e4925 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -1,5 +1,7 @@ name: Code Coverage -on: [push, pull_request] +on: + schedule: + - cron: '0 0 * * *' # runs every midnight jobs: run-code-coverage-tests: