Skip to content

Commit 9bd3bfc

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 5d2802f commit 9bd3bfc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,42 @@ jobs:
3939
- uses: actions/checkout@v4
4040
- uses: ./.github/actions/setup
4141
- run: cargo test --features tpch --test tpch_validation_test
42+
- name: Clean up test data
43+
run: |
44+
rm -rf testdata/tpch/data/*
45+
df -h
46+
47+
tpcds-randomized-test:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
with:
52+
lfs: true
53+
- uses: ./.github/actions/setup
54+
- name: Install DuckDB CLI
55+
run: |
56+
curl https://install.duckdb.org | sh
57+
mkdir -p $HOME/.local/bin
58+
mv /home/runner/.duckdb/cli/latest/duckdb $HOME/.local/bin/
59+
echo "$HOME/.local/bin" >> $GITHUB_PATH
60+
- name: Run TPC-DS randomized test
61+
id: test
62+
run: cargo test --features tpcds --test tpc_ds_randomized
63+
continue-on-error: true
64+
- name: Upload test artifacts on failure
65+
if: failure() || steps.test.outcome == 'failure'
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: tpcds-test-artifacts-${{ github.run_id }}
69+
path: testdata/tpcds/data/**
70+
retention-days: 7
71+
if-no-files-found: ignore
72+
- name: Clean up test data
73+
run: |
74+
rm -rf testdata/tpcds/data/*
75+
rm -f $HOME/.local/bin/duckdb
76+
rm -rf /home/runner/.duckdb
77+
df -h
4278
4379
format-check:
4480
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)