Commit Graph

111 Commits

Author SHA1 Message Date
Alexander Meißner 9e703f85de
Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961)
* allow pedantic invalid cast lint

* allow lint with false-positive triggered by `test-case` crate

* nightly `fmt` correction

* adapt to rust layout changes

* remove dubious test

* Use transmute instead of pointer cast and de/ref when check_aligned is false.

* Renames clippy::integer_arithmetic to clippy::arithmetic_side_effects.

* bump rust nightly to 2023-08-25

* Upgrades Rust to 1.72.0

---------

Co-authored-by: Trent Nelson <trent@solana.com>
2023-09-01 07:26:13 +00:00
Trent Nelson f1a0cca547
ci: move some fast checks to sanity (#32875) 2023-08-17 21:58:17 -06:00
Trent Nelson b83cef43fc
ci: allow local bypass of stale Cargo.lock check with custom variable instead of `CI` (#32798)
ci: don't use `CI` envvar to skip local stale Cargo.lock check

to enable
```bash
echo "export SOLANA_CI_ALLOW_STALE_CARGO_LOCK=" >> ~/.profile
```
2023-08-11 13:53:16 -06:00
HaoranYi dbe6d0353f
Allow pending changes for `test-checks.sh` for local build (#32728)
* Add `local` options for ci test-check script

* check  env instead

* remove usage()

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-06 09:29:12 -05:00
behzad nouri d54b6204be
removes instances of clippy::manual_let_else (#32417) 2023-07-09 21:41:36 +00:00
Ryo Onodera 18247431b9
Add special feature for inter-crate safe dev-related code reuse (#32169)
* Add dev-utils feature for inter-crate test code safe reuse

* Sanitize mode

* Fix typo...

* Use case/esac intead of if

* port to `cargo tree` + `jq`

* Fix typo...

* Properly abort on errors

* Add trailing commas

* Select only normal dependencies

* Use more concise comma-separated code

* Skip if taint packages are empty

* Fold long lines and format code a bit

* Fix shellcheck

* Improve jq query and remove uneeded marker feature

* Use folding heredoc giving up proper indenting..

* Use jq's alternative operator (//)

* Rename to dev-context-only-utils

* Fix typo...

---------

Co-authored-by: Trent Nelson <trent@solana.com>
2023-07-07 09:30:20 +09:00
Ryo Onodera fc97b7d88e
Explain use of nightly clippy over whole monorepo (#31833)
* Explain use of nightly clippy over whole monorepo

ref: https://github.com/rust-lang/rust/issues/66287

* Fix typo and update link in test-checks.sh

* Incorporate review suggestions
2023-05-26 16:43:14 +09:00
Ryo Onodera f736fcee2b
Fix indent of ./ci/test-checks.sh (#31831) 2023-05-26 15:22:03 +09:00
Ryo Onodera bd8289e114
Temporarily use stable clippy for redundant_clone (#31692) 2023-05-17 21:09:23 +00:00
Ryo Onodera 4d4dddcaea
Update to nightly rustc to 2023-04-19 (#31381)
* Update to nightly rustc to 2023-04-19

* pray...

* Not enough pray..

* skip check...

* hope merciful shellcheck

* ci hack...

* Restore ci/test-checks.sh

* Restore debug_assertions with proper workaround...

* small cleanup

* seems this isn't needed?

* Make the workaround more robust...

* Remove now-resolved clippy exception
2023-05-11 15:48:13 +09:00
Ryo Onodera a30830d7a9
ci: treewide: deny used_underscore_binding (#31319)
* Enforce used_underscore_binding

* Fix all

* Work around for cfg()-ed code...

* ci....

* Make clipply fixes more pleasant

* Clone exit signal while intentionally shadowing

* Use more verbose code to avoid any #[allow(...)]s
2023-04-27 10:10:16 +09:00
Yihau Chen 186b0d77f0
ci: use stable wasm-pack version in docker (#31338)
* ci: use latest wasm-pack version in docker

* print wasm-pack version in test-check.sh
2023-04-25 22:08:01 +08:00
Ryo Onodera 37576c8949
ci: show sccache version and prefix (#31317)
* ci: Show sccache version as well

* hmm, where's sccache?? (and prefix bonus)

* Use $PATH's sccache for consistency
2023-04-25 13:11:58 +09:00
Ryo Onodera cece64daad
ci: prefer clippy::default_trait_access over shell (#31318)
Prefer clippy::default_trait_access over shell
2023-04-24 14:04:11 +09:00
Ryo Onodera 2646fb72ed
Remove workaround for already-fixed clippy bug (#30952) 2023-03-29 13:45:27 +09:00
Ryo Onodera 7f58345dad
ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
Yihau Chen 92b366cdd3
ci: don't print 'Checking PACKAGE_NAME...' when do cargo sorting check (#30361) 2023-02-17 05:21:11 +00:00
kirill lykov 8daed75df9
Add toolchain file usage (#29370)
* use cargo in cargo-for-all-lock-files.sh

* replace ./cargo with cargo in ci shell scripts

* remove ./cargo from test-stable.sh
2023-01-17 20:55:41 +01:00
Trent Nelson c68fb5f68d ci: remove stale clippy allows 2022-10-20 11:25:48 -07:00
Will Hickey 1359f2cea7
Add remediation to CI error message for uncommited Cargo.lock changes (#28147)
* Add remediation to CI error message for uncommited Cargo.lock changes
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-10-04 11:18:20 -05:00
Brennan Watt e4a7d01e10
Rust v1.63 (#27303)
* Upgrade to Rust v1.63.0

* Add nightly_clippy_allows

* Resolve some new clippy nightly lints

* Increase QUIC packets completion timeout

* Update quinn-udp crate

Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-22 18:01:03 -07:00
Brennan Watt 7573000d87
Revert "Rust v1.63.0 (#27148)" (#27245)
This reverts commit a2e7bdf50a.
2022-08-19 09:19:44 +01:00
Brennan Watt a2e7bdf50a
Rust v1.63.0 (#27148)
* Upgrade to Rust v1.63.0

* Add nightly_clippy_allows

* Resolve some new clippy nightly lints

* Increase QUIC packets completion timeout

Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-17 15:48:33 -07:00
Nicholas Rempel 42eb846d52 Add cargo sort check to test-checks.sh 2022-06-24 12:41:38 -07:00
Michael Vines f3639b76ce Remove some clippy lints 2022-06-22 09:23:22 -07:00
Jack May 7ee7fc6f58
CI clippy and fmt for all (#23599) 2022-03-11 12:07:06 -08:00
Justin Starry c97f34a0fd
Add script for running nightly rustfmt on all workspaces (#23244)
* Add script for running nightly rustfmt on all workspaces

* invalidate ci cache
2022-02-22 11:59:06 +08:00
Trent Nelson 59cd0556ef ci: suppress cargo tree output 2021-07-16 23:00:23 -06:00
Ryo Onodera a5b91ef4c3
Show grcov version as well (#18549) 2021-07-09 19:49:07 +09:00
Jack May 476fd40948
Add program-test tests to bpf programs (#16407) 2021-04-07 01:47:15 -07:00
Justin Starry 6cd4bc5e60
Speed up net.sh builds (#16360)
* Speed up net.sh builds

* feedback

* Update net/net.sh

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* feedback

* fix

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-04-07 14:45:03 +08:00
Trent Nelson 15e1314209 ci: disallow uncommitted Cargo.lock changes 2021-03-01 21:24:57 -07:00
Trent Nelson 3c1dd891af ci: checks - factor out audit so it can run independently 2021-03-01 21:24:57 -07:00
Trent Nelson 21f66179ba ci: run clippy before fmt 2021-03-01 21:24:57 -07:00
Trent Nelson ccb604f8c3 Pass audit ignores to bpf program audit 2021-03-01 21:10:46 +00:00
Trent Nelson 85252777a6 Add RUSTSEC-2020-0146 to audit ignores 2021-03-01 21:10:46 +00:00
Trent Nelson 7035e8485c CI: Globally deny clippy::integer_arithmetic lint 2021-02-17 13:55:08 -07:00
Michael Vines 3eaa826ad9 Suppress cargo audit failure for `difference` crate, there's no newer crate to upgrade to yet 2021-01-08 20:20:34 +00:00
Trent Nelson 5617ab65d8 Revert "Ignore RUSTSEC-2020-0077 until next 1.4 release"
This reverts commit 1792100e2b.
2020-12-17 01:54:22 +00:00
Michael Vines 7143aaa89b Clippy 2020-12-14 08:03:29 -08:00
Trent Nelson 1792100e2b Ignore RUSTSEC-2020-0077 until next 1.4 release 2020-12-11 23:44:03 +00:00
Trent Nelson acc40b1c9e
audit: Ignore RUSTSEC-2020-0071, potential SEGV in `time` 2020-11-18 20:21:46 -07:00
Trent Nelson 7a4e293b3b CI: Check monorepo for consistent crate versions 2020-11-06 01:32:01 +00:00
Trent Nelson 66c3c6c2b3 CI: Use branch-versioned cargo throughout 2020-11-05 05:05:57 +00:00
Michael Vines 39120b3343 Ignore stdweb 2020-10-31 18:56:20 +00:00
Michael Vines c5e16383b0 Add everything feature 2020-10-19 17:21:52 -07:00
Michael Vines 2301dcf973 Rework cargo audit ignores 2020-10-11 18:51:09 +00:00
Trent Nelson c9d12ad410 Revert "Ignore cargo audit RUSTSEC-2020-0008"
This reverts commit cd5c7f30d5.

With bump of `jsonrpc-*` to 15.0.0, we no longer depend on `ws`
2020-09-25 19:30:47 +00:00
Jack May cd5c7f30d5 Ignore cargo audit RUSTSEC-2020-0008 2020-09-25 09:53:13 -07:00
Michael Vines 49b7497491
Avoid `scripts/cargo-for-all-lock-files.sh check` on release branches 2020-08-31 00:40:54 -07:00