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

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jul 28, 2022

Which issue does this PR close?

re #2149

Rationale for this change

Clean up CI so we don't have to deal with jobs that are not adding value

What changes are included in this PR?

  1. Remove redundeant benchmark check job (it is already covered by other jobs -- I will comment inline)
  2. Remove unecessary environment variables from win/mac jobs
  3. Removes redundant compile checks in parquet crate

Are there any user-facing changes?

No

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jul 28, 2022
# 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 `::`

.github/workflows/parquet.yml Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jul 28, 2022

Codecov Report

Merging #2212 (0598606) into master (8139f7b) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2212      +/-   ##
==========================================
- Coverage   82.57%   82.56%   -0.01%     
==========================================
  Files         239      239              
  Lines       62269    62269              
==========================================
- Hits        51416    51415       -1     
- Misses      10853    10854       +1     
Impacted Files Coverage Δ
parquet_derive/src/parquet_field.rs 65.53% <0.00%> (-0.23%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us.

@alamb alamb marked this pull request as ready for review July 28, 2022 17:40
@@ -76,6 +76,17 @@ jobs:
uses: ./.github/actions/setup-builder
with:
rust-version: stable

# Run different tests for the library on its own as well as
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to clarify the intent of the tests

This also makes it clear (to me) that there should be 8 combinations, and so I also added the missing combination (--all-targets --all-features)

run: |
cargo check -p parquet --no-default-features --features arrow --all-targets
cargo check -p parquet --all-targets --all-features
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a the missing combination

@@ -91,12 +102,15 @@ jobs:
- name: Check compilation --all-targets
run: |
cargo check -p parquet --all-targets
- name: Check compilation --no-default-features --all-targets
- name: Check compilation --all-targets --no-default-features
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved --all-targets to the first part the command line to make it easier to verify that all the combinations were checked

Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
@alamb alamb merged commit 48cc6c3 into apache:master Jul 28, 2022
@alamb alamb deleted the alamb/cleanup_ci branch July 28, 2022 20:04
@ursabot
Copy link

ursabot commented Jul 28, 2022

Benchmark runs are scheduled for baseline = 8139f7b and contender = 48cc6c3. 48cc6c3 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-rs-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants