Skip to content

Commit 73aff20

Browse files
Resolve conflicts
2 parents 851e0bb + baba4f1 commit 73aff20

32 files changed

Lines changed: 604 additions & 1499 deletions

File tree

.github/workflows/test.yml

Lines changed: 27 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
4242
- name: Setup Rust Toolchain
4343
uses: ./.github/actions/setup-rust
44-
- name: Run tests (ex-FlightSQL)
44+
- name: Run core tests
4545
run: |
4646
cargo test
4747
test-flightsql:
@@ -146,31 +146,6 @@ jobs:
146146
- name: Run Deltalake tests
147147
run: |
148148
cargo test --features=deltalake extension_cases::deltalake
149-
test-hudi:
150-
name: Extension / Hudi
151-
runs-on: ubuntu-latest
152-
strategy:
153-
matrix:
154-
arch: [amd64]
155-
steps:
156-
- uses: actions/checkout@v2
157-
with:
158-
submodules: true
159-
- name: Cache Cargo
160-
uses: actions/cache@v4
161-
with:
162-
path: /home/runner/.cargo
163-
key: cargo-dft-cache-
164-
- name: Cache Rust dependencies
165-
uses: actions/cache@v4
166-
with:
167-
path: target
168-
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
169-
- name: Setup Rust Toolchain
170-
uses: ./.github/actions/setup-rust
171-
- name: Run Hudi tests
172-
run: |
173-
cargo test --features=hudi extension_cases::hudi
174149
test-udfs-wasm:
175150
name: Extension / UDFs-WASM
176151
runs-on: ubuntu-latest
@@ -271,8 +246,8 @@ jobs:
271246
- name: Run UDFs WASM tests
272247
run: |
273248
cargo test --manifest-path crates/datafusion-udfs-wasm/Cargo.toml
274-
test-auth-basic:
275-
name: Extension / Auth-Basic
249+
test-auth:
250+
name: Extension / Auth
276251
runs-on: ubuntu-latest
277252
strategy:
278253
matrix:
@@ -293,38 +268,21 @@ jobs:
293268
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
294269
- name: Setup Rust Toolchain
295270
uses: ./.github/actions/setup-rust
296-
- name: Start FlightSQL Server
271+
# Right now basic and bearer auth can not be used at the same time. So we serve an instance with one, then kill it, then serve an instance with another. An alternative, perhaps simpler option, would be configuring the ports used - but this would come at the cost of a more annoying local dev experience as you have to remember to keep updating the ports.
272+
- name: Start FlightSQL Server with Basic Auth
297273
run: |
298-
cargo r --features=flightsql -- serve-flightsql --config data/configs/flightsql_basic.toml &
299-
- name: Run auth tests
274+
cargo r --features=flightsql -- serve-flightsql --config data/configs/flightsql_basic.toml & echo $! > server.pid
275+
- name: Run Basic Auth tests
300276
run: |
301277
cargo t --features=flightsql extension_cases::auth_basic
302-
test-auth-bearer:
303-
name: Extension / Auth-Bearer
304-
runs-on: ubuntu-latest
305-
strategy:
306-
matrix:
307-
arch: [amd64]
308-
steps:
309-
- uses: actions/checkout@v2
310-
with:
311-
submodules: true
312-
- name: Cache Cargo
313-
uses: actions/cache@v4
314-
with:
315-
path: /home/runner/.cargo
316-
key: cargo-dft-cache-
317-
- name: Cache Rust dependencies
318-
uses: actions/cache@v4
319-
with:
320-
path: target
321-
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
322-
- name: Setup Rust Toolchain
323-
uses: ./.github/actions/setup-rust
324-
- name: Start FlightSQL Server
278+
- name: Kill FlightSQL Server
279+
run: |
280+
kill $(cat server.pid)
281+
rm server.pid
282+
- name: Start FlightSQL Server with Bearer Auth
325283
run: |
326284
cargo r --features=flightsql -- serve-flightsql --config data/configs/flightsql_bearer.toml &
327-
- name: Run auth tests
285+
- name: Run Bearer Auth tests
328286
run: |
329287
cargo t --features=flightsql extension_cases::auth_bearer
330288
test-http-server:
@@ -349,11 +307,17 @@ jobs:
349307
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
350308
- name: Setup Rust Toolchain
351309
uses: ./.github/actions/setup-rust
352-
- name: Run auth tests
310+
- name: Start FlightSQL Server
353311
run: |
354-
cargo t --features=http server::http::router::test
355-
test-http-server-flightsql:
356-
name: Extension / HTTP Server (FlightSQL)
312+
cargo r --features=flightsql -- serve-flightsql &
313+
- name: Run tests
314+
run: |
315+
cargo t --features=http,flightsql server::http::router
316+
- name: Run CLI cases
317+
run: |
318+
cargo t --features=http,flightsql server_cases::http
319+
test-flightsql-server:
320+
name: Extension / FlightSQL Server
357321
runs-on: ubuntu-latest
358322
strategy:
359323
matrix:
@@ -370,13 +334,10 @@ jobs:
370334
- name: Cache Rust dependencies
371335
uses: actions/cache@v4
372336
with:
373-
path: /home/runner/target
374-
key: target-dft-cache-
337+
path: target
338+
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
375339
- name: Setup Rust Toolchain
376340
uses: ./.github/actions/setup-rust
377-
- name: Start FlightSQL Server
378-
run: |
379-
cargo r --features=flightsql -- serve-flight-sql &
380-
- name: Run auth tests
341+
- name: Run CLI cases
381342
run: |
382-
cargo t --features=http server::http::router::flightsql_test
343+
cargo t --features=http,flightsql server_cases::http

0 commit comments

Comments
 (0)