Commit Graph

251 Commits

Author SHA1 Message Date
Jon C 6f2b6f2471
CI: Pin downstream SPL job to v2.0 branch (#3384)
CI: Pin downstrem SPL job to v2.0 branch

##### Problem

SPL is about to update to use the v2.1 crates, which will cause the
downstream jobs to fail for branch v2.0.

#### Summary of changes

Checkout the `v2.0` branch from the SPL repo for the downstream tests.
2024-10-30 18:16:48 +00:00
mergify[bot] 2788c950aa
v2.0: ci: remove deprecated macos-12 image (backport of #3202) (#3207)
ci: remove deprecated macos-12 image (#3202)

ci: use macos-13 for client_targets pipeline
(cherry picked from commit c6e8239843)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-10-24 17:09:18 +08:00
mergify[bot] c70d9d3f31
v2.0: link openssl statically for Windows (backport of #3118) (#3156)
link openssl statically for Windows (#3118)

* ci: fix windows pipeline

* vendor openssl for windows

* add comment for the workaround

(cherry picked from commit 49d2298762)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-10-15 13:15:34 +08:00
mergify[bot] 600cfbb10b
v2.0: CI: Disable downstream anchor builds (backport of #2629) (#2647)
* CI: Disable downstream anchor builds (#2629)

#### Problem

With https://github.com/solana-labs/solana-program-library/pull/7148,
spl-token-2022 has moved from using solana-zk-token-sdk to
solana-zk-sdk, which is a major breaking change. Certain agave and
anchor crates are depending on the re-export solana-zk-token-sdk in
spl-token-2022, which is no longer present. This change is causing the
downstream Anchor job to fail, since the patched version of
spl-token-2022 is no longer compatible.

#### Summary of changes

Until new major versions of the SPL crates are available used by the
Agave monorepo, disable the downstream anchor job.

(cherry picked from commit 3b9e7a3ca5)

# Conflicts:
#	.github/workflows/downstream-project-anchor.yml

* Fix merge conflicts

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-08-17 12:07:56 -04:00
mergify[bot] c6b0570fff
v2.0: ci: "Fix" the downstream anchor build (backport of #2208) (#2214)
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>
2024-07-19 22:19:03 +00:00
mergify[bot] a9c5cbd743
v2.0: ci: update docs pipeline (backport of #2162) (#2170)
ci: update docs pipeline (#2162)

Co-authored-by: yihau <yihau.chen@icloud.com>
2024-07-19 21:49:20 +08:00
mergify[bot] c18c8f72d3
v2.0: ci: skip spl test when version is too high (backport of #1945) (#1961)
ci: skip spl test when version is too high (#1945)

(cherry picked from commit 4d9d27f1ff)

Co-authored-by: Yihau Chen <yihau.chen@icloud.com>
2024-07-02 14:42:25 -05:00
Yihau Chen 9d7f0c148f
v2.0: add .github/CODEOWNERS (#1833) 2024-06-24 15:28:28 -05:00
Yihau Chen f7dad6d44c
ci: upgrade client-traget macos version (#1765) 2024-06-17 18:20:57 +00:00
Yihau Chen c30f173004
ci: print spl commit hash for downstream tests (#1718)
* ci: print the commit hash of spl that is using in downstream project tests

* ci: trigger spl downstream tests correctly
2024-06-13 11:11:25 +00: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
Yihau Chen d95bac62b4
ci: use macos-latest for macos clippy (#1607) 2024-06-06 01:30:24 +08:00
Yihau Chen 805d9c36a3
chore: bump sccache to 0.8.1 (#1557) 2024-06-04 09:49:25 +00:00
Yihau Chen a31353ce0d
ci: update crate owner pipeline (#1497)
* ci: update crate owner pipeline

* trigger pipeline correctly

* XXX test pipeline

* Revert "XXX test pipeline"

This reverts commit e45c23012c41b25164c44ec6204f26e3369bee4d.

* use a proper name

* XXX: trigger pipeline

* Revert "XXX: trigger pipeline"

This reverts commit 54397d3b64dc43d6338852cf926488838743198c.
2024-05-30 11:05:08 +08:00
Yihau Chen 510a3b297d
ci: update dependabot pipeline (#1498) 2024-05-28 13:28:06 +08:00
Lucas Ste 08c658dc55
Integrate test-vectors bpf-loader in SVM (#1386)
* Integrate test-vectors bpf-loader
2024-05-27 16:58:51 -03:00
Yihau Chen fae454aa4c
ci: update dependabot pipeline (#1496)
* ci: use pull_request_target for dependabot pr pipeline

* use both strict rule and loose rule

* upper-case

* Revert "ci: use pull_request_target for dependabot pr pipeline"

This reverts commit 8745388881f5142872e76beef5dd0edcf5684af9.
2024-05-27 22:02:29 +08:00
Yihau Chen ff21dbedde
ci: move dependabot updating process to Gtihub Actions (#1466)
* add dependabot-pr Github Actions

* move updating dependabot pr process to Github Actions

* update user.email and user.name to dependabot itself

* only add for cargo.lock

* don't push anything if nothing to update
2024-05-27 12:26:21 +08:00
Jon C 595d361f3b
CI: Add Anchor v0.30.0 as a downstream target (#1441) 2024-05-21 11:55:06 +08:00
Jon C a145068415
ci: Re-enable downstream SPL CLI tests and check (#1385)
* ci: Re-enable downstream SPL CLI tests

* Also run check command
2024-05-16 17:34:41 +02:00
Yihau Chen 31cea342f2
chore: remove CODEOWNERS from master (#1024) 2024-04-24 23:41:38 +08:00
Yihau Chen 748db10448
chore: add CODEOWNERS (#957) 2024-04-24 13:04:15 +08:00
Yihau Chen 1cee392637
ci: remove increment-cargo-version-on-release.yml (#494) 2024-04-01 10:41:21 +08:00
Yihau Chen bfd69b069f
chore: bump to actions/checkout@v4 (#495) 2024-04-01 10:41:00 +08:00
Yihau Chen b1e17998b6
ci: fix some issues for the release pipeline (#493)
* add TRIGGERED_BUILDKITE_TAG to the pipeline

* publish a pre-release for the release id
2024-03-29 20:56:54 +08:00
Yihau Chen 212cbdbc4e
ci: add release pipeline (#466) 2024-03-29 11:41:53 +08:00
Jon C 261b3e9ee7
CI: Add windows clippy job and fix clippy errors (#330)
* CI: Run clippy on windows

* Update cargo-clippy-before-script.sh for Windows

* Pacify clippy
2024-03-20 13:21:00 +01:00
Yihau Chen 14454a4a00
ci: remove unused Github Actions (#124) 2024-03-12 11:42:21 +08:00
Yihau Chen 3863bb1bdf
ci: fix Windows gh release pipeline (#165) 2024-03-11 12:29:24 +08:00
Jon C b78c0703ff
windows: Use vcpkg for openssl dep (#73) 2024-03-05 12:28:12 +01: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 91e3dd2250 [anza migration] ci: removed unused s3 upload in Windows build (#9)
ci: removed unused s3 upload in Windows build
2024-03-03 12:31:24 +08:00
Yihau Chen 58e9a19f11 [anza migration] ci: fix path (#8)
* ci: fix windows build

* ci: publish sdk docker image with the new name

* update automerge status
2024-03-03 12:31:24 +08:00
Yihau Chen 9355518424 [anza migration] replace binaries backend (#6)
* ci: add upload-gcs-artifact

* ci: publish release binaries to GCS

* ci: redirect github repo to anza-xyz

* ci: publish windows binaries to GCS

* replace release.solana.com with release.anza.xyz

* use a explicit name for credential
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
Yihau Chen 0e90e985dd
ci: use openssl 3.1.1 for Windows build (#34795) 2024-01-16 17:11:19 +00:00
Yihau Chen e31a45ad0c
ci: use larger runner for macos stable clippy (#34745) 2024-01-11 23:51:57 +08:00
Yihau Chen 74df203dd4
ci: cancel the previous build when a new commit lands (#34733) 2024-01-10 18:33:39 +00:00
Yihau Chen e3df207963
ci: use larger runner for macos nightly clippy (#34725)
* ci: using larger runner for macos nightly clippy

* update mergify rules
2024-01-11 01:26:20 +08:00
Illia Bobyr c5d51acda8
GitHub workflows: Disable cron schedule for forks (#34703)
Forks will run all the cron schedules.  And I do not think they benefit
from those.  For the downstream project checks, these runs are actually
very expensive - about an hour of run time per execution.  Easily
draining free account limits.
2024-01-09 16:54:31 -08: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
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
Yihau Chen 4832b4ecec
ci: add macos clippy test (#34272)
* ci: add clippy test for macos and windows

* ci: remove windows from clippy test

* ci: cancel cargo clippy on Github Actions when new commits comming

* ci: set -e for .github/scripts/cargo-clippy-before-script.sh
2023-12-01 00:59:45 +08:00
Yihau Chen 1ce91a56a5
ci: fixed sccache version for sccache-action (#33904) 2023-10-27 16:51:34 +00:00
Will Hickey e5dfc9cb27
Add check for CHANGELOG.md change when changelog label applied to PR (#33675)
* Add check for CHANGELOG.md change when changelog label applied to PR

* Update changelog
2023-10-20 11:01:52 -05:00
mvines 3008cd8ac1
Add SIMD field to feature gate issue template (#33495) 2023-10-03 09:32:13 -07:00
Yihau Chen bdc4cbba47
ci: fix Windows build (#33467)
ci: fix windows build
2023-09-30 01:46:54 +08:00
Jon Cinque f502dbc54e
ci: Re-enable spl-stake-pool downstream job (#33425) 2023-09-27 17:37:28 +02:00
Yihau Chen 4d96c384a1
ci: install openssl for the Windows build (#33356) 2023-09-22 10:52:28 +08:00
Tyera bca41edf20
Make active stake consistent in split (#33295)
* Add feature gate

* Add helper fn

* Require split destination to be rent-exempt if it is active

* Update cli to prefund split accounts

* cli: require rent param with sign-only

* Update tokens to prefund split accounts

* Update split tests with sysvar accounts

* Fix test_split_to_account_with_rent_exempt_reserve

* Fix test_staked_split_destination_minimum_balance

* Fix test_split_more_than_staked

* Fix test_split_minimum_stake_delegation and remove misleading StakeState::Initialized case

* Fix test_split_from_larger_sized_account

* Add test for pre-/post-activation behavior splitting some or all of stake account

* Assert active stake

* Fix runtime test

* Ignore stake-pool downstream

* Review comments

* Feature gate sysvar reads
2023-09-20 06:00:51 +00:00