Skip to content

yarn cache saving nothing #407

@mmahalwy

Description

@mmahalwy

In the logs:

##[debug]implicitDescendants 'false'
##[debug]followSymbolicLinks 'true'
##[debug]implicitDescendants 'false'
##[debug]omitBrokenSymbolicLinks 'true'
##[debug]Search path '/github/home/.cache/yarn'
##[debug]Cache Paths:
##[debug][]
##[debug]Archive Path: /__w/_temp/07a15199-21c2-43ce-8c0a-cc01882a0843/cache.tgz
/bin/tar --posix -z -cf cache.tgz -P -C /__w/brooklyn/brooklyn --files-from manifest.txt
/bin/tar -z -tf /__w/_temp/07a15199-21c2-43ce-8c0a-cc01882a0843/cache.tgz -P
##[debug]File Size: 45
##[debug]Saving Cache (ID: 69)
##[debug]Upload cache
##[debug]Resource Url: https://artifactcache.actions.githubusercontent.com/fmfATEajpiOCSHwAtp7sjR8AAEAsY7yLnCJarOtkklYPFr9aLe/_apis/artifactcache/caches/69
##[debug]Upload concurrency: 4
##[debug]Upload chunk size: 33554432
##[debug]Awaiting all uploads
##[debug]Uploading chunk of size 45 bytes at offset 0 with content range: bytes 0-44/*
##[debug]Commiting cache
Cache Size: ~0 MB (45 B)
##[debug]Resource Url: https://artifactcache.actions.githubusercontent.com/fmfATEajpiOCSHwAtp7sjR8AAEAsY7yLnCJarOtkklYPFr9aLe/_apis/artifactcache/caches/69
Cache saved successfully

I am noticing that subsequent runs are hitting cache but cache is empty. Probably this is pointing at the wrong paths for yarn. see:

o.inputPath = path.join(homeDirectory, '.cache', 'yarn')
when it should point at whatever yarn cache dir returns?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions