Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
region: "us-east-1"
db_suffix: ${{ format('{0}_{1}', matrix.os, matrix.python-version) }}

- name: Restore cached failed tests
id: cache-tests-restore
uses: actions/cache/restore@v3
with:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ runner.os }}-pytest-restore-failed-${{ github.ref }}-${{ github.sha }}

- name: Run integration tests
env:
USER_NAME: ${{ secrets.FIREBOLT_USERNAME }}
Expand All @@ -66,7 +74,16 @@ jobs:
ACCOUNT_NAME: "firebolt"
FIREBOLT_BASE_URL: "api.dev.firebolt.io"
run: |
pytest -o log_cli=true -o log_cli_level=INFO --junit-xml=report/junit.xml tests/integration
pytest --last-failed -o log_cli=true -o log_cli_level=INFO --junit-xml=report/junit.xml tests/integration

- name: Save failed tests
id: cache-tests-save
uses: actions/cache/save@v3
if: failure()
with:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}

- name: Slack Notify of failure
if: failure()
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/python-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
api-endpoint: "api.dev.firebolt.io"
region: "us-east-1"

- name: Restore cached failed tests
id: cache-tests-restore
uses: actions/cache/restore@v3
with:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ runner.os }}-pytest-restore-failed-${{ github.ref }}-${{ github.sha }}

- name: Run integration tests
env:
USER_NAME: ${{ secrets.FIREBOLT_USERNAME }}
Expand All @@ -42,4 +50,13 @@ jobs:
STOPPED_ENGINE_URL: ${{ steps.setup.outputs.stopped_engine_url }}
FIREBOLT_BASE_URL: "api.dev.firebolt.io"
run: |
pytest -o log_cli=true -o log_cli_level=INFO tests/integration
pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration

- name: Save failed tests
id: cache-tests-save
uses: actions/cache/save@v3
if: failure()
with:
path: |
.pytest_cache/v/cache/lastfailed
key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }}