-
Notifications
You must be signed in to change notification settings - Fork 109
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
Skip install if cargo binaries recovered from cache on CI #402
Comments
Oddly, in other cases it works fine. |
It probably has to do whether cache was picked up or not? (e.g. if it expired) |
The run I linked says |
Ah no I see what you mean. It was recovered in that case. Ah I think I know what it is - probably there is a newer version of critcmp now and then I think Cargo considers it a conflict? |
Hm no there is no 0.1.9; super weird... |
Some useful info in comments here https://www.reddit.com/r/learnrust/comments/lexewr/the_difference_in_behaviour_when_running_cargo/
|
Still not sure why it would work sometimes then, but looks like we don't cache that file indeed: SpacetimeDB/.github/workflows/benchmarks.yml Lines 54 to 59 in ad366a7
|
More generally, it might be better to switch to the dedicated rust-cache action used by other projects: https://github.com/Swatinem/rust-cache I believe it would be more tested / reliable than whatever custom config we come up with. |
Yeah. I'm tempted to just modify benchmarks.yml today and then switch to that in the future. |
Also we're throwing out critcmp in #357 which should help |
Yeah I'd be happy with whatever temporary fix too; for now I just want to run it on my branches / PRs, but can't due to the error above. |
I think this was fixed. |
See https://github.com/clockworklabs/SpacetimeDB/actions/runs/6472740872/job/17573981627 - when
critcmp
is recovered from Github cache,cargo install
fails because it's already installed.The text was updated successfully, but these errors were encountered: