Commit Graph

1370 Commits

Author SHA1 Message Date
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
Yihau Chen 9193b4221d
Revert "chore: workspace inheritance (#29509)" (#29892)
This reverts commit a67d239dde.
2023-01-25 15:50:41 +08:00
Yihau Chen a67d239dde
chore: workspace inheritance (#29509)
* 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-01-25 13:59:59 +08:00
Yihau Chen aef1a4301c
use gh cli to get affected files (#29823)
use gh client to get affected files
2023-01-24 18:47:58 +08:00
Brooks 631dd573da
Upgrades to Rust 1.66.1 (#29827) 2023-01-24 15:11:10 +08: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
Tyera 1c135552de
Remove protoc from docker image (#29626) 2023-01-10 22:28:31 -07:00
Dmitri Makarov cc4e134079
Add an option to install a specific version of sbf-tools (#29544) 2023-01-10 06:14:24 -08:00
Will Hickey 3aa0a005f9
Add exception for RUSTSEC-2023-0001 to unblock CI. (#29585)
* Add exception for RUSTSEC-2023-0001 to unblock CI. This Tokio issue only affects windows.
2023-01-09 12:23:18 -06:00
Yihau Chen b030a96321
chore: increase stable-perf timeout_in_minutes to 35 (#29551) 2023-01-06 17:27:25 +08:00
Will Hickey 0581fc2def
Update CI pipeline to only run `checks` step on version bump PRs (#29243)
* Add logic to buildkite pipeline so version bump PRs don't run the full CI
2023-01-05 12:45:29 -06:00
Dmitri Makarov f05eb4a022
Temporary increase the build redundancy threshold (#29412) 2022-12-24 08:05:54 -08:00
Yihau Chen d32c34822b
ci: trigger stable-sbf pipeline when cargo-[test|build]-[bpf|sbf] is modified (#29391) 2022-12-23 20:59:37 +08:00
Yihau Chen 0f99f70519
ci: trigger downstream pipeline when cargo-[test|build]-[bpf|sbf] is modified (#29390) 2022-12-23 20:56:30 +08:00
kirill lykov cdb204114e
take rust version from toolchain file (#29320)
* take rust version from toolchain file

* add quotes to pacify shellcheck
2022-12-19 17:00:14 +01:00
Yihau Chen 254d3f20b2
ci: check crates (#29009)
* init

* print all errors in the end

* print success msg

* use skip patterns instead of specific file

* v2

* checkout full history

* install toml cli in Github Actions step

* git diff only list added and modified

* prevent empty owner list

* lint: ident with space 2

* update 404 hint

* lint

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

* wording

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

* indent with space

* add some friendly error message

* wording

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

* Update .github/workflows/crate-check.yml

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

* fix indent

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-12-12 11:51:37 +08:00
ananas-block afc3fee937
added alt_bn syscalls (#27961)
* added alt_bn128_syscalls

* increased regression build redundancy to > 10
2022-11-21 17:43:06 +01:00
Brooks Prumo 4d6653598b
Upgrades to Rust 1.65.0 (#28741) 2022-11-09 17:15:03 -05:00
Jon Cinque feb5ab4ba0
ci: Remove unneeded ignores in audit (#28594) 2022-10-26 10:39:17 -04:00
Trent Nelson c68fb5f68d ci: remove stale clippy allows 2022-10-20 11:25:48 -07:00
Trent Nelson 5361b4bc84 ci: run all jobs when the pipeline generator script changes 2022-10-17 22:21:57 -07:00
Trent Nelson c7d69d8a9b
Revert "DONOTMERGE: kick the ci job..."
This reverts commit 92e8ecb591.
2022-10-17 23:15:21 -06:00
Trent Nelson 92e8ecb591 DONOTMERGE: kick the ci job... 2022-10-17 21:56:54 -07:00
Trent Nelson 18e07852df ci: move `stable-sbf` job to `solana` queue 2022-10-17 21:56:54 -07:00
Dmitri Makarov d6813b98d2 chore: move programs/bpf to programs/sbf 2022-10-13 11:40:40 -04:00
Dmitri Makarov f4dd24491f Migrate SDK from BPF to SBF 2022-10-07 08:57:06 -04: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
Brooks Prumo 12df0f234d
Upgrade to Rust 1.64.0 (#28034) 2022-09-29 09:32:24 -04:00
Will Hickey 0a97a5a006
Update CI error message when the version number needs to be bumped (#27997)
* Update CI error message when the version number needs to be bumped
* Move channel version check to its own file and put it before nits
2022-09-23 11:09:45 -05:00
Dmitri Makarov 6d25f21bc2 Adjust solana program threshold for stable tests in CI 2022-09-21 01:11:20 +00:00
Dmitri Makarov 5afefe7ea9 Lower the limit of solana-program rebuilds in CI stable tests 2022-09-19 12:08:01 -04:00
Yihau Chen afa2ae2986
chore: add a name for secondary trigger step (#27719) 2022-09-12 04:42:12 +00:00
Yihau Chen 54129c4f16
chore: make docs test upload test result when needed (#27660) 2022-09-08 14:09:07 +08:00
Yihau Chen 8c1093534e
chore: only generate test result on specific branches (#27591)
* chore: only generate test result on specific branches

* lint
2022-09-07 11:39:06 +08:00
Yihau Chen e7689f7961
chore: bump shellcheck v0.8.0 (#27463)
* bump shellcheck to stable verion, v0.8.0

* fix SC2086

* fix SC2269, https://www.shellcheck.net/wiki/SC2294

* fix SC2294

* do null and unset check for variable, FORCE_DELETE
2022-09-01 06:48:20 +00:00
Yihau Chen bbc3c5c32d
chore: add cargo audit at the beginning of secondary pipeline (#27470) 2022-08-31 15:45:29 +00:00
Brooks Prumo 93841a9484
ci: Fix steps in run-local (#27499) 2022-08-31 15:26:59 +00:00
Brennan Watt 9094076de7
Increase downstream-projects timeout (#27486) 2022-08-30 21:07:32 -07: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
Yihau Chen d2d4d4a240
chore: only buildkite pipelines use sccache in docker-run.sh (#27204)
chore: only buildkite ci use sccache
2022-08-18 04:33:30 +00: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
Yihau Chen 3a9bc4bf37
chore: upload test results to buildkite and datadog (#27139)
* export test-stable result

* export test-stable-perf result

* export test-local-cluster result

* export test-local-cluster-flakey result

* export test-local-cluster-slow-1 result

* export test-local-cluster-slow-2 result

* export test-docs result

* export test-stable-bpf result

* upload test result to buildkite and datadog
2022-08-16 13:20:29 +08:00
Ryo Onodera 773a4dd4d5
Fix windows build after crossbeam-epoch patch (#27052) 2022-08-10 22:59:14 +09:00
Ryo Onodera ecda3bec01
Revert "Remove resolver=2 from Cargo.toml and add it to the Windows build" (#27011)
Revert "Remove resolver=2 from Cargo.toml and add it to the Windows build (#26706)"

This reverts commit 2f6f5b11da.
2022-08-09 17:58:32 +09:00
Yihau Chen b39767193b
Revert "chore: increase timeout limit for coverage test" (#26917)
This reverts commit b6ae6c1fe1.
2022-08-04 19:51:01 +08:00
Yihau Chen b6ae6c1fe1 chore: increase timeout limit for coverage test 2022-08-04 17:11:44 +08:00
Tyera Eulberg dbd3b6b53a
Parse more token-2022 extensions and instructions (#26746)
* Bump spl-token-2022

* Support parsing InterestBearingConfig extension

* Parse InitializeNonTransferableMint instructions

* Parse InterestBearingMint instructions

* Bump solana-program rebuild threshold
2022-07-25 15:39:13 -06:00
Yihau Chen f7ebaa76ba
chore: only ci use sccache (#26774) 2022-07-26 01:22:15 +08:00
Will Hickey 2f6f5b11da
Remove resolver=2 from Cargo.toml and add it to the Windows build (#26706) 2022-07-22 11:07:49 -05:00
Yihau Chen 73129cadc2
chore: update buildkite agents query rule (#26708) 2022-07-21 12:08:48 +08:00
yihau 4eca946fb9 chore: increase coverage timeout limit 2022-07-21 00:20:00 +08:00
Yihau Chen e69d8ae7d7
chore: use sccache (#26376)
* chore: remove CARGO_TARGET_CACHE

* chore: prepare sccache env for docker container

* chore: use s3 as sccache backend
2022-07-18 15:39:21 +08:00
Dmitri Makarov 0b78a213c3 Add a comment explaining the check for crate recompilation redundancy 2022-07-14 17:59:37 -07:00
Dmitri Makarov 27cee7a7de Compile for bpf target for compatibility when cargo-build-bpf is used 2022-07-14 10:41:39 -07:00
Dmitri Makarov b7e7e4159c Prevent cargo from running a non-BPF compiler for BPF target 2022-07-13 05:48:48 +00:00
Dmitri Makarov b1718422ce Add a check for rebuild regression due to dep features in cargo tomls 2022-07-12 15:12:22 -07:00
yihau b86d80e676 chore: fix solana-private buildkite steps 2022-06-28 12:09:14 +08:00
Nicholas Rempel 42eb846d52 Add cargo sort check to test-checks.sh 2022-06-24 12:41:38 -07:00
Yihau Chen 5c920caf4f
chore: separate publish installer process (#26137)
* chore: reorder name and command

* chore: extract publish installer from publich tarball

* lint: use space
2022-06-23 11:18:30 +08:00
Michael Vines f3639b76ce Remove some clippy lints 2022-06-22 09:23:22 -07:00
Michael Vines 8dd9a045dd Add cargo-store 2022-06-21 18:09:17 +00:00
Nicholas Rempel 1ee4b412b2 Support local CI on macOS 2022-06-20 08:41:30 -07:00
Michael Vines 04c61afd3a echo release.solana.com-install before uploading it for more log visibility 2022-06-18 20:04:45 -07:00
yihau bc3fb7cec6 chore: sync bench timeout setting 2022-06-14 01:00:04 +08:00
yihau 30828609dc chore: sync stable-bpf timeout setting 2022-06-13 11:32:38 +08:00
Dmitri Makarov 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice 2022-06-03 14:12:42 -07:00
yihau e5ebcb0855 chore: test stable-bpf on gcp agents 2022-05-31 11:36:30 +08:00
axleiro d4e7ebf4f8
increasing timeout limit to 35 for few tests 2022-05-28 18:18:18 +05:30
steviez 7d202a0be2
Make run-sanity.sh ledger-tool verify operate on more slots (#25591)
Prior to this change, genesis.tar.bz2 and the snapshot would be copied
over to a new directory but not rocksdb. As such, the verify step would
only unpack the snapshot and verify that hash.
2022-05-26 15:44:09 -05:00
steviez e1684e94f5
Update to call split local-cluster-slow scripts (#25510) 2022-05-24 14:31:33 -05:00
Justin Starry f6da78a741 Bump stable-bpf CI job timeout to 25min 2022-05-20 15:25:50 +08:00
Jon Cinque 48982778ef
ci: Remove downstream anchor projects (#25266) 2022-05-17 02:27:38 +02:00
Yihau Chen e493e0033a
chore: build windows artifacts on Github Actions (#25188)
* chore: always checkout repo from master

* chore: rename variable tag => commit

* chore: gh-release when tag is present

* chore: add release-artifacts-auto

* chore: skip build when channel is empty

* chore: use GITHUB_REF_NAME as CI_BRANCH
2022-05-13 17:10:03 +08:00
Yihau Chen 46c1ca6551
chore: build osx x86_64 artifacts on buildkite (#25138)
* chore: build osx x86_64 artifacts on buildkite

* chore: remove osx artifacts building flow from github action
2022-05-11 23:15:53 +08:00
Yihau Chen 0e3fc9d31c
chore: add docs actions (#25029)
* chore: mv .travis/* ci/

* chore: add docs action

* chore: update mergify
2022-05-06 12:14:50 +08:00
Brooks Prumo e1866aacad
Move long-running local-cluster tests to local-cluster-slow (#24952) 2022-05-04 06:03:38 -05:00
axleiro abf829d0c6
changing agents for the new pipeline 2022-05-04 12:11:26 +05:30
Yihau Chen 9f163a87c0
chore: build x86 artifacts (#24941)
* chore: add GitHub Action env

* chore: add github tarball output path

* chore: add build x86 actions
2022-05-03 23:20:23 +08:00
axleiro 5b80891abc
adding buildkite-solana-private.sh to remove solana-secondary dependency from solana-private pipeline 2022-05-03 17:11:31 +05:30
Yihau Chen 0945673a33
fix(ci): correct script path (#24584) 2022-04-22 13:50:40 +08:00
yihau 84d5a6d44f xxx 2022-04-22 12:59:17 +08:00
Yihau Chen 3d0ca2d94e
feat: export web3 to minnor repo (#24557) 2022-04-21 18:51:32 +00:00
Jon Cinque c43afe2d7f
spl: Bump token to v3.3.0 and ATA to v1.0.5 (#22649)
* Bump spl-token and ATA to v3.3.0

* Add parsers for new token instructions
* Update parser for modified associated-token-account instruction

* Update to use 1.0.5 once it's released

* Update Cargo.lock in programs/bpf
2022-04-20 19:13:42 +02:00