Repository navigation
deps: Bump mollusk-svm to 0.17 and agave crates to 4.4 - #1662
Merged
Merged
Conversation
Mollusk 0.17 requires agave 4.4, which moves to solana-account 5, solana-transaction 5, solana-message 5, solana-keypair 4 and solana-signer 4. Bump the program's test dependencies to match, and migrate spl-token-client and spl-token-cli to the new SDK types. solana-sdk 5 always enables solana-account's `bincode` feature, which breaks solana-runtime 4.4, so replace solana-sdk in the clients with the individual component crates. solana-cpi doesn't route through program-test's syscall stubs off-chain, so the native test programs use solana-program 5's `program` wrappers. solana-account 5.2 deprecates `Account::new`, so the program's tests use `Account::new_with_data` instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joncinque
approved these changes
Nov 20, 2026
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.
Problem
mollusk-svmis on 0.16, and the latest release is 0.17.1. Mollusk 0.17 depends on agave 4.4, so thecargo updatemoves every agave crate in the lockfile from 4.3 to 4.4.1. Agave 4.4 uses new major versions of several SDK crates (solana-account5,solana-transaction5,solana-message5,solana-keypair4,solana-signer4). The clients still use the old versions, sospl-token-clientandspl-token-clistop compiling.Summary of changes
Program (Mollusk tests)
mollusk-svm0.16 → 0.17 and thesolana-accountdev-dependency 4 → 5.solana-account5.2 deprecatesAccount::new, so the 137 test call sites inprocessor.rsandassert_instruction_count.rsnow useAccount::new_with_data(lamports, vec![0; space], owner). That creates the same zero-filled account.spl-token-client(rust-legacy) andspl-token-clisolana-account5,solana-message5,solana-transaction5 andsolana-signer4.solana-instructionto 3.5.1, the first 3.x release that re-exports the v4 types thatsolana-message5 expects.solana-sdkand use the individual component crates instead.solana-sdk5 always enablessolana-account'sbincodefeature, andsolana-runtime4.4.1 doesn't compile with it on: its inherent bincodenew_datatakes precedence over the wincode trait method that the runtime calls. Staying onsolana-sdk4 would mix old and new SDK types. All 52 affected files only change theirusestatements (no logic changes), and the new crates are listed in each manifest.interest_bearing_mint.rs,scaled_ui_amount.rsandtoken_metadata_emit.rsnow callinvokeandget_return_datathroughsolana_program::program(v5). Off-chain,solana-cpidoesn't use program-test's syscall stubs, andget_return_data()would returnNone.spl-token-client, because its public API now usessolana-transaction5,solana-signer4 and the other new types. Its next release needs a breaking version bump (0.21 → 0.22).Testing
Locally:
make build-sbf-programandmake build-sbf-confidential-elgamal-registrymake test-*for every package inRUST_PACKAGES, includinginterface(124 tests),program(97) andclients-rust-legacy(252), and all theconfidential-*cratesmake clippy-*for every Rust package withnightly-2026-07-16and-D warningscargo +nightly-2026-07-16 fmt --checkandmake auditNot run locally: the
clients-clicommandintegration test. It startssolana-test-validator, and agave 4.4'sagave-fsasserts that io_uring is available, which my container doesn't allow. The other CLI test binaries pass. Please check this job in CI.🤖 Generated with Claude Code