From c1584ad64275312974d80ed25007cdf2dcda4bfb Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Jun 2026 19:46:17 +0000 Subject: [PATCH] ci(asm): pin sbpf to last pre-v3 revision to fix InvalidAccountData The ASM workflow installed the sbpf assembler from the branch HEAD with an unpinned `cargo install --git`, making the build non-reproducible. On 2026-06-29 sbpf merged its SBPF v3 work (PR #127), switching the emitted ELF to the v3 / 0x03 OS-ABI format. The pinned litesvm 0.11.0 loader rejects that format, so every asm example began failing at `svm.add_program(...).unwrap()` with `Instruction(InvalidAccountData)` (checking-accounts, create-account, hello-solana, transfer-sol). Pin sbpf to 0223df0e (the last commit before the v3 changes, which matches the toolchain from the last green run) so the build is reproducible and compatible with litesvm 0.11.0. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_015ZgWN7hk3QzLuoDUPYrvdj --- .github/workflows/solana-asm.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index 64acfc3b..06ed973e 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -199,8 +199,17 @@ jobs: # Make the script executable chmod +x build_and_test.sh - # Install sbpf assembler - cargo install --git https://github.com/blueshift-gg/sbpf.git + # Install sbpf assembler. + # + # Pin to a specific revision: installing from the branch HEAD makes the + # build non-reproducible and breaks CI whenever sbpf changes its output. + # On 2026-06-29 sbpf merged its SBPF v3 work (PR #127), switching the + # emitted ELF to the v3 / 0x03 OS-ABI format. litesvm 0.11.0's loader + # rejects that format, so every asm test started failing at + # `svm.add_program(...).unwrap()` with Instruction(InvalidAccountData). + # This rev is the last commit before the v3 changes and matches the + # toolchain from the last green run; bump it together with litesvm. + cargo install --git https://github.com/blueshift-gg/sbpf.git --rev 0223df0e7ba622d4956b4ecf3cf2397f6945b76b - name: Setup Solana Stable uses: heyAyushh/setup-solana@v5.9 with: