-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Disable duckdb tests while caching has issues (#3157)
- Loading branch information
Showing
4 changed files
with
38 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
target: | ||
type: string | ||
default: "" | ||
features: | ||
type: string | ||
default: "" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
@@ -42,7 +45,7 @@ jobs: | |
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: ${{ env.version }} | ||
shared-key: rust-${{ inputs.target}} | ||
shared-key: rust-${{ inputs.target }}-${{ inputs.features }} | ||
save-if: ${{ github.ref == 'refs/heads/main' }} | ||
- name: 📎 Clippy | ||
uses: richb-hanover/[email protected] | ||
|
@@ -51,22 +54,9 @@ jobs: | |
# Note that `--all-targets` doesn't refer to targets like | ||
# `wasm32-unknown-unknown`; it refers to lib / bin / tests etc. | ||
# | ||
# Autoformatting doesn't make this clear to read, but this tertiary | ||
# expression states to run: | ||
# - External DB integration tests — `--features=test-dbs-external` | ||
# on Linux | ||
# - No features on Windows | ||
# - Internal DB integration tests — `--features=test-dbs` otherwise | ||
# | ||
# Below, we also add: | ||
# - Unreferenced snapshots - `--unreferenced=auto` on Linux | ||
# | ||
# We'd like to reenable on Windows, ref https://github.com/wangfenjin/duckdb-rs/issues/179. | ||
args: > | ||
--all-targets --target=${{ inputs.target }} --features=${{ | ||
inputs.target == 'x86_64-unknown-linux-gnu' && 'test-dbs-external' | ||
|| inputs.target != 'x86_64-pc-windows-msvc' && 'test-dbs' || '' }} | ||
-- -D warnings | ||
inputs.features }} -- -D warnings | ||
- name: ⌨️ Fmt | ||
uses: richb-hanover/[email protected] | ||
with: | ||
|
@@ -80,9 +70,7 @@ jobs: | |
command: test | ||
args: > | ||
--no-run --locked --target=${{ inputs.target }} --features=${{ | ||
inputs.target == 'x86_64-unknown-linux-gnu' && 'test-dbs-external' | ||
|| inputs.target != 'x86_64-pc-windows-msvc' && 'test-dbs' || '' }} | ||
}} | ||
inputs.features }} | ||
- name: Run docker compose | ||
run: docker compose up -d | ||
working-directory: ./crates/prql-compiler/tests/integration | ||
|
@@ -97,9 +85,10 @@ jobs: | |
uses: richb-hanover/[email protected] | ||
with: | ||
command: insta | ||
# See Compile step for explanation of args | ||
# Here, we also add: | ||
# - Unreferenced snapshots - `--unreferenced=auto` when testing on | ||
# linux & with `test-dbs` feature. | ||
args: > | ||
test --target=${{ inputs.target }} --features=${{ inputs.target == | ||
'x86_64-unknown-linux-gnu' && 'test-dbs-external' || inputs.target | ||
!= 'x86_64-pc-windows-msvc' && 'test-dbs' || '' }} ${{ inputs.target | ||
== 'x86_64-unknown-linux-gnu' && '--unreferenced=auto' || '' }} | ||
test --target=${{ inputs.target }} --features=${{ inputs.features }} | ||
${{ contains(inputs.features, 'test-dbs') && inputs.target == | ||
'x86_64-unknown-linux-gnu' && '--unreferenced=auto' || '' }} |