Skip to content

Move the Anchor CI jobs to Solana CLI 4.3.2 - #217

Open
mikemaccana wants to merge 1 commit into
mainfrom
claude/anchor-ci-solana-cli-4-3-2
Open

mikemaccana wants to merge 1 commit into
mainfrom
claude/anchor-ci-solana-cli-4-3-2

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

anchor.yml and anchor-v1.yml installed Solana CLI 3.1.14 via release.anza.xyz. Agave's current release is 4.4.1, and the examples pin the Agave crates at ~4.3 — LiteSVM 0.18.1 resolves the solana-* crates in that range (3134c69b). So CI was building the .so with a toolchain two majors older than the runtime that executes it in the tests.

What changed

Install 4.3.2, fetched from the GitHub release asset rather than release.anza.xyz.

Why 4.3.2 and not 4.4.1 — it matches the crate line the examples pin. 4.4.x is deliberately avoided here for the same reason 3134c69b avoids it: LiteSVM 0.18.1 does not compile against Agave 4.4.0. Bump this together with those crate pins.

Why the GitHub release and not the installer — that host has no usable artefact for parts of the 4.x line; the beta-channel comments in native.yml already record a 404 for v4.0. The release asset is a plain static URL and needs no GitHub API call, so it also sidesteps the API rate limiting that made the other workflows pin an exact version in the first place.

Scope

Only the two Anchor workflows. native.yml, pinocchio.yml, quasar.yml and solana-asm.yml reach the CLI through heyAyushh/setup-solana, whose behaviour on 4.3.2 I have not tested, and their pins carry their own documented reasons — leaving them alone.

Testing

Under 4.3.2 locally, all twelve Anchor projects touched by the stored-bump work build a .so with cargo build-sbf and pass their LiteSVM suites — 12/12, with token-swap at 28 tests per variant.

The install snippet in this diff was run exactly as written and produces:

solana-cli 4.3.2 (src:a2033000; feat:c9ad34d2, client:Agave)
cargo-build-sbf 4.4.0
platform-tools v1.57
rustc 1.95.0

Both workflow files parse as YAML. CI on this PR is the real test of the two jobs end-to-end.

One thing reviewers should know: a newer CLI also raises the host-side MSRV. Agave 4.3.2's dev-dependencies need rustc ≥ 1.97.1, which was a real blocker locally. GitHub runners track stable closely so this should be a non-issue, but it is the most likely way this PR goes red.


Generated by Claude Code

The two Anchor workflows installed Solana CLI 3.1.14 through
release.anza.xyz. Agave's current release is 4.4.1, and the examples
themselves pin the Agave crates at ~4.3: LiteSVM 0.18.1 resolves the
solana-* crates in that range (3134c69). So CI was building the .so
with a toolchain two major versions older than the runtime that executes
it in the tests.

Install 4.3.2 instead, matching the pinned crate line rather than
jumping to 4.4.x, which the examples deliberately avoid because LiteSVM
0.18.1 does not compile against Agave 4.4.0.

Fetch it from the GitHub release instead of release.anza.xyz. That host
has no usable artefact for parts of the 4.x line - the beta-channel
comments in native.yml record a 404 for v4.0 - whereas the release asset
is a plain static URL. It needs no GitHub API call either, so it avoids
the rate limiting that made the other workflows pin an exact version.

Only anchor.yml and anchor-v1.yml change. native.yml, pinocchio.yml,
quasar.yml and solana-asm.yml reach the CLI through
heyAyushh/setup-solana, whose behaviour on 4.3.2 is untested here, and
their pins carry their own documented reasons.

Verified locally with 4.3.2: all twelve Anchor projects whose programs
changed in the stored-bump work build a .so with `cargo build-sbf` and
pass their LiteSVM suites, token-swap at 28 tests per variant. The
install snippet in this diff was run as written and yields
solana-cli 4.3.2 with cargo-build-sbf 4.4.0 and platform-tools v1.57.

Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants