44 Commits

Author SHA1 Message Date
Bassem Dghaidi
13abc95165
Port restoreCache to new service 2024-10-09 04:32:57 -07:00
Bassem Dghaidi
e62c6428e7 Fix service urls 2024-09-24 03:29:14 -07:00
Bassem Dghaidi
07e51a445e Add cache service v2 client 2024-09-24 03:17:44 -07:00
Bassem Dghaidi
4902d3a118 Add backend ids 2024-06-24 01:16:11 -07:00
Bassem Dghaidi
04d1a7ec3c Add fix cache paths 2024-06-17 03:36:06 -07:00
Bassem Dghaidi
e1b7e78d60 Fix cache misses 2024-06-17 02:39:45 -07:00
Bassem Dghaidi
7640cf17c1 Fix cache misses 2024-06-17 02:35:25 -07:00
Bassem Dghaidi
5afc042a74 Add download cache v2 2024-06-17 01:17:10 -07:00
Bassem Dghaidi
5e5faf73fc Use zlib for compression 2024-06-13 03:16:59 -07:00
Bassem Dghaidi
9e63a77e7a Implement cache v2 2024-06-10 12:19:52 -07:00
Bassem Dghaidi
146143a9b4 Implement cache v2 2024-06-10 11:55:28 -07:00
Bassem Dghaidi
66d5434f23
Add v2 cache upload 2024-06-10 10:56:20 -07:00
Bassem Dghaidi
c8466d1fac Add twirp client 2024-05-29 08:31:54 -07:00
Marc Mueller
a3849b77ae Rename option to lookupOnly 2023-02-21 12:37:48 +01:00
Marc Mueller
eb06c21794 Add cache restore dryRun option 2023-02-21 12:37:48 +01:00
Sampark Sharma
b2d865f180
Cache package release for compression change in windows with symlink fix (#1291)
* Cache package release for compression change in windows

This reverts commit 86fe4abd8e89005bbd880c330af444ae4c7d3b15.

* Add env variable to enable windows symlinks

* Add cross os opt-in functionality for cache on windows

* Fix test

* Address review comments

* Fix test

* Fix tests

* Fix tests

* Fix tests

* Address review comments

* Address review comments

* Fix tests

* Fix tests

* Add npm version

* Add release details
2023-01-04 12:16:25 +05:30
Sampark Sharma
86fe4abd8e
Revert "Cache package release for compression change in windows" (#1289)
* Revert "Cache package release for compression change in windows (#1281)"

This reverts commit b2287326447a6d61c109af734947c7608be85900.

* Update release version to patch
2022-12-27 16:00:28 +05:30
Sampark Sharma
b228732644
Cache package release for compression change in windows (#1281)
* bsd + zstd fallback implementation

* bsd + zstd fallback implementation

* Fix tar operations

* Add -v option for testing

* Fix order of args for tar

* Add GNUtar as default on windows

* Fix test

* Fix tar tests

* Fix lint issues

* Fix windows gnutar test case

* Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar

* Address some comments and correct compression commands

* Add windows bsdtar test

* Fix windows test

* Fix test

* Separate args

* Fix old tests

* Add new tests

* Fix tests

* Fix lint test

* Refactor code

* Address review comments

* Fix test

* Fix tar test

* Add await to async function calls

* Fix test

* Update for beta release

* Fix audit issues

* Add fallback to gzip compression if cache not found

* Fix test

* Add test

* Address review comments

* Revert Address review comments

* Release 3.1.0-beta.2 cache package

* Fix issues

* Reconfigure catch block

* Add debug logging for gzip fall back

* Fix test

* Add end to end test for cache using bsd on windows
and address review comments

* Fix test

* Fix test

* Fix tests

* Add better comments

* Update packages/cache/src/internal/cacheHttpClient.ts

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

* Address review comments

* Update for new beta cache package release

* Address bugbash issues

* Fix tests

* Release new actions/cache minor version

Co-authored-by: Lovepreet Singh <pdotl@github.com>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
2022-12-22 20:47:35 +05:30
Shubham Tiwari
46231a7da3
Graceful handling of error (non-validation one) (#1122)
* Initial changes

* added info error as well

* Format

* Unused package

* adding message field

* removed line

* Review comments

* review comment to add validation as errors handling
2022-06-24 10:46:20 +05:30
Sankalp Kotewar
6f6f4e7588 Enhanced warning description to make more sense. 2022-05-23 12:03:18 +00:00
Sankalp Kotewar
b9fefecf57 Formatting changes 2022-05-23 05:59:56 +00:00
Sankalp Kotewar
9aecf41d21 Updated error type to generic to show warning 2022-05-23 05:39:42 +00:00
Sankalp Kotewar
da52b35800 Adding check for cache paths' existence. 2022-05-22 10:09:13 +00:00
Anurag Chauhan
0b2505c754 Fix error type so that size limit violation is shown as warning 2022-04-07 09:08:16 +00:00
Deepak Dahiya
f8a69bc473
Added cacheSize in ReserveCache API request (#1044)
* Added cacheSize in ReserveCache API request

* minor

* minor

* minor

* Cleanup

* package-lock revert

* Modified tests

* New Response Type

* cleanup

* Linting

* Lint fix

* Resolved comments

* Added tests

* package-lock

* Resolved package-lock mismatch

* Liniting

* Update packages/cache/src/cache.ts

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

* Linting issue

* Resolved few comments

* version upgrade

* Savecache tests

* RequestUtil test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

Co-authored-by: Apple <apple@Apples-MacBook-Pro.local>
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
2022-04-04 16:21:58 +05:30
Deepak Dahiya
03eca1b0c7
Revert "T dedah/cache size" (#1042) 2022-04-01 02:10:08 +05:30
Apple
6cd8286138 Resolved comments 2022-04-01 01:41:12 +05:30
Deepak Dahiya
daa24d7958 Linting 2022-03-31 10:41:54 +00:00
Deepak Dahiya
79acd5bac4 New Response Type 2022-03-31 09:42:59 +00:00
Deepak Dahiya
7756e7c4cb Cleanup 2022-03-30 07:22:56 +00:00
Deepak Dahiya
f05c940e43 minor 2022-03-29 22:20:22 +00:00
Deepak Dahiya
a71585a450 minor 2022-03-29 22:19:10 +00:00
Deepak Dahiya
76ac2fcd59 Added cacheSize in ReserveCache API request 2022-03-29 22:17:04 +00:00
Shubham Tiwari
b463992869
Adding support in cache package to check if Artifact Cache service is enabled or not (#1028)
* Added support to check if Artifact cache service is enabled or not.

* enablingForGHES

* added ACTIONS_CACHE_URL in fixtures

* Fix CI

* CI fix

* changed function name

* Function rename

* Updated release

* added test case

* Update RELEASES.md

* Lint errors

* lint

* linting

* lint

* update name to actions service

* Update packages/cache/src/internal/cacheUtils.ts

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>

* review comments

* linting

* linting

* push to start CI

* Update RELEASES.md

* remove extra spaces

* reverting version update

* Revert "reverting version update"

This reverts commit af84eba61ef8c119458dc0ce1da85b01d61b9d13.

* Update RELEASES.md

Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
2022-03-25 14:40:02 +05:30
Aparna Ravindra
45d2019161
Cache: Increasing client validation to 10GB (#934)
* increasing client validation limit in cache package to 10gb
2021-11-19 16:34:33 +05:30
Rob Cowsill
4564768940
Delete temporary archive after cache upload (#792)
This is to avoid filling the SSD while saving multiple large caches
2021-06-28 17:27:09 +02:00
Minh Nguyen
d972090333
Fix typo in function name (#590) 2021-05-03 11:09:44 -04:00
Yaroslav Dynnikov
bfdba95ece Make caching more verbose
- Print cache size when saving cache similarly to restoring
- Print restore success similarly to saving
- Print cached file list if debug logging is enabled

See also: https://github.com/actions/cache/issues/471
2021-01-07 23:51:43 +03:00
David Hadka
4964b0cc7c
Use Azure storage SDK to download cache (#497)
* Adds option to download using AzCopy

* Bump version number and add release notes

* Ensure we use at least v10

* Negate env var so it disables AzCopy

* Use Azure storage SDK to download cache

* Use same level of parallelism as AzCopy

* Fix naming of variable

* React to feedback

* Bump Node types to Node 12

* Make linter happy

* Pass options into restoreCache method

* Fix tests

* Restructure files and add tests

* Add method to get the default download and upload options

* Include breaking changes in RELEASES.md

Co-authored-by: Josh Gross <joshmgross@github.com>
2020-07-10 17:09:32 +02:00
Aiqiao Yan
d2b2399bd2 React to feedback 2020-05-15 12:26:42 -04:00
Aiqiao Yan
b3c8e19a7a Attempt to fix the test 2020-05-13 13:43:13 -04:00
Aiqiao Yan
1413cd0e32 Add cache upload options and pull from latest actions/cache master 2020-05-12 12:53:45 -04:00
Aiqiao Yan
7409ad5fae Change variable path to a list 2020-05-12 12:02:18 -04:00
Aiqiao Yan
932779cf58 Initial commit to create @actions/cache package 2020-05-12 12:02:18 -04:00