Commit Graph

432 Commits

Author SHA1 Message Date
mergify[bot] e241468020
v2.1: CI: Remove memo program from downstream job (backport of #3804) (#3865)
CI: Remove memo program from downstream job (#3804)

#### Problem

The SPL programs are in the process of being moved to program-specific
repos. Memo now exists in https://github.com/solana-program/memo, and
there's a PR to remove it from SPL at
https://github.com/solana-labs/solana-program-library/pull/7535. If we
merge that, however, the downstream jobs will immediately fail.

#### Summary of changes

Remove all references to the memo program in downstream CI.

(cherry picked from commit 4bdea4619a8842fae1958e7e2c5b7052d86c25b6)

Co-authored-by: Jon C <me@jonc.dev>
2024-12-05 18:39:04 +01:00
mergify[bot] da67a7754c
v2.1: remove ntapi patch (backport of #3584) (#3666)
remove ntapi patch (#3584)

* use anza-xyz/ntapi instead of the labs one

* remove ntapi patch

* fix shellcheck

(cherry picked from commit da90cbee49d0e08d5124f0888d82b2f6774c27be)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-11-21 13:13:30 +08:00
Lijun Wang fc0183d734
Use quinn 0.11.x (#1641)
1. A incoming connection can be ignored now when we do rate limiting -- which is more efficient -- does not require queueing outgoing packets.
2. rustls interface changes of ServerCertVerifier applied to SkipServerVerification implementations
changes in Cargo.toml to handle curve25519-dalek 3.2.1 patching because of zeroize version constraint due to the newer rustls. The workaround is applied to downstream tests.
3. Quinn 0.11.x introduced new error codes which we need to handle.
4. stream finish is no longer an async function.
2024-09-14 01:41:16 -07:00
Ryo Onodera 8f5a4d750a
Skip full build with no dcou bin (and extras) (#2874) 2024-09-10 00:04:07 +09:00
Ryo Onodera b1de2e0ce8
Ensure to build release binaries without dcou (#2867)
* Ensure to build release binaries without dcou

* Comment about use of RUSTC_BOOTSTRAP

* Mention about lack of use of cargo tree
2024-09-09 14:35:28 +09:00
Ryo Onodera e351b4f81c
Remove cargo-install-all.sh hack for solana-genesis (#2866) 2024-09-09 12:28:08 +09:00
HaoranYi 4df90e4d4f
accounts-db/tools/add store-histogram tool (#2850)
* add store-histogram tool

* remove deps

---------

Co-authored-by: HaoranYi <haoran.yi@anza.xyz>
2024-09-06 10:55:39 -05:00
Yihau Chen d8e95ac15f
bump rust to 1.80.1 / 2024-08-08 (#2487)
* bump rust to 1.80

* bump nightly version to 2024-07-21

* bump rust stable to 1.80.1, nightly to 2024-08-08

* clippy: macro_metavars_in_unsafe

* fix unexpected tag

* run anchor downstream test with their master

* add no-entrypoint into workspace level lint

* use correct llvm path for coverage test
2024-08-16 11:55:08 +08:00
Ryo Onodera 08f72d2ff2
Make dcou faster and check lib targets as well (#2127) 2024-08-09 00:17:20 +09:00
Jon C fe652ca59e
ci: "Fix" the downstream anchor build (#2208)
* ci: "Fix" the downstream anchor build

* Force the CI run to happen
2024-07-19 21:43:22 +02:00
Ryo Onodera adf24472dd
Improve frozen abi dx a bit and document it (#2131)
* Run frozen-abi tests earlier in ci

* Run cargo check & clippy on frozen-abi code in ci

* Rename IgnoreAsHelper => TransparentAsHelper

* Add explaantion of impl AbiExample for Bank

* Use PhantomData<_> to avoid AbiExample for Bank

* Fix ci...
2024-07-16 15:35:51 +09:00
Yihau Chen ba90ea3a4d
fix: remove more cargo-(build|test)-bpf (#2073) 2024-07-10 21:47:07 +08:00
Sean Young 0a05418a6b
Remove solang from the tools suite (#2010)
Solang no longer works with Anchor cli 0.30.0.
2024-07-09 17:49:22 +01:00
Andrew Fitzgerald f883da7ccf
Reserve Package Name: Allow agave-prefix (#1998)
Allow agave-prefix
2024-07-08 08:37:35 -05:00
Brooks 7b4c4f6fb4
Adds accounts-hash-cache-tool to inspect accounts hash cache files (#1731) 2024-06-13 16:16:42 -04:00
Ryo Onodera cd6825f2b6
Retire stable-rust clippy for still buggy redundant_clone (#1661)
* Retire stable-rust clippy for buggy redundant_clone

* Remove unused scripts/cargo-clippy-stable.sh

* Remove clippy-stable from .mergify.yml
2024-06-10 15:05:04 +09:00
Brooks 6255f3608e
Renames solana-store-tool to agave-store-tool (#1613) 2024-06-05 23:47:57 -04:00
Brooks 28242cda5e
store-tool: Opens file without needing len (#1595) 2024-06-05 15:29:00 -04:00
Yihau Chen 5ff77062b2
ci: improve version update script (#1553)
* only apply related changes when bumping version

* ignore Cargo.toml if no match version

* fix shell check

* follow shellcheck SC2035
2024-06-05 00:51:52 +08:00
Yihau Chen e6373b6a2b
ci: patching spl project before anchor project uses it (#1558)
patching spl project before anchor project uses it
2024-06-03 11:54:10 +00:00
Ryo Onodera 8f07b13c44
Deny warns to catch dcou compilation failures (#1512) 2024-05-29 14:37:04 +09:00
Jon C 595d361f3b
CI: Add Anchor v0.30.0 as a downstream target (#1441) 2024-05-21 11:55:06 +08:00
Kevin Heavey cadba689cb
Make solana-frozen-abi optional in all remaining crates (#1278)
* put most AbiExample derivations behind a cfg_attr

* feature gate all `extern crate solana_frozen_abi_macro;`

* use cfg_attr wherever we were deriving both AbiExample and AbiEnumVisitor

* fix cases where AbiEnumVisitor was still being derived unconditionally

* fix a case where AbiExample was derived unconditionally

* fix more cases where both AbiEnumVisitor and AbiExample were derived unconditionally

* two more cases where AbiExample and AbiEnumVisitor were unconditionally derived

* fix remaining unconditional derivations of AbiEnumVisitor

* fix cases where AbiExample is the first thing derived

* fix most remaining unconditional derivations of AbiExample

* move all `frozen_abi(digest =` behind cfg_attr

* replace incorrect cfg with cfg_attr

* fix one more unconditionally derived AbiExample

* feature gate AbiExample impls

* add frozen-abi feature to required Cargo.toml files

* make frozen-abi features activate recursively

* fmt

* add missing feature gating

* fix accidentally changed digest

* activate frozen-abi in relevant test scripts

* don't activate solana-program's frozen-abi in sdk dev-dependencies

* update to handle AbiExample derivation on new AppendVecFileBacking enum

* revert toml formatting

* remove unused frozen-abi entries from address-lookup-table Cargo.toml

* remove toml references to solana-address-lookup-table-program/frozen-abi

* update lock file

* remove no-longer-used generic param
2024-05-17 14:42:58 +02:00
Ryo Onodera 911186d483
Restore log coverage along with misc niceties (#1328) 2024-05-14 14:51:56 +09:00
Yihau Chen 186befeba9
ci: source based coverage (#1260)
* ci: source based coverage

* point to file explorer

* fix sanity

* break line

* pass @ arg from ci/coverage to script/coverage

* move source script to the top

* direct to the summary page

* explain why nightly

* don't rug orignal rustflag

* rearrange args order

* bring back the trace level logging

* remove _

* fix log level

* add reference to envs

* put cov result into target/cov

* move output to target/cov

* XXX hack buildkite pipeline

* XXX: test for no log

* Revert "XXX hack buildkite pipeline"

This reverts commit effb72e78fa1a46e6e7f9b8a3791e8cc8dc1903e.

* Revert "XXX: test for no log"

This reverts commit 975482de9b21129f9ddd1d19d39d8f60500445e5.

* don't use trace log level temporarily

* only search coverage report in the main folder
2024-05-13 13:37:10 +08:00
Jon C b36eec5ab8
spl: Upgrade to newest library versions (#994)
* spl: Upgrade to newest versions

* Patch more crates
2024-04-24 18:48:58 +02:00
behzad nouri 657e032ac0
excludes more Merkle shreds tests from coverage CI (#812) 2024-04-15 18:27:31 +00:00
behzad nouri 2c0bea045c
skips some Merkle shreds tests in coverage CI (#804)
skips some Merkle shreds test in coverage CI
2024-04-15 14:34:15 +08:00
Justin Starry 72ee270943
Update cargo metadata to Anza (#635) 2024-04-10 14:29:48 +08:00
Ashwin Sekar 70c4cb0ba1
consensus: add dev-context-only-utils to tower (#687) 2024-04-09 16:39:57 -07:00
Yihau Chen 51dc7e6fb7
[anza migration]: add 'agave=info' to default log level (#223) 2024-03-14 20:35:33 +08:00
Yihau Chen e682fec28e
[anza migration]: fix download link for net scripts (#219) 2024-03-13 12:17:08 +08:00
Yihau Chen 2078153aa1
[anza migration]: fix download path for cluster test (#204) 2024-03-12 18:15:59 +00:00
Yihau Chen c0239c8eff
ci: rename script (#125) 2024-03-08 10:48:39 +08:00
Tyera f968532d7f
Prep Anchor downstream CI job for v2 bump (#123)
* Add new script to patch spl in anchor downstream

* Only specify major version for token-2022

* Add update for ahash

* Patch spl in anchor

* Remove dex and metadata features for now
2024-03-06 19:31:07 -07:00
Yihau Chen 3f9a7a52ea [anza migration] rename crates (#10)
* rename geyser-plugin-interface

* rename cargo registry

* rename watchtower

* rename ledger tool

* rename validator

* rename install

* rename geyser plugin interface when patch
2024-03-03 12:31:24 +08:00
Yihau Chen d223a43096
ci: update anchor downstream project (#35274)
* Update build downstream projects script (#35262)

* fix patch-crates.sh doesn't pass the real variables

* fix downstream project anchor doesn't be triggered correctly

---------

Co-authored-by: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com>
2024-02-21 22:30:55 +08:00
steviez 86b5f3cde7
Revert "Update build downstream projects script (#35262)" (#35272)
This reverts commit 4022434576.
2024-02-20 23:33:04 -06:00
Lucas Steuernagel 4022434576
Update build downstream projects script (#35262) 2024-02-20 18:21:16 -03:00
Ryo Onodera a1be1042a9
Make check{2,3} faster by enabling parallel rustc for dcou (#34739)
Try to make check3 faster
2024-01-11 13:16:47 +09:00
GoodDaisy 03386cc7b9
Fix typos (#34459)
* Fix typos

* Fix typos

* fix typo
2023-12-21 13:06:00 -07:00
Yihau Chen 5247be17a9
ci: split cargo-clippy into stable and nightly (#34566)
* ci: split cargo-clippy into stable and nightly

* ci: update mergify
2023-12-22 03:28:41 +08:00
Tyera d4363526fe
Cargo needs version arg after subcommand (#34547) 2023-12-20 19:56:05 +00:00
Tyera 51c9963a60
cargo-install-all: use full path for sourcing (#34525)
Use full path for sourcing
2023-12-19 12:58:16 -07:00
Brooks e79c09bdc4
Refactors Accounts constructors (#34466) 2023-12-14 16:36:47 -05:00
Tyera e6e191f843
CI: add check for explicit spl-token-cli version (#34430)
* Add script to specify spl-token-cli version

* Add check for spl-token-cli version to CI

* Add minor release branch cleanup instruction to unblock CI on the new stable branch

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
2023-12-14 10:18:34 -07:00
Jon Cinque a1d2d6f150
ci: Test anchor-spl during downstream build (#34368)
* ci: Test anchor-spl during downstream build

* Also test anchor-client

* Update scripts/build-downstream-anchor-projects.sh

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>

* Specify features to use in build-sbf

---------

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2023-12-09 01:50:24 +01:00
Jon Cinque ae7713177c
ci: Add downstream build for anchor (#34343)
* ci: Add downstream build for anchor

* Fixup for shellcheck and job title
2023-12-07 13:02:24 +01:00
Illia Bobyr 8c5b5f18be
scripts/cargo-clippy.sh: Extract our non-trivial `cargo clippy` command (#33982)
CI uses a number of parameters when running `cargo clippy`.  Repeating
the same command manually requires some copy/pasting.  It is easier when
there is a common script that can be run by everyone.
2023-11-08 02:50:38 -08:00
Will Hickey 87b4dc64e3
Add --release-with-debug option to cargo-install-all.sh (#33383)
* Add --canary option to cargo-install-all for building with separate debug symbols

* lint

* Remove debug-assertions

* switch flag from --canary to --release-with-debug
2023-11-07 13:48:11 -06:00