actions / actions/checkout

Git LFS files modified on another PR messing up runs on other branches

Open
#883 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

Using this action with lfs: true and I create a PR which modifies some images used for snapshot tests, subsequent runs on the same CI machine with different branches that didn't even touch those files will often fail because the image file is not loaded properly. Any suggestions for how to fix this or why this is happening?

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 checkout action's behavior when lfs: true, then reproduce the sequence using one branch that modifies snapshot-test images followed by other branches on the same CI machine. A useful result would identify why files are not loaded correctly across runs and document a verified fix or workaround.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.