Skip to content

Commit 1a3260f

Browse files
add tpcds-randomized-test to ci
This commit adds tpcds-randomized-test to ci. It relies on the duckdb cli for tpc-ds database generation. It also saves the artifacts if the test fails so we can reproduce issues.
1 parent 128cd83 commit 1a3260f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,33 @@ jobs:
4040
- uses: ./.github/actions/setup
4141
- run: cargo test --features tpch --test tpch_validation_test
4242

43+
tpcds-randomized-test:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
with:
48+
lfs: true
49+
- uses: ./.github/actions/setup
50+
- name: Install DuckDB CLI
51+
run: curl https://install.duckdb.org | sh
52+
- name: Add DuckDB to PATH
53+
run: |
54+
mkdir -p $HOME/.local/bin
55+
mv duckdb $HOME/.local/bin/
56+
echo "$HOME/.local/bin" >> $GITHUB_PATH
57+
- name: Run TPC-DS randomized test
58+
id: test
59+
run: cargo test --features tpcds --test tpc_ds_randomized
60+
continue-on-error: true
61+
- name: Upload test artifacts on failure
62+
if: failure() || steps.test.outcome == 'failure'
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: tpcds-test-artifacts-${{ github.run_id }}
66+
path: testdata/tpcds/data/**
67+
retention-days: 7
68+
if-no-files-found: ignore
69+
4370
format-check:
4471
runs-on: ubuntu-latest
4572
steps:

0 commit comments

Comments
 (0)