-
Notifications
You must be signed in to change notification settings - Fork 42
263 lines (232 loc) · 7.52 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: build-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Format
run: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly
cargo +nightly fmt --check
- name: Lint
run: cargo clippy --all --all-features -- --deny warnings
build:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_KEY }}
submodules: 'true'
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Standard tests
run: cargo test -- --skip slt_datasource_ --skip slt_tpch --skip slt_tpcds --skip slt_hybrid
# TODO
# - name: SLTs Hybrid
# run: cargo test slt_hybrid
- name: SLTs Parquet
env:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
run: cargo test slt_datasource_parquet
# - name: SLTs CSV
# env:
# AWS_KEY: ${{ secrets.AWS_KEY }}
# AWS_SECRET: ${{ secrets.AWS_SECRET }}
# run: cargo test slt_datasource_csv
- name: SLTs Delta
env:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
run: cargo test slt_datasource_delta
- name: SLTs Iceberg
env:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
run: cargo test slt_datasource_iceberg
- name: SLTs Postgres
run: |
./scripts/create-test-postgres-db.sh
cargo test slt_datasource_postgres
- name: SLTs TPC-H SF=0.1
env:
DEBUG_PRINT_EXPLAIN: 1
DEBUG_PRINT_PROFILE_DATA: 1
run: |
cargo test slt/tpch
- name: SLTs TPC-DS SF=0.1
env:
DEBUG_PRINT_EXPLAIN: 1
DEBUG_PRINT_PROFILE_DATA: 1
run: |
cargo test slt/tpcds/describe_files
# cargo test slt/tpcds/q01
# cargo test slt/tpcds/q02
# cargo test slt/tpcds/q03
# cargo test slt/tpcds/q04
# cargo test slt/tpcds/q05
# cargo test slt/tpcds/q06
# cargo test slt/tpcds/q07
# cargo test slt/tpcds/q08
# cargo test slt/tpcds/q09
# cargo test slt/tpcds/q10
# cargo test slt/tpcds/q11
# cargo test slt/tpcds/q12
# cargo test slt/tpcds/q13
# cargo test slt/tpcds/q14
# cargo test slt/tpcds/q15
# cargo test slt/tpcds/q16
# cargo test slt/tpcds/q17
# cargo test slt/tpcds/q18
# cargo test slt/tpcds/q19
# cargo test slt/tpcds/q20
# cargo test slt/tpcds/q21
# cargo test slt/tpcds/q22
# cargo test slt/tpcds/q23
# cargo test slt/tpcds/q24
# cargo test slt/tpcds/q25
# cargo test slt/tpcds/q26
# cargo test slt/tpcds/q27
# cargo test slt/tpcds/q28
# cargo test slt/tpcds/q29
# cargo test slt/tpcds/q30
# cargo test slt/tpcds/q31
# cargo test slt/tpcds/q32
# cargo test slt/tpcds/q33
# cargo test slt/tpcds/q34
# cargo test slt/tpcds/q35
# cargo test slt/tpcds/q36
# cargo test slt/tpcds/q37
# cargo test slt/tpcds/q38
# cargo test slt/tpcds/q39
# cargo test slt/tpcds/q40
# cargo test slt/tpcds/q41
# cargo test slt/tpcds/q42
# cargo test slt/tpcds/q43
# cargo test slt/tpcds/q44
# cargo test slt/tpcds/q45
# cargo test slt/tpcds/q46
# cargo test slt/tpcds/q47
# cargo test slt/tpcds/q48
# cargo test slt/tpcds/q49
# cargo test slt/tpcds/q50
# cargo test slt/tpcds/q51
# cargo test slt/tpcds/q52
# cargo test slt/tpcds/q53
# cargo test slt/tpcds/q54
# cargo test slt/tpcds/q55
# cargo test slt/tpcds/q56
# cargo test slt/tpcds/q57
# cargo test slt/tpcds/q58
# cargo test slt/tpcds/q59
# cargo test slt/tpcds/q60
# cargo test slt/tpcds/q61
# cargo test slt/tpcds/q62
# cargo test slt/tpcds/q63
# cargo test slt/tpcds/q64
# cargo test slt/tpcds/q65
# cargo test slt/tpcds/q66
# cargo test slt/tpcds/q67
# cargo test slt/tpcds/q68
# cargo test slt/tpcds/q69
# cargo test slt/tpcds/q70
# cargo test slt/tpcds/q71
# cargo test slt/tpcds/q72
# cargo test slt/tpcds/q73
# cargo test slt/tpcds/q74
# cargo test slt/tpcds/q75
# cargo test slt/tpcds/q76
# cargo test slt/tpcds/q77
# cargo test slt/tpcds/q78
# cargo test slt/tpcds/q79
# cargo test slt/tpcds/q80
# cargo test slt/tpcds/q81
# cargo test slt/tpcds/q82
# cargo test slt/tpcds/q83
# cargo test slt/tpcds/q84
# cargo test slt/tpcds/q85
# cargo test slt/tpcds/q86
# cargo test slt/tpcds/q87
# cargo test slt/tpcds/q88
# cargo test slt/tpcds/q89
# cargo test slt/tpcds/q90
# cargo test slt/tpcds/q91
# cargo test slt/tpcds/q92
# cargo test slt/tpcds/q93
# cargo test slt/tpcds/q94
# cargo test slt/tpcds/q95
# cargo test slt/tpcds/q96
# cargo test slt/tpcds/q97
# cargo test slt/tpcds/q98
# cargo test slt/tpcds/q99
- name: SLTs Clickbench truncated
run: |
cargo test slt/clickbench
miri:
name: Run Miri
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Run Miri
run: ./scripts/run_miri.sh
coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov -p rayexec_execution --lcov --output-path lcov.info
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
with:
file: lcov.info
wasm:
name: Build wasm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build wasm
run: wasm-pack build crates/rayexec_wasm/ --scope glaredb