Skip to content

Commit f5616db

Browse files
ci: pin solana-cli-version to 3.1.14, document rate-limit cause
The 'stable' resolver in setup-anchor / setup-solana queries the unauthenticated GitHub Releases API for anza-xyz/agave, which 429s once CI runs at any meaningful volume. After 5 retries it returns empty and the subsequent install curl 404s, leaving CI without solana installed at all - this is what was breaking main and what was making this PR red. Pinning to 3.1.14 (current value of 'stable') makes CI deterministic. The 'beta' canary jobs in native/pinocchio/solana-asm are intentionally left floating.
1 parent 96b45fc commit f5616db

5 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/anchor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ jobs:
138138
- uses: heyAyushh/setup-anchor@v4.999
139139
with:
140140
anchor-version: 1.0.0
141-
# Sometimes Anza's stable resolves to a release whose binaries aren't published yet
142-
solana-cli-version: stable
141+
# Pinned because setup-anchor's resolver for 'stable' hits the
142+
# unauthenticated GitHub API and frequently 429s, leaving CI without
143+
# solana installed. Bump alongside anchor-version.
144+
solana-cli-version: 3.1.14
143145
- name: Install Surfpool
144146
run: curl -sL https://run.surfpool.run/ | bash
145147
- name: Display Versions

.github/workflows/native.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,10 @@ jobs:
222222
- name: Setup Solana Stable
223223
uses: heyAyushh/setup-solana@v5.9
224224
with:
225-
# Sometimes Anza's stable resolves to a release whose binaries aren't published yet
226-
solana-cli-version: stable
225+
# Pinned because setup-anchor's resolver for 'stable' hits the
226+
# unauthenticated GitHub API and frequently 429s, leaving CI without
227+
# solana installed. Bump alongside anchor-version.
228+
solana-cli-version: 3.1.14
227229
- name: Build and Test with Stable
228230
run: |
229231
source build_and_test.sh

.github/workflows/pinocchio.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,10 @@ jobs:
222222
- name: Setup Solana Stable
223223
uses: heyAyushh/setup-solana@v5.9
224224
with:
225-
# Sometimes Anza's stable resolves to a release whose binaries aren't published yet
226-
solana-cli-version: stable
225+
# Pinned because setup-anchor's resolver for 'stable' hits the
226+
# unauthenticated GitHub API and frequently 429s, leaving CI without
227+
# solana installed. Bump alongside anchor-version.
228+
solana-cli-version: 3.1.14
227229
- name: Build and Test with Stable
228230
run: |
229231
source build_and_test.sh

.github/workflows/quasar.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,10 @@ jobs:
197197
- name: Setup Solana Stable
198198
uses: heyAyushh/setup-solana@v5.9
199199
with:
200-
# Sometimes Anza's stable resolves to a release whose binaries aren't published yet
201-
solana-cli-version: stable
200+
# Pinned because setup-anchor's resolver for 'stable' hits the
201+
# unauthenticated GitHub API and frequently 429s, leaving CI without
202+
# solana installed. Bump alongside anchor-version.
203+
solana-cli-version: 3.1.14
202204
- name: Install Quasar CLI
203205
# Pinned to quasar rev 3d6fb0d8 (the HEAD this migration was written
204206
# against, immediately after PRs #195 + #196). The next merged PR

.github/workflows/solana-asm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ jobs:
188188
- name: Setup Solana Stable
189189
uses: heyAyushh/setup-solana@v5.9
190190
with:
191-
# Sometimes Anza's stable resolves to a release whose binaries aren't published yet
192-
solana-cli-version: stable
191+
# Pinned because setup-anchor's resolver for 'stable' hits the
192+
# unauthenticated GitHub API and frequently 429s, leaving CI without
193+
# solana installed. Bump alongside anchor-version.
194+
solana-cli-version: 3.1.14
193195
- name: Build and Test with Stable
194196
run: |
195197
source build_and_test.sh

0 commit comments

Comments
 (0)