actions / actions/cache

Breaks `actions/checkout` when running concurrently with it

Open
#1,793 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I use caching action like this:

      - name: Restore cache
        uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
        with:
          path: &cache-path |
            ~/.cargo/registry
            ~/.cargo/git
          key: &cache-key ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.toml') }}
          restore-keys: |
            ${{ runner.os }}-${{ runner.arch }}-cargo-

And I strongly suspect it breaks actions/checkout when running concurrently with it, despite the fact that I'm not caching anything from working directory that would impact it: https://github.com/actions/checkout/issues/2484

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.

Research direction

Start with the provided actions/cache/restore workflow and the linked actions/checkout issue #2484. Reproduce the concurrent checkout and cache execution, then determine whether the reported breakage is caused by actions/cache; done means documenting a reliable reproduction and an agreed fix or clear confirmation that the interaction is safe.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.