-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to run JDBC tests in parallel query mode for BABEL_2_X_D…
…EV (#1932) This pull request introduces a new GitHub workflow check in BABEL_2_X_DEV branch designed to execute JDBC tests in parallel query mode. The primary objective of this GitHub check is to verify the execution of JDBC tests with parallel query mode enabled. Presently, certain JDBC tests are encountering issues, such as crashes, failures, or timeouts when executed with parallel query mode enabled. These problematic tests have been excluded from this workflow check. As we work towards resolving these issues in the future, we will gradually remove these excluded tests from the scheduling file. Note - In BABEL_2_X_DEV branch there are more specific problematic tests that crashes/fails in Github workflow and not reproducible locally. Added such tests in parallel_query_jdbc_schedule to ignore for now. Task: BABEL-4451 Signed-off-by: Sandeep Kumawat <[email protected]>
- Loading branch information
1 parent
17a7631
commit ffe8aca
Showing
10 changed files
with
648 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: JDBC Tests With Parallel Query | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
run-babelfish-jdbc-tests-with-parallel-query-mode: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
id: checkout | ||
|
||
- name: Install Dependencies | ||
id: install-dependencies | ||
if: always() | ||
uses: ./.github/composite-actions/install-dependencies | ||
|
||
- name: Build Modified Postgres | ||
id: build-modified-postgres | ||
if: always() && steps.install-dependencies.outcome == 'success' | ||
uses: ./.github/composite-actions/build-modified-postgres | ||
|
||
- name: Compile ANTLR | ||
id: compile-antlr | ||
if: always() && steps.build-modified-postgres.outcome == 'success' | ||
uses: ./.github/composite-actions/compile-antlr | ||
|
||
- name: Build Extensions | ||
id: build-extensions | ||
if: always() && steps.compile-antlr.outcome == 'success' | ||
uses: ./.github/composite-actions/build-extensions | ||
|
||
- name: Install Extensions | ||
id: install-extensions | ||
if: always() && steps.build-extensions.outcome == 'success' | ||
uses: ./.github/composite-actions/install-extensions | ||
with: | ||
parallel_query_mode: true | ||
|
||
- name: Run JDBC Tests | ||
id: jdbc | ||
if: always() && steps.install-extensions.outcome == 'success' | ||
timeout-minutes: 60 | ||
run: | | ||
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 | ||
# reset env variable | ||
unset isParallelQueryMode | ||
- name: Cleanup babelfish database | ||
id: cleanup | ||
if: always() && steps.install-extensions.outcome == 'success' | ||
run: | | ||
sudo ~/postgres/bin/psql -d postgres -U runner -v user="jdbc_user" -v db="jdbc_testdb" -f .github/scripts/cleanup_babelfish_database.sql | ||
- name: Upload Log | ||
if: always() && steps.jdbc.outcome == 'failure' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: postgres-log | ||
path: ~/psql/data/logfile | ||
|
||
# The test summary files contain paths with ':' characters, which is not allowed with the upload-artifact actions | ||
- name: Rename Test Summary Files | ||
id: test-file-rename | ||
if: always() && steps.jdbc.outcome == 'failure' | ||
run: | | ||
cd test/JDBC/Info | ||
timestamp=`ls -Art | tail -n 1` | ||
cd $timestamp | ||
mv $timestamp.diff ../output-diff.diff | ||
mv "$timestamp"_runSummary.log ../run-summary.log | ||
- name: Upload Run Summary | ||
if: always() && steps.test-file-rename == 'success' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: run-summary.log | ||
path: test/JDBC/Info/run-summary.log | ||
|
||
- name: Upload Output Diff | ||
if: always() && steps.jdbc.outcome == 'failure' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: output-diff.diff | ||
path: test/JDBC/Info/output-diff.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.