Skip to content

Commit a8aa80d

Browse files
committed
test
Signed-off-by: Joe Isaacs <[email protected]>
1 parent c74286e commit a8aa80d

File tree

4 files changed

+36
-15
lines changed

4 files changed

+36
-15
lines changed

.github/actions/setup-rust/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ runs:
5353
- name: Rust Compile Cache
5454
uses: mozilla-actions/[email protected]
5555

56-
- name: Export Path
57-
shell: bash
58-
run: echo "PATH=$PATH" >> $GITHUB_ENV
59-
6056
- name: Install Protoc (for lance-encoding build step)
6157
if: runner.os != 'Windows'
6258
uses: arduino/setup-protoc@v3

.github/workflows/ci.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,22 @@ jobs:
4444
4545
python-lint:
4646
name: "Python (lint)"
47-
runs-on: ubuntu-latest
47+
runs-on:
48+
- runs-on=${{ github.run_id }}
49+
- family=m7i+m7i-flex+m7a
50+
- cpu=16
51+
- image=ubuntu24-full-x64
52+
- extras=s3-cache
53+
- tag=python-lint
4854
timeout-minutes: 120
4955
steps:
56+
- uses: runs-on/action@v2
57+
with:
58+
sccache: s3
5059
- uses: actions/checkout@v6
60+
- uses: ./.github/actions/setup-rust
61+
with:
62+
repo-token: ${{ secrets.GITHUB_TOKEN }}
5163
- name: Install uv
5264
uses: spiraldb/actions/.github/actions/[email protected]
5365
with:
@@ -64,11 +76,20 @@ jobs:
6476

6577
python-test:
6678
name: "Python (test)"
67-
runs-on: ubuntu-latest
79+
runs-on:
80+
- runs-on=${{ github.run_id }}
81+
- family=m7i+m7i-flex+m7a
82+
- cpu=16
83+
- image=ubuntu24-full-x64
84+
- extras=s3-cache
85+
- tag=python-test
6886
timeout-minutes: 120
6987
env:
7088
RUST_LOG: "info,uv=debug"
7189
steps:
90+
- uses: runs-on/action@v2
91+
with:
92+
sccache: s3
7293
- uses: actions/checkout@v6
7394
- uses: ./.github/actions/setup-rust
7495
with:
@@ -256,7 +277,9 @@ jobs:
256277
- name: Rust Lint - Format
257278
run: cargo +nightly fmt --all --check
258279
- name: Rustc check
259-
run: cargo check --locked --all-features --all-targets
280+
run: RUSTFLAGS="-D warnings" cargo check --locked --all-features --all-targets
281+
- name: Rustc check (release)
282+
run: RUSTFLAGS="-D warnings" cargo check --locked --all-features --all-targets --release
260283
- name: Rust Lint - Clippy All Features
261284
run: cargo clippy --locked --all-features --all-targets -- -D warnings
262285
- name: Rust Lint - Clippy Default Features

vortex-array/src/arrays/dict/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use vortex_dtype::PType;
77
use vortex_dtype::match_each_integer_ptype;
88
use vortex_error::VortexExpect;
99
use vortex_error::VortexResult;
10-
use vortex_error::VortexUnwrap;
1110
use vortex_error::vortex_bail;
1211
use vortex_error::vortex_ensure;
1312
use vortex_mask::AllOr;
@@ -81,6 +80,7 @@ impl DictArray {
8180

8281
#[cfg(debug_assertions)]
8382
{
83+
use vortex_error::VortexUnwrap;
8484
self.validate_all_values_referenced().vortex_unwrap()
8585
}
8686

vortex-array/src/expr/vtable.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ use vortex_dtype::DType;
1515
use vortex_error::VortexExpect;
1616
use vortex_error::VortexResult;
1717
use vortex_error::vortex_bail;
18-
use vortex_error::vortex_ensure;
1918
use vortex_error::vortex_err;
2019
use vortex_vector::Vector;
2120
use vortex_vector::VectorOps;
22-
use vortex_vector::vector_matches_dtype;
2321

2422
use crate::ArrayRef;
2523
use crate::expr::ExprId;
@@ -318,11 +316,15 @@ impl<V: VTable> DynExprVTable for VTableAdapter<V> {
318316

319317
// In debug mode, validate that the output dtype matches the expected return dtype.
320318
#[cfg(debug_assertions)]
321-
vortex_ensure!(
322-
vector_matches_dtype(&result, &expected_dtype),
323-
"Expression execution invalid for dtype {}",
324-
expected_dtype
325-
);
319+
{
320+
use vortex_error::vortex_ensure;
321+
use vortex_vector::vector_matches_dtype;
322+
vortex_ensure!(
323+
vector_matches_dtype(&result, &expected_dtype),
324+
"Expression execution invalid for dtype {}",
325+
expected_dtype
326+
);
327+
}
326328

327329
Ok(result)
328330
}

0 commit comments

Comments
 (0)