Commit Graph

1353 Commits

Author SHA1 Message Date
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
Yihau Chen 8cb30d0693
ci: separate bench tests (#31763)
* ci: separate bench tests

* use readable names
2023-05-25 21:39:17 +08:00
Yihau Chen 239a7ba759
ci: refactor local cluster tests (#31730)
* ci: separate local cluster tests by nextest

* parallelism => 6

* Revert "parallelism => 6"

This reverts commit 5c271357fee8aa8ae812ee67e285d72ebb9bec10.
2023-05-24 15:07:33 +08:00
Ryo Onodera bd8289e114
Temporarily use stable clippy for redundant_clone (#31692) 2023-05-17 21:09:23 +00:00
Will Hickey 29163f71c6
Restore ci version bump logic with origin/ prefix on branch names (#31636)
Add origin/ prefix to branch names... Buildkite doesn't have the local branch aliases in the clone
2023-05-15 21:05:14 -05:00
Yihau Chen 98bef5c3da
ci: install lld to docker images (#31645)
ci: install lld to docker image
2023-05-15 11:34:14 +00:00
Will Hickey 91194cd342
Revert "Update CI pipeline to only run `checks` step on version bump … (#31603)
Revert "Update CI pipeline to only run `checks` step on version bump PRs (#29243)"

This reverts commit 0581fc2def.
2023-05-12 13:03:21 -05: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
Trent Nelson 53811e6053
add and recommend script for reserving new package names on crates.io (#31416)
* add script for reserving package names on crates.io

* ci/check-crates.sh: suggest script for new crate name reservation
2023-05-08 09:31:24 -06:00
Brooks c5e071c7fe
Upgrades nightly Rust to 2023-03-04 (#31487) 2023-05-05 08:28:23 -04:00
Yihau Chen bd5893907e
ci: fix private pipeline agents (#31407) 2023-04-29 04:23:23 +08: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 e79e13899d
ci: use crates api to get owner list (#31348)
use crete api to get owner lists
2023-04-26 08:36:50 +08:00
Yihau Chen c9ca6e3461
ci: update buildkite's hook (#31298)
* remove unnecessary files

* unify the hooks's header

* don't use set -e in post-checkout

* shellcheck.sh include .buildkite/hooks

* xxx: make ci unhappy

* Revert "xxx: make ci unhappy"

This reverts commit a0fdfb40db8aa226a2669e474a06fb0f45f8c5c4.
2023-04-25 15:49:58 +00:00
Brooks cd2b2d4a14
Upgrades Rust to 1.69.0 (#31336) 2023-04-25 10:22:38 -04: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
Yihau Chen f6591158ab
ci: use the sccache which installed in the docker image (#31332) 2023-04-25 11:44:43 +08:00
Ryo Onodera 6f9a15c36b
ci: suggest to use hidden_unless_forced() (#31321)
* ci: suggest to use hidden_unless_forced()

* shellcheck...
2023-04-25 09:43:42 +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
Yihau Chen ee10a48739
ci: soft fail trigger_secondary_step (#31296)
ci: soft failed trigger_secondary_step
2023-04-24 12:43:59 +08:00
Yihau Chen 17eab32ad0
ci: run stable tests partially (#31151)
* ci: run stable tests partially

* ci: improve uploading test result

* use buildkite's retry

* test common

* fix indent issue

* extract assert eq

* use diff to print test error

* pretty format

* test build stable steps

* add test all function

* lint

* lint

* keep dollar sign

* switch got and want's diff direction

* use 'EOF' to make code more readable

* rename EMPTY_LINE to DELETE_THIS_LINE

* rename N => INDEX

* rename M => LIMIT

* check variable in a more elegant way

* wording

* more explain for code
2023-04-21 14:51:17 +08:00
Illia Bobyr a21e68a351
Upgrade Rust to 1.68.2 (#31276) 2023-04-20 11:31:54 -07:00
Yihau Chen 8a849718d2
ci: cleanup (#31196)
* extract threads limit script

* extract common functions

* mv need_to_generate_test_result need_to_upload_test_result
2023-04-14 20:37:07 +00:00
Yihau Chen 1bf69b448b
ci: move coverage to the last block (#31163) 2023-04-14 12:19:20 +08:00
Ryo Onodera 2646fb72ed
Remove workaround for already-fixed clippy bug (#30952) 2023-03-29 13:45:27 +09:00
Illia Bobyr 3bc670a47b
Revert Rust 1.68.0 upgrade (#30897)
Specifically the nightly upgrade is breaking the
`geyser_plugin_manager`.  We will probably need more investigation
before we can move forward with it.
2023-03-25 02:41:12 +00:00
Brooks 244430d643
Upgrades Rust to 1.68.0 (#30664) 2023-03-24 18:06:38 -04:00
Dmitri Makarov 81ef2a0d75
Update references to platform-tools (#30764) 2023-03-22 07:41:40 -07:00
Ryo Onodera aaaee556d8
ci: silence ci test output while recording in full (#30654)
* ci: silence ci test output while recording in full

* shellcheck

* Adjust --color handling place

* Dump to stderr...

* Reduce too spammy solana_metrics logs

* Clean up

* Tweak

* Stash actual command's exit_code, not echo's
2023-03-16 22:17:29 +09:00
Yihau Chen f8abc8df8d
ci: fix do-audit don't report error (#30728)
* ci: fix do-audit don't retport error

* Update ci/do-audit.sh

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* use the latest suggestion

* lint

* redirect stderr to stdout

* another solution

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2023-03-16 11:58:08 +08:00
behzad nouri 3cc74a6087
updates tempfile to 3.4.0 (#30727)
Patching below rustsec advisory:

    Crate:     remove_dir_all
    Version:   0.5.3
    Title:     Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU)
    Date:      2023-02-24
    ID:        RUSTSEC-2023-0018
    URL:       https://rustsec.org/advisories/RUSTSEC-2023-0018
    Solution:  Upgrade to >=0.8.0
2023-03-15 18:25:35 -06:00
Ryo Onodera 7f58345dad
ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
samkim-crypto 4a94eeee5e
Upgrade to token-2022 0.6.0 (#30353)
* upgrade spl-token-2022 to 0.6.0

* Add spl_token_2022-0.6.0.so to program-test

* cargo lock

* update account decoder tests to use Pubkey::new_from_array instead of Pubkey::new

* update rpc tests to use Pubkey::new_from_array instead of Pubkey::new

* update token-2022 .so file

* cargo lock

* increase the threshold for allowable rebuilds in ci

* update spl ATA to v1.1.3

* decrement back the threshold for allowable rebuilds

* cargo lock

* increment ci rebuild threshold
2023-03-10 10:32:19 +09:00
Yihau Chen 755a9a6600
ci: add SCCACHE_S3_KEY_PREFIX (#30652) 2023-03-09 19:29:27 +08:00
Ryo Onodera d8a6953eb2
Disable cache if retried 3 times (#30638)
* Disable cache if retired 3 times

* Add more comments

* Reduce if nesting to avoid maintenance pitfall by DISABLE_CACHE

* Well /home was required...

* Adjust to align with third time's the charm

* Adjust if arrangement a bit with tweaks
2023-03-08 22:54:19 +09:00
Yihau Chen 21f1b652a7
ci: reorg downstream projects (#30463)
reorg downstream projects
2023-02-24 15:55:24 +08:00
Yihau Chen df3ef111f7
chore: workspace inheritance (#29893)
* introduce workspace.package

* introduce workspace.dependencies

* read version from root cargo.toml

* pass check when version = { workspace = true }

* don't bump version when version = { workspace = true }

* including workspace Cargo.toml when bump version

* programs/sbf use workspace inheritance

* fix increasing cargo version ignore program/sbf/Cargo.toml
2023-02-23 22:01:54 +08:00
Andrew Fitzgerald 045b9fec11
Add --allow-private-addr to bootstrap-validator.sh (#30163)
* Add --allow-private-addr to bootstrap-validator.sh

* Remove --allow-private-addr argument option since it is default

* fix bench-tps docs, remove option for private-addr (default)
2023-02-22 09:54:15 -08:00
Yihau Chen d984fbb735
ci: use wasm-pack latest version (#30399) 2023-02-22 13:31:46 +08:00
Brooks f91e63dfe9
Upgrades Rust to 1.67.1 (#29947) 2023-02-17 14:08:27 -05: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
Yihau Chen 0d96d1db33
ci: group check steps into an individual queue (#30309)
* ci: group check steps into an individual queue

* lint: add quote
2023-02-15 13:03:17 +08:00
Trent Nelson 85af23613e
ci: suppress dep trees by default in `ci/do-audit.sh` (#30255)
get them back by passing `--display-dependency-trees`
2023-02-10 21:47:48 -07:00
Steven Luscher 3c01f4dd76
chore: remove Explorer build scripts from the Monorepo (#30262)
* chore: remove Explorer build scripts from the Monorepo

* chore: remove labeler action
2023-02-10 17:25:32 -06:00
Trent Nelson bf7b88b486
ci: make merge conflict marker sanity check more robust (#29995) 2023-02-01 21:15:12 -07:00
Steven Luscher a2cf25153f
Fuck this whole web3.js thing (#30062) 2023-02-01 14:34:23 -08:00
Brennan b29a50a55e
Exclude loopback from valid IP addresses (#29992)
Excludes loopback IP addresses from being valid IP addresses unless private addresses are explicitly allowed
2023-02-01 11:16:15 -08:00
joeaba a12bf8c003
Update maintainers references (#29997)
* update maintainers references

* chore: update maintainers reference
2023-01-31 08:07:13 -05:00