Commit Graph
58 Commits
Author SHA1 Message Date
Bassem Dghaidi 8a57bddafb Remove unused definitions 2024-11-14 07:11:12 -08:00
Bassem Dghaidi 879ea8b0dd Merge branch 'neo-cache-service' of github.com:actions/toolkit into neo-cache-service 2024-11-14 06:50:01 -08:00
Bassem Dghaidi c8f4805e7b Remove unnecessary type hints 2024-11-14 06:49:55 -08:00
Bassem DghaidiandJosh Gross c0d3502bdd Add check to make sure archive has been created already
Co-authored-by: Josh Gross <joshmgross@github.com>
2024-11-14 15:49:02 +01:00
Bassem Dghaidi bc3e107973 Lint fixes 2024-11-14 04:47:27 -08:00
Bassem Dghaidi 017f499c20 Remove unnecessary debug information 2024-11-14 04:39:30 -08:00
Bassem Dghaidi 7f61a7e6a1 Remove unnecessary debug information 2024-11-14 04:33:31 -08:00
Bassem Dghaidi a946d9a624 Add missing function return types 2024-11-14 03:42:14 -08:00
Bassem Dghaidi 88655692f7 Linter cleanups 2024-11-14 03:34:13 -08:00
Bassem Dghaidi 0a1b9cc3c0 Formatting and stylistic cleanup 2024-11-14 03:22:03 -08:00
Bassem Dghaidi 47adf3baaa Port dependencies & remove dependency on toolkit/artifacts 2024-11-14 03:01:04 -08:00
Bassem Dghaidi eb5b59e169 Refactoring & cleanup 2024-10-24 06:09:23 -07:00
Bassem Dghaidi 4af6ea76c2 Cleanups and package refactoring 2024-10-24 05:19:48 -07:00
Bassem Dghaidi 224dfde884 Cleanup implementation and use tarballs instead of streaming zip 2024-10-21 05:21:32 -07:00
Bassem Dghaidi d928c30757 Port restoreCache to new service 2024-10-09 04:32:57 -07:00
Bassem Dghaidi cff4f084e2 Fix service urls 2024-09-24 03:29:14 -07:00
Bassem Dghaidi d5b926f306 Add cache service v2 client 2024-09-24 03:17:44 -07:00
Bassem Dghaidi d7f086086e Add backend ids 2024-06-24 01:16:11 -07:00
Bassem Dghaidi a3ecc360ef Add fix cache paths 2024-06-17 03:36:06 -07:00
Bassem Dghaidi 0fb32f1fdb Fix cache misses 2024-06-17 02:39:45 -07:00
Bassem Dghaidi c2ccda7f65 Fix cache misses 2024-06-17 02:35:25 -07:00
Bassem Dghaidi 2d4c2e01c3 Add download cache v2 2024-06-17 01:17:10 -07:00
Bassem Dghaidi 735f4c343d Use zlib for compression 2024-06-13 03:16:59 -07:00
Bassem Dghaidi c6f3e89560 Implement cache v2 2024-06-10 12:19:52 -07:00
Bassem Dghaidi 04ea949a8a Implement cache v2 2024-06-10 11:55:28 -07:00
Bassem Dghaidi f73a256d7d Add v2 cache upload 2024-06-10 10:56:20 -07:00
Bassem Dghaidi 189a57b889 Add twirp client 2024-05-29 08:31:54 -07:00
Marc Mueller 4150d6228e Rename option to lookupOnly 2023-02-21 12:37:48 +01:00
Marc Mueller 0a9156fb4b Add cache restore dryRun option 2023-02-21 12:37:48 +01:00
Sampark Sharma 85bb581273 Cache package release for compression change in windows with symlink fix (#1291)
* Cache package release for compression change in windows

This reverts commit d4fc1ac928.

* 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 d4fc1ac928 Revert "Cache package release for compression change in windows" (#1289)
* Revert "Cache package release for compression change in windows (#1281)"

This reverts commit 6140e090c3.

* Update release version to patch
2022-12-27 16:00:28 +05:30
6140e090c3 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 98f1922f44 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 cb87af10a9 Enhanced warning description to make more sense. 2022-05-23 12:03:18 +00:00
Sankalp Kotewar 5f97eb6aba Formatting changes 2022-05-23 05:59:56 +00:00
Sankalp Kotewar fc1ac62569 Updated error type to generic to show warning 2022-05-23 05:39:42 +00:00
Sankalp Kotewar 9a602d2d82 Adding check for cache paths' existence. 2022-05-22 10:09:13 +00:00
Anurag Chauhan ad7be876c4 Fix error type so that size limit violation is shown as warning 2022-04-07 09:08:16 +00:00
2849f395bc 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 25c2a7de74 Revert "T dedah/cache size" (#1042) 2022-04-01 02:10:08 +05:30
Apple c24bdf1c4c Resolved comments 2022-04-01 01:41:12 +05:30
Deepak Dahiya ae40a4eeab Linting 2022-03-31 10:41:54 +00:00
Deepak Dahiya 2f2e0dc2cc New Response Type 2022-03-31 09:42:59 +00:00
Deepak Dahiya f4b85ff8ee Cleanup 2022-03-30 07:22:56 +00:00
Deepak Dahiya 3d90e2772f minor 2022-03-29 22:20:22 +00:00
Deepak Dahiya 0cc2510a7f minor 2022-03-29 22:19:10 +00:00
Deepak Dahiya 8613989147 Added cacheSize in ReserveCache API request 2022-03-29 22:17:04 +00:00
Shubham TiwariandBrian Cristante 646eb713fa 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 98e6cf8881 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 c7d3c67e59 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