Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove redundant CI benchmark check, cleanups #2212

Merged
merged 5 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/workflows/parquet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,17 @@ jobs:
with:
rust-version: stable
- name: Check compilation
run: |
alamb marked this conversation as resolved.
Show resolved Hide resolved
cargo check -p parquet
- name: Check compilation --no-default-features
run: |
cargo check -p parquet --no-default-features
- name: Check compilation --no-default-features --features arrow
run: |
cargo check -p parquet --no-default-features --features arrow
- name: Check compilation --no-default-features --all-features
run: |
cargo check -p parquet --all-features
- name: Check compilation --all-targets
run: |
cargo check -p parquet --all-targets
- name: Check compilation --no-default-features --all-targets
run: |
cargo check -p parquet --no-default-features --all-targets
- name: Check compilation --no-default-features --features-arrow --all-targets
- name: Check compilation --no-default-features --features arrow --all-targets
run: |
cargo check -p parquet --no-default-features --features arrow --all-targets
- name: Check compilation --all-features --all-targets
run: |
cargo check -p parquet --all-features --all-targets

clippy:
name: Clippy
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,10 @@ jobs:
- name: Run tests
shell: bash
run: |
export ARROW_TEST_DATA=$(pwd)/testing/data
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data
# do not produce debug symbols to keep memory usage down
export RUSTFLAGS="-C debuginfo=0"
cargo test

check_benches:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is some evidence that this is already covered

When I broke an arrow benchmark:

echo "fff" >> arrow/benches/string_dictionary_builder.rs

Then I ran the check that is part of arrow:

cargo check -p arrow --all-targets

cargo check -p arrow --all-targets
    Checking arrow v19.0.0 (/Users/alamb/Software/arrow-rs2/arrow)
error: expected one of `!` or `::`, found `<eof>`
  --> arrow/benches/string_dictionary_builder.rs:71:1
   |
71 | fff
   | ^^^ expected one of `!` or `::`

error: could not compile `arrow` due to previous error
warning: build failed, waiting for other jobs to finish...

Similarly, when I broke parquet

echo "ggg" >> parquet/benches/arrow_reader.rs 

A check run by the parquet tests also finds it

cargo check -p parquet --all-features --all-targets
   Compiling parquet v19.0.0 (/Users/alamb/Software/arrow-rs2/parquet)
error: expected one of `!` or `::`, found `<eof>`
   --> parquet/benches/arrow_reader.rs:695:1
    |
695 | ggg
    | ^^^ expected one of `!` or `::`

name: Check Benchmarks (but don't run them)
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ amd64 ]
rust: [ stable ]
container:
image: ${{ matrix.arch }}/rust
env:
# Disable full debug symbol generation to speed up CI build and keep memory down
# "1" means line tables only, which is useful for panic tracebacks.
RUSTFLAGS: "-C debuginfo=1"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ matrix.rust }}
- name: Check benchmarks
run: |
cargo check --benches --workspace --features test_common,prettyprint,async,experimental

lint:
name: Lint (cargo fmt)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,16 +82,9 @@ jobs:
uses: actions/cache@v3
with:
path: /home/runner/.cargo
# this key is not equal because the user is different than on a container (runner vs github)
key: cargo-coverage-cache3-
- name: Run coverage
run: |
export CARGO_HOME="/home/runner/.cargo"
export CARGO_TARGET_DIR="/home/runner/target"

export ARROW_TEST_DATA=$(pwd)/testing/data
export PARQUET_TEST_DATA=$(pwd)/parquet-testing/data

rustup toolchain install stable
rustup default stable
cargo install --version 0.18.2 cargo-tarpaulin
Expand Down