Commit Graph

80 Commits (1bd1e32a3bdc45362d1e726936510720a7c30a57)

Author SHA1 Message Date
John Wesley Walker III 71d826cc33 appease the linter 2 months ago
John Wesley Walker III d73025053b
Revise `isGhes` logic 2 months ago
Josh Gross 3624ceb22c
Restore original behavior of `cache-hit` output (#1467)
* Restore original behavior of `cache-hit` output

* Bump version to 4.1.1
3 months ago
r4mimu 40c3b67b29
Fix cache-hit output when cache missed (#1404)
* fix: cache-hit output

* fix: Output chache hit timing

* fix: Output chache hit timing

---------

Co-authored-by: Josh Gross <joshmgross@github.com>
5 months ago
Marc Mueller e29dad3e36 Fix fail-on-cache-miss not working 10 months ago
Tatyana Kostromskaya e71876755e Fix format 12 months ago
Tatyana Kostromskaya 01229828ff Apply workaround for earlyExit 12 months ago
Chad Kimes f7ebb81a3f
Consume latest toolkit and fix dangling promise bug (#1217)
* Consume latest toolkit and fix dangling promise bug

* Pass earlyExit parameter to run method so tests don't hang

* Pass earlyExit parameter to run method so tests don't hang

* Refactor restore files to have better patterns for testing

* style
1 year ago
Marc Mueller 940f3d7cf1
Add `lookup-only` option (#1041)
* Add new actions/cache version (with dryRun support)

* Add dry-run option

* Changes after rebase

* Update readme

* Rename option to lookup-only

* Update test name

* Update package.json + changelog

* Update README

* Update custom package version

* Update custom package version

* Update @actions/cache to 3.2.0

* Code review

* Update log statement

* Move test case

---------

Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
2 years ago
Marc Mueller 627f0f41f6
Add `fail-on-cache-miss` option (#1036)
* Add fail-on-cache-miss option

* Small improvements

* Changes after rebase

* Update description

* Only fail if no cache entry is found

* Code review

* Update readme

* Add additional test case

* Bump version + changelog

* Update package-lock.json

* Update Readme
2 years ago
Sampark Sharma 6fd2d4538c
Add support to opt-in enable cross-os caching on windows (#1056)
* Add support to opt-in enable cross-os caching on windows

* Fix tests

* Address review comments and update tests

* Fix tests

* Address review comments

* Address review comments
2 years ago
Sankalp Kotewar c17f4bf466
GA for granular cache (#1035)
* Add example for Haskell Stack

* Revert "Add example for Haskell Stack"

* Basic implementation

* Updated variable name

* Adding wrapper class

* Changed logs to warnings

* added debug logs

* experimenting

* Test

* test

* new try

* test

* Impl separated

* Reverted wrapper changes

* Added test cases

* Some cleanup

* Formatted document

* Fixed test cases issues

* Slight modification for test cases check

* Updated new actions' input descriptions

* Reverted custom asks implemented and added wrapper

* refactor into a generic outputter

* Readme draft for new actions

* Generated dist

* Fixed breaking test case

* Removed return type in promise

* Removed commented lines

* Calling methods from same file

* dist

* update save as well

* fix merge

* Changes for beta release

* Update dist folder

* Fixed formatting

* dist

* Add support for gzip fallback for restore of old cache on windows

* Fixed test cases

* Fixed test cases

* Added restore only and save only test cases

* Updated new actions dist files

* Removed comments

* Fixed inputs

* Renamed variables and added tests

* Fixed breaking test case

* Fixed review comments and tests

* added stateprovider changes

* Deleted stateprovider tests until added

* Added stateprovider test cases

* Fixed breaking test case

* Updated outputs of restore action

* Changes for beta release

* Update dist folder

* Add support for gzip fallback for restore of old cache on windows

* update for new beta release

* Update save/action.yml

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/action.yml

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/action.yml

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/action.yml

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/action.yml

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Added more assertions as values can't be checked

* Removed unused code

* Merged beta branch and resolved conflicts

* Added save readme

* Updates to save readme

* Renamed output

* Added cache hit info in readme

* Update restore/README.md

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/README.md

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update restore/README.md

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update save/README.md

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Update save/README.md

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>

* Removed verbose statements

* Repositioned new actions introduction

* Added test case for restore state

* Addressed review comments

* nit

* nit: added language to code blocks

* Updated beta version to 3.2.0-beta.1

* Added stateprovider mock implementations

* Linting errors fixed

* Save-only warning added

* Updated return ID to -2

* Removed -2 error code

* Removed comment

* Updated cache npm lib version

* Updated license version

* Updated releases.md

* Updated readme with the new actions in what's new

Co-authored-by: Malo Bourgon <mbourgon@gmail.com>
Co-authored-by: Vipul <vsvipul@github.com>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
Co-authored-by: Tanuj Kumar Mishra <tanuj077@users.noreply.github.com>
Co-authored-by: Sampark Sharma <phantsure@github.com>
2 years ago
jongwooo 35f4702f6c refactor: Use early return pattern to avoid nested conditions
Signed-off-by: jongwooo <jongwooo.han@gmail.com>
2 years ago
Vipul 68d96986b5 Remove sort logic from inputs 2 years ago
Shubham Tiwari 1a78ace131
Updated the GHES warning message (#925)
* changed the error message

* format

* review comment
2 years ago
Sankalp Kotewar 8954b07458 Removed unnecessary backslash in regex 2 years ago
Sankalp Kotewar 0ae6818675 Formatted files with prettier 2 years ago
Álvaro Mondéjar 204fa1ab69 Sort inputs and remove whitespaces after exclamation at the beginning of lines 2 years ago
Shubham Tiwari 354a2ae15e
Consuming 3.0 actions/cache (#834)
* Consuming 3.0 actions/cache

* formatting and error

* updated package version

* resolve package

* dist

* review comment

* dist

* dist
2 years ago
Deepak Dahiya 60742c2acf lint 3 years ago
Deepak Dahiya 626c44ce85
Update restore.ts 3 years ago
Deepak Dahiya f2d5621efc Turning error from any to unknown 3 years ago
vsvipul 887b9060fe Update dependencies with older minimist version 3 years ago
Shubham Tiwari 136d96b4ae
Enabling actions/cache for GHES based on presence of AC service (#774)
* initial changes

* Update package-lock.json

* Update package-lock.json

* review comments and updated test cases

* package.json

* changed name

* added new line

* changed tookit

* updated with 2.0

* changed with public released package

* ran code format

* linting errors

* Update actionUtils.test.ts

* Update cache.dep.yml

* Update package.json

* Update README.md

* Create RELEASES.md

* Update RELEASES.md

* Update package.json

* Update package-lock.json

* typo
3 years ago
Vít Stanislav 2ebdcff279
Add "see more" link to GHE-not-supported warning (#609)
* Add "see more" link to GHE-not-supported warning

I lived for several months thinking that support for caching action on GHE is just a matter of time, because it's such an important thing to have. Only today, I discovered that originally it was not planned at all. And that people already created some workarounds. So I hope that linking the issue from the warning message will save other people from what happened to me :-)

* Update new GHE-not-supported message in tests

* Update generated dist files
3 years ago
David Hadka c64c572235
Catch and log unhandled exceptions stemming from closed file descriptor (#596) 4 years ago
Yaroslav Dynnikov 26968a09c0
Make save/restore logs akin (#509)
- Print primary key when saving cache
4 years ago
Dave Hadka 4bceb75b5b Use parseInt instead of Number to handle empty strings 4 years ago
Dave Hadka a6f1f4b32e Adds input for upload chunk size 4 years ago
Dave Hadka d3e4f218f3 Use warning instead of info 4 years ago
Dave Hadka 4d604c6cce No-op on GHES 4 years ago
Dave Hadka d60d2bef10 Improve string split 5 years ago
Aiqiao Yan bcc23b930f React to feeback and change to use 0.2.0 cache package 5 years ago
Aiqiao Yan 7f9517a009 Switch cache action to use the cache node package 5 years ago
Aiqiao Yan 16a133d9a7
Merge pull request #263 from actions/users/aiyan/allow-all-events
Allow all events to access cache
5 years ago
David Hadka bac1a40c81
Merge pull request #306 from actions/with-retries
Add retries to all API calls
5 years ago
Aiqiao Yan 4967c8e6c5 error handling for stream 5 years ago
Dave Hadka a0024e2bd0 Merge branch 'master' of http://github.com/actions/cache into with-retries 5 years ago
Dave Hadka 05b13411a0 Add retries to all API calls 5 years ago
Dave Hadka 354f70a56c Fix upload chunk retries 5 years ago
Aiqiao Yan 29b4783cc7 Merge fixes 5 years ago
Aiqiao Yan 2403bbedac Make sure ref is not null or empty 5 years ago
Aiqiao Yan ccc66f769e Allow all events to access cache 5 years ago
Aiqiao Yan 75cd46ec0c Use 30 as the long distance matching window to support both 32-bit and 64-bit OS 5 years ago
Aiqiao Yan a5d9a3b1a6 Address PR feedback 5 years ago
Aiqiao Yan 97f7baa910 Use zstd instead of gzip if available
Add zstd to cache versioning
5 years ago
David Hadka 9f07ee13de
Merge pull request #284 from actions/promisify-pipeline
Better error handling during download
5 years ago
Dave Hadka 1ed0c23029 Use promisify of stream.pipeline for downloading 5 years ago
David Hadka 54626c4a4f
Merge pull request #269 from actions/socket-timeout
Adds socket timeout and validate file size
5 years ago
Dave Hadka 48b62c1c52 Add comment for SocketTimeout 5 years ago