Closed
Description
Description:
All our GH actions have started failing with the same error:
Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
workflow.yml
on:
pull_request:
types: [opened, synchronize]
jobs:
title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
...
Log for Run actions/setup-node@v4
``` 2s ##[debug]Evaluating condition for step: 'Run actions/setup-node@v4' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: Run actions/setup-node@v4 ##[debug]Register post job cleanup for action: actions/setup-node@v4 ##[debug]Loading inputs ##[debug]Evaluating: (((github.server_url == 'https://github.com') && github.token) || '') ##[debug]Evaluating Or: ##[debug]..Evaluating And: ##[debug]....Evaluating Equal: ##[debug]......Evaluating Index: ##[debug]........Evaluating github: ##[debug]........=> Object ##[debug]........Evaluating String: ##[debug]........=> 'server_url' ##[debug]......=> 'https://github.com' ##[debug]......Evaluating String: ##[debug]......=> 'https://github.com' ##[debug]....=> true ##[debug]....Evaluating Index: ##[debug]......Evaluating github: ##[debug]......=> Object ##[debug]......Evaluating String: ##[debug]......=> 'token' ##[debug]....=> '***' ##[debug]..=> '***' ##[debug]=> '***' ##[debug]Expanded: ((('https://github.com' == 'https://github.com') && '***') || '') ##[debug]Result: '***' ##[debug]Loading env Run actions/setup-node@v4 ##[debug]isExplicit: ##[debug]explicit? false ##[debug]isExplicit: 16.20.2 ##[debug]explicit? true ##[debug]isExplicit: 18.19.0 ##[debug]explicit? true ##[debug]isExplicit: 20.11.0 ##[debug]explicit? true ##[debug]evaluating 3 versions ##[debug]matched: 20.11.0 ##[debug]checking cache: /opt/hostedtoolcache/node/20.11.0/x64 ##[debug]Found tool in cache node 20.11.0 x64 Found in cache @ /opt/hostedtoolcache/node/20.11.0/x64 ::group::Environment details Environment details /usr/local/bin/yarn --version 4.0.2 ##[debug]Consumed yarn version is 4.0.2 (working dir: "") /usr/local/bin/yarn config get cacheFolder /home/runner/.yarn/berry/cache ##[debug]yarn's cache folder "/home/runner/.yarn/berry/cache" configured for the root directory ##[debug]followSymbolicLinks 'true' ##[debug]followSymbolicLinks 'true' ##[debug]implicitDescendants 'true' ##[debug]matchDirectories 'true' ##[debug]omitBrokenSymbolicLinks 'true' ##[debug]Search path '/home/runner/work/frontend/frontend/yarn.lock' ##[debug]/home/runner/work/frontend/frontend/yarn.lock ##[debug]Found 1 files to hash. ##[debug]primary key is node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c ##[debug]check if "/home/runner/work/frontend/frontend" has locally managed yarn3 dependencies /usr/local/bin/yarn config get enableGlobalCache true ##[debug]"/home/runner/work/frontend/frontend" dependencies are not managed by yarn 3 locally ##[debug]Resolved Keys: ##[debug]["node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c"] ##[debug]Checking zstd --quiet --version ##[debug]1.5.5 ##[debug]zstd version: 1.5.5 ##[debug]Resource Url: https://acghubeus2.actions.githubusercontent.com/pFJuBg4cxObebgpVnNSROKFquMufoN1DnNHMqtBjdzPp8dLP2Z/_apis/artifactcache/cache?keys=node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c&version=379c55b6a55fa132d093e1f265a9b34fdf2df216ede493e847733a841fe56fc8 ##[debug]Resource Url: https://acghubeus2.actions.githubusercontent.com/pFJuBg4cxObebgpVnNSROKFquMufoN1DnNHMqtBjdzPp8dLP2Z/_apis/artifactcache/caches?key=node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c ##[debug]No matching cache found for cache key 'node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c', version '379c55b6a55fa132d093e1f265a9b34fdf2df216ede493e847733a841fe56fc8 and scope refs/pull/511/merge. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key ##[debug]Other caches with similar key: ##[debug]Cache Key: node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c, Cache Version: 379c55b6a55fa132d093e1f265a9b34fdf2df216ede493e847733a841fe56fc8, Cache Scope: refs/pull/510/merge, Cache Created: 2024-02-08T08:45:00.45Z ##[debug]Cache Key: node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c, Cache Version: 379c55b6a55fa132d093e1f265a9b34fdf2df216ede493e847733a841fe56fc8, Cache Scope: refs/pull/506/merge, Cache Created: 2024-02-07T17:58:06.2933333Z ##[debug]Cache Key: node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c, Cache Version: 379c55b6a55fa132d093e1f265a9b34fdf2df216ede493e847733a841fe56fc8, Cache Scope: refs/pull/437/merge, Cache Created: 2024-02-05T17:35:55.7633333Z ##[debug]Failed to delete archive: Error: ENOENT: no such file or directory, unlink '' yarn cache is not found ##[add-matcher]/home/runner/work/_actions/actions/setup-node/v4/.github/tsc.json ##[debug]Added matchers: 'tsc'. Problem matchers scan action output for known warning or error strings and report these inline. ##[add-matcher]/home/runner/work/_actions/actions/setup-node/v4/.github/eslint-stylish.json ##[debug]Added matchers: 'eslint-stylish'. Problem matchers scan action output for known warning or error strings and report these inline. ##[add-matcher]/home/runner/work/_actions/actions/setup-node/v4/.github/eslint-compact.json ##[debug]Added matchers: 'eslint-compact'. Problem matchers scan action output for known warning or error strings and report these inline. ##[debug]Node Action run completed with exit code 0 ##[debug]Save intra-action state SETUP_NODE_CACHE_PACKAGE_MANAGER = yarn ##[debug]Save intra-action state CACHE_PATHS = ["/home/runner/.yarn/berry/cache"] ##[debug]Save intra-action state CACHE_KEY = node-cache-Linux-yarn-5b2f434a0f9e68c8e636ddfde85c86be7e24f8503de4affd705dc91e5dec466c ##[debug]Set output node-version = v20.11.0 ##[debug]Set output cache-hit = false ##[debug]Finishing: Run actions/setup-node@v4 ```Log for Post Run actions/setup-node@v4
``` ##[debug]Evaluating condition for step: 'Post Run actions/setup-node@v4' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: Post Run actions/setup-node@v[4](https://github.com/.../frontend/actions/runs/7828414794/job/21358401855#step:19:4) ##[debug]Loading inputs ##[debug]Evaluating: (((github.server_url == 'https://github.com') && github.token) || '') ##[debug]Evaluating Or: ##[debug]..Evaluating And: ##[debug]....Evaluating Equal: ##[debug]......Evaluating Index: ##[debug]........Evaluating github: ##[debug]........=> Object ##[debug]........Evaluating String: ##[debug]........=> 'server_url' ##[debug]......=> 'https://github.com' ##[debug]......Evaluating String: ##[debug]......=> 'https://github.com' ##[debug]....=> true ##[debug]....Evaluating Index: ##[debug]......Evaluating github: ##[debug]......=> Object ##[debug]......Evaluating String: ##[debug]......=> 'token' ##[debug]....=> '***' ##[debug]..=> '***' ##[debug]=> '***' ##[debug]Expanded: ((('https://github.com' == 'https://github.com') && '***') || '') ##[debug]Result: '***' ##[debug]Loading env Post job cleanup. ##[debug]Checking zstd --quiet --version ##[debug]1.[5](https://github.com/.../frontend/actions/runs/7828414794/job/21358401855#step:19:5).5 ##[debug]zstd version: 1.5.5 ##[debug]implicitDescendants 'false' ##[debug]followSymbolicLinks 'true' ##[debug]implicitDescendants 'false' ##[debug]omitBrokenSymbolicLinks 'true' ##[debug]Search path '/home/runner/.yarn/berry/cache' ##[debug]Cache Paths: ##[debug][] Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved. ##[debug]Node Action run completed with exit code 1 ##[debug]Finishing: Post Run actions/setup-node@v4 ```Action version:
v4
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
yarn 4.0.2
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.
Actual behavior:
A description of what is actually happening.