Skip to content
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

Open
borisnieuwenhuis opened this issue Mar 13, 2025 · 7 comments

Comments

@borisnieuwenhuis
Copy link

borisnieuwenhuis commented Mar 13, 2025

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 installedsolana` versions

Stack 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.

@borisnieuwenhuis borisnieuwenhuis changed the title test.yaml files fail because of cache corruption after upgrading to anchor 0.31.0 test.yaml pipelines fail because of cache corruption after upgrading to anchor 0.31.0 Mar 13, 2025
@borisnieuwenhuis borisnieuwenhuis changed the title test.yaml pipelines fail because of cache corruption after upgrading to anchor 0.31.0 test.yaml workflow fails because of cache corruption after upgrading to anchor 0.31.0 Mar 13, 2025
@Woody4618
Copy link
Collaborator

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 🤔

@borisnieuwenhuis
Copy link
Author

@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.

@borisnieuwenhuis
Copy link
Author

@Woody4618 I was too fast, it now breaks again in the same way

@Woody4618
Copy link
Collaborator

Can you please share your repository so i can debug it?

@borisnieuwenhuis
Copy link
Author

@borisnieuwenhuis
Copy link
Author

Sorry it is a bit of a mess now, I will redo it with a pr, so you can see what I changed

@borisnieuwenhuis
Copy link
Author

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

No branches or pull requests

2 participants