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

ARROW-3868: [Rust] Switch to nightly Rust for required build, stable is now allowed to fail #3034

Closed
wants to merge 9 commits into from

Conversation

andygrove
Copy link
Member

No description provided.

@andygrove andygrove requested a review from wesm November 26, 2018 15:28
@paddyhoran
Copy link
Contributor

@andygrove changes will be needed to windows CI also, right?

@andygrove
Copy link
Member Author

@paddyhoran @sunchao This is ready for review again. The build failed on the R build but the Rust one passed.

@codecov-io
Copy link

Codecov Report

Merging #3034 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3034      +/-   ##
=========================================
- Coverage   87.07%     87%   -0.08%     
=========================================
  Files         496     496              
  Lines       70600   70602       +2     
=========================================
- Hits        61477   61427      -50     
- Misses       9024    9074      +50     
- Partials       99     101       +2
Impacted Files Coverage Δ
rust/src/csv/reader.rs 87.5% <100%> (+0.12%) ⬆️
rust/src/tensor.rs 93.11% <100%> (ø) ⬆️
rust/src/buffer.rs 93.53% <100%> (+0.02%) ⬆️
go/arrow/math/int64_avx2_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/memory/memory_avx2_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/float64_avx2_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/uint64_avx2_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/float64_amd64.go 33.33% <0%> (-33.34%) ⬇️
go/arrow/math/int64_amd64.go 33.33% <0%> (-33.34%) ⬇️
go/arrow/math/uint64_amd64.go 33.33% <0%> (-33.34%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54b0af8...ef0f068. Read the comment docs.


# raises on any formatting errors
#rustup component add rustfmt-preview
#cargo fmt --all -- --check
Copy link
Member

Choose a reason for hiding this comment

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

Instead of having a separate file, can we use env variable such as RUSTUP_TOOLCHAIN to check this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@echo ===================================

rustup default nightly
rustup default stable
Copy link
Member

Choose a reason for hiding this comment

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

Curious: will the build fail if it fails to build in stable? how is this done?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it will right now (failure in stable will fail the build). @andygrove I don't think you needed to add the || exit /B below. This is the mechanism that fails the build AFAIK. Actually, I think we need to add the || exit /B to each of the examples above so that the build fails if they fail to run.

@kszucs could you comment on this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have addressed this now. I had originally swapped the order of stable/nightly and that made the PR confusing to review. I added the || exit /B to the examples so it is consistent.

@andygrove andygrove closed this in 39d1e86 Nov 28, 2018
@andygrove andygrove deleted the ARROW-3868 branch March 30, 2019 22:33
@andygrove andygrove restored the ARROW-3868 branch March 30, 2019 22:33
@andygrove andygrove deleted the ARROW-3868 branch March 30, 2019 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants