mansagroup / gcs-cache-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub Action to cache your workload to a Google Cloud Storage bucket.
License: MIT License
A GitHub Action to cache your workload to a Google Cloud Storage bucket.
License: MIT License
Current logs do not describe how long individual steps are taking.
It would be nice if the logs said how long each step took, e.g.
๐ Searching the best cache archive available (25 seconds)
๐ Downloading cache archive from bucket (40 seconds)
๐๏ธ Extracting cache archive (20 seconds)
With this information I could seek for opportunities to optimize the process.
Here is how we have it setup:
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache node_modules
id: node-modules-cache
uses: mansagroup/[email protected]
with:
bucket: github-action-runner-cache
path: node_modules
key: node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: node_modules-${{ hashFiles('**/yarn.lock') }}
Here is how it fails:
Github runners on Ubuntu 20.04 are prepackaged with zstd v1.5.5 at the time of this writing. The command output of zstd --version
has changed and it doesn't quite match the string that this action relies on (see here). As a result, zstd is assumed to be absent and slower gzip is used instead.
Please update the check to detect the presence of zstd.
The gcs-cache-action currently behaves slightly differently than the regular github actions/cache action. According to https://github.com/marketplace/actions/cache#outputs, the cache-hit output only returns true on an exact match hit. I would expect gcs-cache-action to behave the same, but it is currently returning true on exact and partial matches.
gcs-cache-action is returning cache-hit=true on exact and partial matches.
gcs-cache-action should only return cache-hit=true on exact matches like actions/cache does. Partial matches should return cache-hit=false
https://github.com/MansaGroup/gcs-cache-action/blob/main/src/main.ts#L169
Should be:
core.setOutput('cache-hit', bestMatchKind=='exact');
instead of
core.setOutput('cache-hit', 'true');
Others:
In the README example show a v2 version this action, but there is no v2 release
Should be v2 version or just stick with v1
/usr/bin/tar -x --use-compress-program zstd -d -P -f /tmp/tmp-195888-ch6Z2OTlm0qa -C /home/github/actions-runner/_work/foo/foo
/*stdin*\ : Decoding error (36) : Frame requires too much memory for decoding
/*stdin*\ : Window size larger than maximum : 1073741824 > 1342[17](https://github.com/gajus/foo/runs/5548683535?check_suite_focus=true#step:9:17)728
/*stdin*\ : Use --long=30 or --memory=1024MB
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
Compress file.
Use --long=30 or --memory=1024MB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.