actions / actions/cache

Unexpected errors without any logs

Open
#1,449 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

What's going on

We've been experiencing this issue that's inconsistent but has been happening very frequently.

Frequent failing workflow Less frequent failing workflow
image image

I'd like to reiterate that there are no logs around that, absolutely nothing we could find that could point us to a root cause we can work on.

There are a few things we tried, though.

What we did so far

  • We cleared GitHub Actions cache as it was 6 times the limit, surprisingly.
  • We increased the timeout on the runner. It doesn't get to half of it.

I suppose I can't share a lot but I'll pick up as much as I can that I believe could help.

What we have

  • Our runners are all runs-on: ubuntu-22.04 and its variations like ubuntu-22.04-16core.
  • A few other spots make use of actions/cache/restore and actions/cache/save steps to handle cache, and that seems to work fine.
  • The job that fails frequently has timeout-minutes: 30, and it doesn't get to half of it. The less frequent one has timeout-minutes: 15, and it doesn't top that.
  • Not sure if that matters, but we have both Python and NodeJS cache definitions in the same job.
  • Our Yarn cache is around 2.2GB last time I checked. Python one is around 41MB.
  • The with key that was logged:
  with:
    path: ~/.cache/yarn/
    key: Linux-yarn-<files hash>
    save-always: true
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false

Etc.

I think it's likely an issue with GHA or even our setup, but we ran out of options almost a month ago and have been struggling without an answer.

Appreciate any help in advance!

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 by isolating the failing GitHub Actions workflows, comparing their ubuntu-22.04 runner configuration, timeout-minutes values, and cache steps. Review the actions/cache restore and save usage alongside the Yarn and Python cache settings; done means identifying a reproducible cause for the silent failure and documenting the evidence or a confirmed fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js, python, ubuntu
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.