-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): heavy integration to use large dataset (#429)
* chore(tests): heavy integration to use large dataset * fix(cfg): `lazy_static` persists across calls (bad), and is not needed (#431) * chore(tests): heavy integration tests to use large dataset
- Loading branch information
1 parent
773acc6
commit e8ef5b1
Showing
9 changed files
with
259 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[profile.default] | ||
retries = { backoff = "exponential", count = 2, delay = "2s", jitter = true } | ||
|
||
[[profile.default.overrides]] | ||
filter = 'test(heavy_integration_test)' | ||
retries = 0 |
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 |
---|---|---|
@@ -1,45 +1,52 @@ | ||
name: heavy integration | ||
|
||
on: | ||
schedule: | ||
# Runs at 10PM utc | ||
- cron: "0 22 * * *" | ||
workflow_dispatch: | ||
schedule: | ||
# Runs at 10PM utc | ||
- cron: "0 22 * * *" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
heavy-integration: | ||
name: heavy (long-running) integration tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
heavy-integration: | ||
name: heavy (long-running) integration tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@nextest | ||
- name: Run Tests | ||
run: | | ||
cargo nextest r --no-fail-fast --release --nocapture -- --ignored | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@nextest | ||
- name: Fetch Dataset | ||
run: | | ||
# download from https://jbecker.dev/data/largest1k.tar.gz | ||
wget https://jbecker.dev/data/largest1k.tar.gz | ||
# If any of the jobs fail, this will create a high-priority issue to signal so. | ||
issue: | ||
name: Open an issue | ||
runs-on: ubuntu-latest | ||
needs: heavy-integration | ||
if: ${{ failure() }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WORKFLOW_URL: | | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
with: | ||
update_existing: true | ||
filename: .github/INTEGRATION_FAILURE.md | ||
# extract the dataset | ||
tar -xvf largest1k.tar.gz | ||
- name: Run Tests | ||
run: | | ||
cargo nextest r --no-fail-fast --release --nocapture -- --ignored | ||
# If any of the jobs fail, this will create a high-priority issue to signal so. | ||
issue: | ||
name: Open an issue | ||
runs-on: ubuntu-latest | ||
needs: heavy-integration | ||
if: ${{ failure() }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WORKFLOW_URL: | | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
with: | ||
update_existing: true | ||
filename: .github/INTEGRATION_FAILURE.md |
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 |
---|---|---|
|
@@ -34,3 +34,5 @@ false/* | |
|
||
*.svg | ||
*.sh | ||
|
||
largest1k |
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
Oops, something went wrong.