ci: "Fix" the downstream anchor build (#2208)
* ci: "Fix" the downstream anchor build
* Force the CI run to happen
(cherry picked from commit fe652ca59e)
Co-authored-by: Jon C <me@jonc.dev>
* 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
* 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
* 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
* 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>
* 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>
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.
* 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
These options are now disallowed on the command line for
solana-validator and solana-ledger-tool, which effectively means no more
snapshots will be created with this types in normal usecases. However,
support for reading the deprecated types is still in place.
* 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>