You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache miss when restoring within a reusable workflow #1271
Our organization uses a reusable workflow to build our docker images. We recently attempted to add caching to this workflow to speed up the build process. While we already use the cache action for our separate CI workflow, we've noticed the build workflow always fails to hit the cache and it's unclear why.
If they keys are identical, it's likely the version. Make sure that the paths are identical. I see that you're using a relative path.
Remember that if you have a workflow in myorg/repo1 that caches the folder folder the path is actually /home/runner/work/repo1/repo1/folder.
When you try to restore the path folder in repo2, it resolves to /home/runner/work/repo2/repo2/folder, which isn't a match.
Thanks! This resolved my issue.
One CI used ./my_folder relative path. Another CI used my_folder relative path. They pointed to exactly same absolute path but strings were different and I was getting cache miss.
Activity
cesarvarela commentedon Dec 14, 2023
Did you find a solution? It is happening on our project as well.
vavsab commentedon Jan 25, 2024
Thanks! This resolved my issue.
One CI used
./my_folderrelative path. Another CI usedmy_folderrelative path. They pointed to exactly same absolute path but strings were different and I was getting cache miss.