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

Cargo check all targets #9718

Merged
merged 4 commits into from
Apr 25, 2020

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Apr 25, 2020

Problem

I'm no fan of waitng 10-20 mins only to find a compilation error after coverage and stable CI job, while wasting our precious CI resources...

Summary of Changes

Do fail more early for compilation errors by cargo check-ing all our .rs sources!

spin-off from #9527

@@ -13,7 +13,7 @@ export RUSTFLAGS="-D warnings"
# Look for failed mergify.io backports
_ git show HEAD --check --oneline

if _ scripts/cargo-for-all-lock-files.sh check --locked; then
if _ scripts/cargo-for-all-lock-files.sh +"$rust_nightly" check --locked --all-targets; then
Copy link
Member Author

Choose a reason for hiding this comment

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

+"$rust_nightly" needed for this: https://buildkite.com/solana-labs/solana/builds/23350#c4cb3312-b32d-42b1-bda2-1e2cdc091a4b/70-475

    Checking solana-ownable v1.2.0 (/solana/programs/ownable)
    Checking solana-btc-spv-program v1.2.0 (/solana/programs/btc_spv)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> sdk/benches/slot_history.rs:1:1
  |
1 | #![feature(test)]
  | ^^^^^^^^^^^^^^^^^
 
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> sdk/benches/slot_hashes.rs:1:1
  |
1 | #![feature(test)]
  | ^^^^^^^^^^^^^^^^^
 
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> sdk/benches/short_vec.rs:1:1
  |
1 | #![feature(test)]
  | ^^^^^^^^^^^^^^^^^
 
error: aborting due to previous error

@@ -26,7 +26,7 @@ if [[ -n $escape_marker && ${#shifted_args[@]} -gt 0 ]]; then
done
shifted_args=()
else
files="$(git ls-files :**/Cargo.lock)"
Copy link
Member Author

Choose a reason for hiding this comment

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

;)

... and we got 375fad1

@@ -3482,6 +3478,24 @@ name = "shlex"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
Copy link
Member Author

@ryoqun ryoqun Apr 25, 2020

Choose a reason for hiding this comment

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

These are missed updates at #9713 (CC: @mvines)

@ryoqun ryoqun added the automerge Merge this Pull Request automatically once CI passes label Apr 25, 2020
@solana-grimes solana-grimes merged commit 05acd4b into solana-labs:master Apr 25, 2020
@codecov
Copy link

codecov bot commented Apr 25, 2020

Codecov Report

Merging #9718 into master will increase coverage by 0.1%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #9718     +/-   ##
========================================
+ Coverage    80.5%   80.6%   +0.1%     
========================================
  Files         279     279             
  Lines       63839   63839             
========================================
+ Hits        51429   51506     +77     
+ Misses      12410   12333     -77     

@ryoqun ryoqun mentioned this pull request Apr 25, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants