Skip to content

Commit 7aa76e9

Browse files
committed
Merge commit '11a84a4e1dda3ea792ee2bcf4ce21ef3a009c6fb' into HEAD
2 parents af401de + 11a84a4 commit 7aa76e9

File tree

247 files changed

+5049
-2523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+5049
-2523
lines changed

.buildkite/scripts/build-stable.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ partitions=$(
1313
{
1414
"name": "partitions",
1515
"command": "ci/docker-run-default-image.sh ci/stable/run-partition.sh",
16-
"timeout_in_minutes": 30,
16+
"timeout_in_minutes": 25,
1717
"agent": "$agent",
18-
"parallelism": 2,
18+
"parallelism": 5,
1919
"retry": 3
2020
}
2121
EOF

.github/scripts/downstream-project-spl-common.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@
22
set -e
33

44
here="$(dirname "${BASH_SOURCE[0]}")"
5+
program="$1"
56

67
#shellcheck source=ci/downstream-projects/common.sh
78
source "$here"/../../ci/downstream-projects/common.sh
89

910
set -x
10-
rm -rf spl
11-
git clone https://github.com/solana-labs/solana-program-library.git spl
11+
rm -rf "${program}"
12+
git clone https://github.com/solana-program/"${program}".git
1213

1314
# copy toolchain file to use solana's rust version
14-
cp "$SOLANA_DIR"/rust-toolchain.toml spl/
15-
cd spl || exit 1
15+
cp "$SOLANA_DIR"/rust-toolchain.toml "${program}"/
16+
cd "${program}" || exit 1
1617
echo "HEAD: $(git rev-parse HEAD)"
1718

18-
project_used_solana_version=$(sed -nE 's/solana-sdk = \"[>=<~]*(.*)\"/\1/p' <"token/program/Cargo.toml")
19+
project_used_solana_version=$(sed -nE 's/solana = \"(.*)\"/\1/p' <"Cargo.toml")
1920
echo "used solana version: $project_used_solana_version"
2021
if semverGT "$project_used_solana_version" "$SOLANA_VER"; then
2122
echo "skip"
2223
export SKIP_SPL_DOWNSTREAM_PROJECT_TEST=1
2324
return
2425
fi
2526

26-
./patch.crates-io.sh "$SOLANA_DIR"
27+
update_solana_dependencies . "$SOLANA_VER"
28+
patch_crates_io_solana Cargo.toml "$SOLANA_DIR"

.github/scripts/downstream-project-spl-install-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
set -e
33

44
sudo apt-get update
5-
sudo apt-get install libudev-dev binutils-dev libunwind-dev protobuf-compiler -y
5+
sudo apt-get install libudev-dev protobuf-compiler -y

.github/workflows/downstream-project-anchor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ env:
3838

3939
jobs:
4040
test:
41-
if: github.repository == 'anza-xyz/agave'
41+
#if: github.repository == 'anza-xyz/agave'
42+
if: false # restore once all program-specific repos are ready
4243
runs-on: ubuntu-latest
4344
strategy:
4445
matrix:

.github/workflows/downstream-project-spl.yml

Lines changed: 36 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- v[0-9]+.[0-9]+
1212
paths:
1313
- "**.rs"
14+
- "rust-toolchain.toml"
1415
- "Cargo.toml"
1516
- "Cargo.lock"
1617
- "cargo-build-sbf"
@@ -39,6 +40,20 @@ jobs:
3940
check:
4041
if: github.repository == 'anza-xyz/agave'
4142
runs-on: ubuntu-latest
43+
strategy:
44+
matrix:
45+
programs:
46+
- associated-token-account
47+
- feature-proposal
48+
- instruction-padding
49+
- memo
50+
- record
51+
- single-pool
52+
- slashing
53+
- stake-pool
54+
- token-2022
55+
# re-enable with https://github.com/buffalojoec/mollusk/pull/74
56+
# - token
4257
steps:
4358
- uses: actions/checkout@v4
4459

@@ -53,45 +68,20 @@ jobs:
5368
- shell: bash
5469
run: |
5570
source .github/scripts/downstream-project-spl-install-deps.sh
56-
source .github/scripts/downstream-project-spl-common.sh
71+
source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
5772
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
5873
exit 0
5974
fi
60-
6175
cargo check
6276
63-
test:
77+
test_cli:
6478
if: github.repository == 'anza-xyz/agave'
6579
runs-on: ubuntu-latest
6680
strategy:
6781
matrix:
68-
arrays:
69-
[
70-
{
71-
test_paths: ["token/cli"],
72-
required_programs:
73-
[
74-
"token/program",
75-
"token/program-2022",
76-
"associated-token-account/program",
77-
"instruction-padding/program",
78-
],
79-
},
80-
{
81-
test_paths: ["single-pool/cli"],
82-
required_programs:
83-
[
84-
"single-pool/program",
85-
],
86-
},
87-
{
88-
test_paths: ["token-upgrade/cli"],
89-
required_programs:
90-
[
91-
"token-upgrade/program",
92-
],
93-
},
94-
]
82+
programs:
83+
- single-pool
84+
- token-2022
9585
steps:
9686
- uses: actions/checkout@v4
9787

@@ -106,45 +96,30 @@ jobs:
10696
- shell: bash
10797
run: |
10898
source .github/scripts/downstream-project-spl-install-deps.sh
109-
source .github/scripts/downstream-project-spl-common.sh
99+
source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
110100
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
111101
exit 0
112102
fi
113-
114-
programStr="${{ tojson(matrix.arrays.required_programs) }}"
115-
IFS=', ' read -ra programs <<<"${programStr//[\[\]$'\n'$'\r' ]/}"
116-
for program in "${programs[@]}"; do
117-
$CARGO_BUILD_SBF --manifest-path "$program"/Cargo.toml
118-
done
119-
120-
testPathsStr="${{ tojson(matrix.arrays.test_paths) }}"
121-
IFS=', ' read -ra test_paths <<<"${testPathsStr//[\[\]$'\n'$'\r' ]/}"
122-
for test_path in "${test_paths[@]}"; do
123-
cargo test --manifest-path "$test_path"/Cargo.toml
124-
done
103+
$CARGO_BUILD_SBF --manifest-path program/Cargo.toml
104+
cargo test --manifest-path clients/cli/Cargo.toml
125105
126106
cargo-test-sbf:
127107
if: github.repository == 'anza-xyz/agave'
128108
runs-on: ubuntu-latest
129109
strategy:
130110
matrix:
131111
programs:
132-
- [token/program]
133-
- [
134-
instruction-padding/program,
135-
token/program-2022,
136-
token/program-2022-test,
137-
]
138-
- [
139-
associated-token-account/program,
140-
associated-token-account/program-test,
141-
]
142-
- [token-upgrade/program]
143-
- [feature-proposal/program]
144-
- [governance/addin-mock/program, governance/program]
145-
- [name-service/program]
146-
- [stake-pool/program]
147-
- [single-pool/program]
112+
- associated-token-account
113+
- feature-proposal
114+
- instruction-padding
115+
- memo
116+
- record
117+
- single-pool
118+
- slashing
119+
- stake-pool
120+
- token-2022
121+
# re-enable with https://github.com/buffalojoec/mollusk/pull/74
122+
# - token
148123
steps:
149124
- uses: actions/checkout@v4
150125

@@ -159,14 +134,8 @@ jobs:
159134
- shell: bash
160135
run: |
161136
source .github/scripts/downstream-project-spl-install-deps.sh
162-
source .github/scripts/downstream-project-spl-common.sh
137+
source .github/scripts/downstream-project-spl-common.sh "${{ matrix.programs }}"
163138
if [ -n "$SKIP_SPL_DOWNSTREAM_PROJECT_TEST" ]; then
164139
exit 0
165140
fi
166-
167-
programStr="${{ tojson(matrix.programs) }}"
168-
IFS=', ' read -ra programs <<<"${programStr//[\[\]$'\n'$'\r' ]/}"
169-
170-
for program in "${programs[@]}"; do
171-
$CARGO_TEST_SBF --manifest-path "$program"/Cargo.toml
172-
done
141+
$CARGO_TEST_SBF --manifest-path program/Cargo.toml

.mergify.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,26 @@ pull_request_rules:
6666
- or:
6767
- -files~=(\.rs|Cargo\.toml|Cargo\.lock|cargo-build-sbf|cargo-test-sbf|ci/downstream-projects/run-spl\.sh|\.github/workflows/downstream-project-spl\.yml)$
6868
- and:
69-
- status-success=cargo-test-sbf (token/program)
70-
- status-success=cargo-test-sbf (instruction-padding/program, token/program-2022, token/program-2022-test)
71-
- status-success=cargo-test-sbf (associated-token-account/program, associated-token-account/program-test)
72-
- status-success=cargo-test-sbf (token-upgrade/program)
73-
- status-success=cargo-test-sbf (feature-proposal/program)
74-
- status-success=cargo-test-sbf (governance/addin-mock/program, governance/program)
75-
- status-success=cargo-test-sbf (name-service/program)
76-
- status-success=cargo-test-sbf (stake-pool/program)
77-
- status-success=cargo-test-sbf (single-pool/program)
69+
- status-success=check (associated-token-account)
70+
- status-success=check (feature-proposal)
71+
- status-success=check (instruction-padding)
72+
- status-success=check (memo)
73+
- status-success=check (record)
74+
- status-success=check (single-pool)
75+
- status-success=check (slashing)
76+
- status-success=check (stake-pool)
77+
- status-success=check (token-2022)
78+
- status-success=test_cli (single-pool)
79+
- status-success=test_cli (token-2022)
80+
- status-success=cargo-test-sbf (associated-token-account)
81+
- status-success=cargo-test-sbf (feature-proposal)
82+
- status-success=cargo-test-sbf (instruction-padding)
83+
- status-success=cargo-test-sbf (memo)
84+
- status-success=cargo-test-sbf (record)
85+
- status-success=cargo-test-sbf (single-pool)
86+
- status-success=cargo-test-sbf (slashing)
87+
- status-success=cargo-test-sbf (stake-pool)
88+
- status-success=cargo-test-sbf (token-2022)
7889
- or:
7990
- -files~=(Cargo\.toml|.github/workflows/crate-check\.yml|ci/check-crates\.sh)$
8091
- check-success=crate check

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Release channels have their own copy of this changelog:
1717
* Changes
1818
* CLI:
1919
* Add global `--skip-preflight` option for skipping preflight checks on all transactions sent through RPC. This flag, along with `--use-rpc`, can improve success rate with program deployments using the public RPC nodes.
20-
* Unhide `--accounts-db-access-storages-method` for agave-validator and agave-ledger-tool
20+
* Unhide `--accounts-db-access-storages-method` for agave-validator and agave-ledger-tool and change default to `file`
2121
* Remove tracer stats from banking-trace. `banking-trace` directory should be cleared when restarting on v2.2 for first time. It will not break if not cleared, but the file will be a mix of new/old format. (#4043)
2222

2323
## [2.1.0]

0 commit comments

Comments
 (0)