-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Cargo check all targets #9718
Conversation
@@ -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 |
There was a problem hiding this comment.
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)" |
There was a problem hiding this comment.
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]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ 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 |
Problem
I'm no fan of waitng 10-20 mins only to find a compilation error after
coverage
andstable
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