Skip to content

Commit 48cc6c3

Browse files
alambtustvold
andauthored
remove redundant CI benchmark check, cleanups (#2212)
* remove redundant CI benchmark check, cleanups * cleanup * Clarify the intent of parquet library compilation check, and add missing case * Update .github/workflows/parquet.yml Co-authored-by: Raphael Taylor-Davies <[email protected]> Co-authored-by: Raphael Taylor-Davies <[email protected]>
1 parent 8139f7b commit 48cc6c3

File tree

2 files changed

+18
-37
lines changed

2 files changed

+18
-37
lines changed

.github/workflows/parquet.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ jobs:
7676
uses: ./.github/actions/setup-builder
7777
with:
7878
rust-version: stable
79+
80+
# Run different tests for the library on its own as well as
81+
# all targets to ensure that it still works in the absence of
82+
# features that might be enabled by dev-dependencies of other
83+
# targets.
84+
#
85+
# This for each of (library and all-targets), check
86+
# 1. compiles with default features
87+
# 1. compiles with no default features
88+
# 3. compiles with just arrow feature
89+
# 3. compiles with all features
7990
- name: Check compilation
8091
run: |
8192
cargo check -p parquet
@@ -91,12 +102,15 @@ jobs:
91102
- name: Check compilation --all-targets
92103
run: |
93104
cargo check -p parquet --all-targets
94-
- name: Check compilation --no-default-features --all-targets
105+
- name: Check compilation --all-targets --no-default-features
106+
run: |
107+
cargo check -p parquet --all-targets --no-default-features
108+
- name: Check compilation --all-targets --no-default-features --features arrow
95109
run: |
96-
cargo check -p parquet --no-default-features --all-targets
97-
- name: Check compilation --no-default-features --features-arrow --all-targets
110+
cargo check -p parquet --all-targets --no-default-features --features arrow
111+
- name: Check compilation --all-targets --all-features
98112
run: |
99-
cargo check -p parquet --no-default-features --features arrow --all-targets
113+
cargo check -p parquet --all-targets --all-features
100114
101115
clippy:
102116
name: Clippy

.github/workflows/rust.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -47,36 +47,10 @@ jobs:
4747
- name: Run tests
4848
shell: bash
4949
run: |
50-
export ARROW_TEST_DATA=$(pwd)/testing/data
51-
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data
5250
# do not produce debug symbols to keep memory usage down
5351
export RUSTFLAGS="-C debuginfo=0"
5452
cargo test
5553
56-
check_benches:
57-
name: Check Benchmarks (but don't run them)
58-
runs-on: ubuntu-latest
59-
strategy:
60-
matrix:
61-
arch: [ amd64 ]
62-
rust: [ stable ]
63-
container:
64-
image: ${{ matrix.arch }}/rust
65-
env:
66-
# Disable full debug symbol generation to speed up CI build and keep memory down
67-
# "1" means line tables only, which is useful for panic tracebacks.
68-
RUSTFLAGS: "-C debuginfo=1"
69-
steps:
70-
- uses: actions/checkout@v2
71-
with:
72-
submodules: true
73-
- name: Setup Rust toolchain
74-
uses: ./.github/actions/setup-builder
75-
with:
76-
rust-version: ${{ matrix.rust }}
77-
- name: Check benchmarks
78-
run: |
79-
cargo check --benches --workspace --features test_common,prettyprint,async,experimental
8054
8155
# Run cargo fmt for all crates
8256
lint:
@@ -113,16 +87,9 @@ jobs:
11387
uses: actions/cache@v3
11488
with:
11589
path: /home/runner/.cargo
116-
# this key is not equal because the user is different than on a container (runner vs github)
11790
key: cargo-coverage-cache3-
11891
- name: Run coverage
11992
run: |
120-
export CARGO_HOME="/home/runner/.cargo"
121-
export CARGO_TARGET_DIR="/home/runner/target"
122-
123-
export ARROW_TEST_DATA=$(pwd)/testing/data
124-
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data
125-
12693
rustup toolchain install stable
12794
rustup default stable
12895
cargo install --version 0.18.2 cargo-tarpaulin

0 commit comments

Comments
 (0)