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

Switch to v4 of actions/cache; add documentation about it; explicitly check runner arch. #4287

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

deitch
Copy link
Contributor

@deitch deitch commented Sep 24, 2024

Does the following three things in one file:

  1. Switch to v4 of actions/cache. That action has a nasty bug in that it depends on the absolute path to the directory being cached. That means that if you save on one runner type and restore on another, it will fail the restore. Not 100% clear that v4 fixes it.
  2. Add documentation about why we use actions/cache in the way we do, rather than separate actions/cache/save.
  3. For eve job, we would assume the runner is amd64, which will not hold forever. Instead, explicitly check it.

I also added some logging output, to be sure these changes take correctly.

If v4 does not solve it, we may need to take some more manual steps, which I prefer not.

… check runner arch.

Does the following three things in one file:

1. Switch to v4 of actions/cache. That action has a nasty bug in that it depends on the absolute path to the directory being cached. That means that if you save on one runner type and restore on another, it will fail the restore. Not 100% clear that v4 fixes it.
2. Add documentation about why we use actions/cache in the way we do, rather than separate actions/cache/save.
3. For `eve` job, we would assume the runner is amd64, which will not hold forever. Instead, explicitly check it.

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch force-pushed the cache-cross-runners branch from 9a6f99d to a2dfdfa Compare September 24, 2024 13:13
@OhmSpectator
Copy link
Member

Let's try to merge and see if it helps for other PRs...

@OhmSpectator OhmSpectator merged commit 6dc7e1e into lf-edge:master Sep 24, 2024
33 checks passed
@deitch deitch deleted the cache-cross-runners branch September 24, 2024 16:22
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

Successfully merging this pull request may close these issues.

3 participants