Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2.4k
[CI] Improve windows machine CI test time#8730
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
ea3a46a9342986d05723286ab44914e65faf36935a194f2893c6b5bb8df67863041701File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -99,6 +99,14 @@ jobs: | ||
| rust-version: stable | ||
| - name: Run tests (excluding doctests) | ||
| run: cargo test --lib --tests --bins --features avro,json,backtrace | ||
| env: | ||
| # do not produce debug symbols to keep memory usage down | ||
| # hardcoding other profile params to avoid profile override values | ||
| # More on Cargo profiles https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | ||
| RUSTFLAGS: "-C debuginfo=0 -C opt-level=0 -C incremental=false -C codegen-units=256" | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think some of these flags are already enabled, technically? Just for Linux though, not Mac/Windows (Well debuginfo was set to 0, not sure on incremental) ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thats good point, I would like to have configuration in a single place which is | ||
| RUST_BACKTRACE: "1" | ||
| # avoid rust stack overflows on tpc-ds tests | ||
| RUST_MINSTACK: "3000000" | ||
| - name: Verify Working Directory Clean | ||
| run: git diff --exit-code | ||
| @@ -290,6 +298,7 @@ jobs: | ||
| # with a OS-dependent path. | ||
| - name: Setup Rust toolchain | ||
| run: | | ||
| rustup update stable | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the update here strictly necessary? Or should already be covered as part of the toolchain install below? ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'll check it, maybe its not needed. | ||
| rustup toolchain install stable | ||
| rustup default stable | ||
| rustup component add rustfmt | ||
| @@ -302,9 +311,13 @@ jobs: | ||
| cargo test --lib --tests --bins --all-features | ||
| env: | ||
| # do not produce debug symbols to keep memory usage down | ||
| RUSTFLAGS: "-C debuginfo=0" | ||
| # use higher optimization level to overcome Windows rust slowness for tpc-ds | ||
| # and speed builds: https://github.com/apache/arrow-datafusion/issues/8696 | ||
| # Cargo profile docs https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | ||
| RUSTFLAGS: "-C debuginfo=0 -C opt-level=1 -C target-feature=+crt-static -C incremental=false -C codegen-units=256" | ||
comphead marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| RUST_BACKTRACE: "1" | ||
| # avoid rust stack overflows on tpc-ds tests | ||
| RUST_MINSTACK: "3000000" | ||
| macos: | ||
| name: cargo test (mac) | ||
| runs-on: macos-latest | ||
| @@ -327,6 +340,7 @@ jobs: | ||
| # with a OS-dependent path. | ||
| - name: Setup Rust toolchain | ||
| run: | | ||
| rustup update stable | ||
| rustup toolchain install stable | ||
| rustup default stable | ||
| rustup component add rustfmt | ||
| @@ -338,8 +352,12 @@ jobs: | ||
| cargo test --lib --tests --bins --all-features | ||
| env: | ||
| # do not produce debug symbols to keep memory usage down | ||
| RUSTFLAGS: "-C debuginfo=0" | ||
| # hardcoding other profile params to avoid profile override values | ||
| # More on Cargo profiles https://doc.rust-lang.org/cargo/reference/profiles.html?profile-settings#profile-settings | ||
| RUSTFLAGS: "-C debuginfo=0 -C opt-level=0 -C incremental=false -C codegen-units=256" | ||
| RUST_BACKTRACE: "1" | ||
| # avoid rust stack overflows on tpc-ds tests | ||
| RUST_MINSTACK: "3000000" | ||
Comment on lines
+359
to
+360
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels like something we should fix in tpc-ds tests, instead of accounting for it after the fact (I know I've had some trouble running those tests locally due to stack issue, so could happen to others) ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that is true, during testing I saw spontaneous stack overflow issue on physical q54 TPC-DS test, that was the reason to bump the stack size. But I agree its good to create a follow up ticket and figure out why q54 is not the same as others, maybe the bigger problem is behind it. | ||
| test-datafusion-pyarrow: | ||
| name: cargo test pyarrow (amd64) | ||
Uh oh!
There was an error while loading. Please reload this page.