Repository navigation
Move the Anchor CI jobs to Solana CLI 4.3.2 - #217
Open
mikemaccana wants to merge 1 commit into
Open
mikemaccana wants to merge 1 commit into
mikemaccana wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
anchor.ymlandanchor-v1.ymlinstalled Solana CLI 3.1.14 viarelease.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 thesolana-*crates in that range (3134c69b). So CI was building the.sowith 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
3134c69bavoids 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.ymlalready 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.ymlandsolana-asm.ymlreach the CLI throughheyAyushh/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
.sowithcargo build-sbfand 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:
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