Skip to content

Commit

Permalink
chore(testing-drivers): add retry for failures during drivers matrix …
Browse files Browse the repository at this point in the history
…tests (#8735)

This happens from time to time due to various reasons like docker hub image pull timeouts and other errors. This helps in such a cases.
  • Loading branch information
KSDaemon authored Sep 24, 2024
1 parent 73d9314 commit 37a6682
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/drivers-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ jobs:
yarn tsc
- name: Run tests
uses: nick-fields/retry@v3
env:
# Athena
DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }}
Expand All @@ -255,7 +256,12 @@ jobs:
# Snowflake
DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_USER }}
DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS: ${{ secrets.DRIVERS_TESTS_CUBEJS_DB_SNOWFLAKE_PASS }}
run: |
cd ./packages/cubejs-testing-drivers
export DEBUG=testcontainers
yarn ${{ matrix.database }}-full
with:
max_attempts: 3
retry_on: error
retry_wait_seconds: 15
timeout_minutes: 20
command: |
cd ./packages/cubejs-testing-drivers
export DEBUG=testcontainers
yarn ${{ matrix.database }}-full

0 comments on commit 37a6682

Please sign in to comment.