rest-for-physics / rest-for-physics/framework

GitHub Actions framework cache not working as expected

Open
#411 0 comments 0 reactions 1 assignee View on GitHub

@lobis is already working on this.

Since May 8, 2023.

  • #365 by @lobis — open
bug
Dominant language
C++
Stars
19
Forks
14
PR merge metrics
No merged PRs in 30d

Description

When debugging the following PR: https://github.com/rest-for-physics/framework/pull/365 I found an error in the GitHub Actions workflow.

It seems that the caching of the framework is instead restoring the cache (because a key already exists) but this should be unique each workflow run, so this should not happen. One can see this in the following run:

https://github.com/rest-for-physics/framework/actions/runs/4913830534/jobs/8774448343

In particular the workflow is failing because the installation directory for Garfield differs between Docker images, the installation with the correct image is not being saved into the cache because the key is already populated.

I guess we should use a more robust cache key identifier so this cannot happen.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.