Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action does not cache on runner or cache server #1156

Open
2 of 5 tasks
phk-nord opened this issue Nov 5, 2024 · 1 comment
Open
2 of 5 tasks

action does not cache on runner or cache server #1156

phk-nord opened this issue Nov 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@phk-nord
Copy link

phk-nord commented Nov 5, 2024

Description:
We have a self hosted runner (ARC Runner Scale Set) and self hosted actions cache both running in k8s. The action won't cache yarn on either the runner or the cache server

Action version:

  • setup-node@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

installed on runner image via nvm:

  • yarn 1.22.22
  • npm 10.8.2
  • node v22.7.0

action uses:

  • node v20.18.0

Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.

Expected behavior:
A description of what you expected to happen.
action caches yarn on the cache server

Actual behavior:
A description of what is actually happening.
yarn will not be cached.

Action output of the action step

Run actions/setup-node@v4
  with:
    node-version: [2](https://github.com/nordeck/matrix-neoboard-standalone/actions/runs/11589506017/job/32389313057#step:4:2)0
    cache: yarn
    cache-dependency-path: matrix-neoboard-standalone/yarn.lock
  matrix-neoboard/yarn.lock
  
    always-auth: false
    check-latest: false
    token: ***
  env:
    ARGOCD_SHA: 
    DOCKER_IMAGE: ghcr.io/nordeck/matrix-neoboard-standalone
    REACT_APP_REACT_SDK_VERSION: unset
    REACT_APP_REACT_SDK_REVISION: unset
Found in cache @ /home/runner/_work/_tool/node/20.18.0/x6[4](https://github.com/nordeck/matrix-neoboard-standalone/actions/runs/11589506017/job/32389313057#step:4:4)
Environment details
  node: v20.18.0
  npm: 10.8.2
  yarn: 1.22.22
/home/runner/.nvm/versions/node/v22.7.0/bin/yarn --version
/home/runner/.nvm/versions/node/v22.7.0/bin/yarn --version
1.22.22
/home/runner/.nvm/versions/node/v22.7.0/bin/yarn cache dir
1.22.22
/home/runner/.nvm/versions/node/v22.7.0/bin/yarn cache dir
/home/runner/.cache/yarn/v[6](https://github.com/nordeck/matrix-neoboard-standalone/actions/runs/11589506017/job/32389313057#step:4:6)
/home/runner/.cache/yarn/v6
/home/runner/.nvm/versions/node/v22.[7](https://github.com/nordeck/matrix-neoboard-standalone/actions/runs/11589506017/job/32389313057#step:4:7).0/bin/yarn config get enableGlobalCache
/home/runner/.nvm/versions/node/v22.7.0/bin/yarn config get enableGlobalCache
undefined
undefined
yarn cache is not found
@phk-nord phk-nord added bug Something isn't working needs triage labels Nov 5, 2024
@mahabaleshwars
Copy link

Hello @phk-nord,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants