-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.yaml workflow fails because of cache corruption after upgrading to anchor 0.31.0 #3
Comments
Hey, thank you very much for the issue. I have not updated yet to anchor 0.31.0 yet. I hope i will have time to do that early next week. If you find a fix would be great if you could pr it. 🥰 The cache should cache depending on the anchor version so there should not be a conflict with earlier versions idealy 🤔 |
@Woody4618 It looks like the problem went away after upgrading to solana_version 2.1.16. I will keep you updated if I see it failing again. |
@Woody4618 I was too fast, it now breaks again in the same way |
Can you please share your repository so i can debug it? |
@Woody4618 I managed to reproduce it with the hello_solana program from https://github.com/solana-developers/program-examples https://github.com/borisnieuwenhuis/hello_solana/actions/runs/14191008320/job/39755473572 |
Sorry it is a bit of a mess now, I will redo it with a pr, so you can see what I changed |
@Woody4618 here is a run from failing pr https://github.com/borisnieuwenhuis/hello_solana3/actions/runs/14196427580 and here is the pr |
After upgrading our setup to the new Anchor version 0.31.0 and also an Solana version upgrade to 2.1.0
From Anchor.toml
`
anchor_version = "0.31.0"
solana_version = "2.1.0"
`
the tests pipelines based on https://github.com/solana-developers/github-workflows/blob/main/.github/workflows/test.yaml started to randomly fail in step
Run solana-developers/github-actions/[email protected]
The error shown is
Run echo "Running tests for program: coordinator" Running tests for program: coordinator Error: Failed to list installed
solana` versionsStack backtrace:
0: anyhow::error::::msg
1: anchor_cli::override_toolchain::override_solana_version
2: anchor::main
3: std::sys::backtrace::__rust_begin_short_backtrace
4: main
5:
6: __libc_start_main
7: _start
Error: Process completed with exit code 1.
Run echo "Tests failed! Check the logs above for details."
Tests failed! Check the logs above for details.
Error: Process completed with exit code 1.
`
Deleting the github action caches fixes it for some finite time after which it starts failing again.
The text was updated successfully, but these errors were encountered: