Cache does not work within parent#child pipeline

Describe your question in as much detail as possible:
My cache does not work properly - it does not save some folders and do not use SHA as key

  • What are you seeing, and how does that differ from what you expect to see?
    I have inside child pipeline install_dependencies job which should create cache of 2 folders (node_modules and .yarn) based on yarn.lock content.
    This job should run only when yarn.lock is changed.
    All underline test/build jobs just use cache as is.

Now

  • I do not see any hash in cache file name
  • .yarn folder is missing in later jobs
  • Consider including screenshots, error messages, and/or other helpful visuals
    nothing
    install job
    Creating cache node-16-default-15…

209frontend/cv-ui/node_modules/: found 154246 matching files and directories

210frontend/cv-ui/.yarn/: found 1560 matching files and directories

lint stage
$ ls -l

total 664

-rw-rw-rw- 1 root root 0 Jun 14 14:41 README.md
-rw-rw-rw- 1 root root 10716 Jun 14 14:41 angular.json

drwxrwxrwx 4 root root 4096 Jun 14 14:41 apps

drwxrwxrwx 2 root root 4096 Jun 14 14:41 doubles

-rw-rw-rw- 1 root root 923 Jun 14 14:41 jest.config.js

drwxrwxrwx 9 root root 4096 Jun 14 14:41 libs

drwxrwxrwx 5 root root 4096 Jun 14 14:41 modules

-rw-rw-rw- 1 root root 233 Jun 14 14:41 ng-openapi-cv.json

drwxr-xr-x 915 root root 36864 Jun 14 14:39 node_modules

-rw-rw-rw- 1 root root 4446 Jun 14 14:41 package.json

-rw-rw-rw- 1 root root 2578 Jun 14 14:41 playwright.config.ts

drwxrwxrwx 3 root root 4096 Jun 14 14:41 tools

-rw-rw-rw- 1 root root 2621 Jun 14 14:41 tsconfig.json

-rw-rw-rw- 1 root root 158 Jun 14 14:41 tsconfig.spec.json

-rw-rw-rw- 1 root root 576516 Jun 14 14:41 yarn.lock

1 Like

I am still not sure if it my mistake or bug with Gitlab iplementation over parent\child pipelines

I get the same error, looks like it is gitlab issue