Commit Graph
94 Commits
Author SHA1 Message Date
Bassem DghaidiandCopilot 56decd0766 Add @actions/cache 5.3.0 release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:10:50 +02:00
Bassem DghaidiandCopilot f6fee859a4 Add @actions/cache 5.3.0 release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 18:09:51 +02:00
Bassem DghaidiandCopilot 91900dbc1b Match local @actions/cache release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 17:55:06 +02:00
Bassem DghaidiandCopilot 7c69745573 Correct @actions/cache release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 17:54:30 +02:00
Bassem DghaidiandCopilot 94e94ff3be Release @actions/cache 6.3.0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-25 17:53:35 +02:00
Philip GaiandCopilot Autofix powered by AI 8d05a01e45 feat(cache): add cache-mode client behavior (read-denied warning + ACTIONS_CACHE_MODE skip) (#2447)
* feat(cache): surface cache read-denied as a distinct restore warning

Mirror the existing cache write-denied handling on the restore path. When
the receiver refuses a download URL because the run's token has no readable
cache scopes, it returns a twirp PermissionDenied (HTTP 403). The twirp
client wraps that 403 in a generic Error, so the stable 'cache read denied:'
prefix is embedded in the message rather than at the start.

- Add CACHE_READ_DENIED_PREFIX and CacheReadDeniedError
- Dispatch on the prefix in the restoreCacheV2 catch block (V2 only), log a
  policy-specific warning, and report a cache miss so the run continues
- Add a test mirroring the write-denied coverage

* chore(cache): trim comments, bump to 6.2.0, add RELEASES entry

* refactor(cache): dispatch read-denied by error name to mirror write path

Re-throw CacheReadDeniedError from an inner try/catch around
GetCacheEntryDownloadURL and dispatch on typedError.name in the outer catch,
matching how saveCacheV2 handles CacheWriteDeniedError.

* feat(cache): handle read-denied on the v1 restore path

Extend the read-denied handling to Cache Service v1 so GHES (which forces v1
via _apis/artifactcache) is covered when read-scope enforcement ships there.

- Surface the receiver's error body message from getCacheEntry instead of a
  generic status-code error, so the cache read denied: prefix reaches callers
- Re-throw CacheReadDeniedError from restoreCacheV1 and dispatch on it in the
  outer catch, mirroring restoreCacheV2 and the write-denied v1 handling
- Add a v1 read-denied test

* refactor(cache): only surface receiver body for read-denied on v1

* test(cache): assert getCacheEntry only surfaces body for read-denied

* test(cache): cover non-read-denied getCacheEntry passthrough on v1

* refactor(cache): share read-denied prefix via constants to avoid drift

* feat(cache): skip restore/save per ACTIONS_CACHE_MODE

* test(cache): expand ACTIONS_CACHE_MODE skip coverage across v1/v2 and unknown modes

* fix copilot pr feedback

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* docs(cache): remove internal reference from cache-mode comment

* test(cache): merge redundant cache-mode skip tests and simplify read-denied handling

Address PR review feedback:
- Merge the duplicate restore/save skip test.each blocks into single blocks parametrized over ACTIONS_CACHE_SERVICE_V2.
- Drop the redundant CacheReadDeniedError catch arms; the typed error is not an HttpClientError so it already falls through to a non-fatal warning.
- Clarify why read-denied classification happens both in getCacheEntry and cache.ts (dependency-free internal module cannot import the typed error).

* refactor(cache): drop redundant CacheWriteDeniedError catch arms

Mirror the read-denied simplification on the save path. CacheWriteDeniedError
is not an HttpClientError and its name does not match the ReserveCacheError
arm, so it falls through to the same non-fatal warning. Logging behavior is
unchanged (warns, never fails the run) and the exported type is still thrown
internally for consumers and tests. Also refresh stale doc wording.

* test(cache): collapse redundant restore getCacheEntry-failure tests

The two restoreCache tests exercised the identical warning + cache-miss path
now that read-denied is no longer reclassified in the catch, so merge them into
one. The read-denied prefix detection that actually branches on the message is
covered by getCacheEntry tests in cacheHttpClient.test.ts.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-13 10:03:16 -05:00
Jason Ginchereau 480b99fb38 Bump cache package to v6.1.0, update RELEASES.md (#2436) 2026-06-17 11:25:12 -10:00
Joshua Brooks c2bd8f1a98 Bump toolkit version, add release notes 2026-05-01 17:38:16 +00:00
Daniel Kennedy f0055b449b @actions/cache: convert to an ESM module (#2275)
* `@actions/cache`: convert to an ESM module

* Update the fixture to ESM syntax

* Update the cache workflows

* Bump `@actions/glob` to `0.6.1`

* Fix awaiting in the cache unit tests

* Fix a type issues in contracts

* Export the `DownloadOptions`/`UploadOptions` like before

* More cache test fixes

* Make the cache units tests better

* Add some more logging

* Add retries to restore-cache.mjs
2026-01-29 14:23:32 -05:00
Daniel Kennedy 298e1df765 Bump @actions/glob to 0.5.1 in @actions/cache 2026-01-27 15:43:44 -05:00
Daniel Kennedy b356064971 Bump @actions/http-client and @actions/github on all packages 2026-01-27 13:31:31 -05:00
Ryan GhadimiandBassem Dghaidi 84637c3cc0 Update packages/cache/RELEASES.md
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
2026-01-16 10:25:44 +00:00
Ryan Ghadimi 5400c9e292 New error type for cache RL 2026-01-16 10:00:15 +00:00
Ryan Ghadimi 717aface57 update release doc 2026-01-16 09:51:21 +00:00
Ryan Ghadimi e3ebd136a4 bump pkg 2026-01-16 09:46:28 +00:00
Ryan Ghadimi 9dc746ecd2 tests & releases 2026-01-16 09:44:57 +00:00
Salman Muin Kayser Chishti e20f253477 docs(cache): add PR reference to v5.0.1 release notes 2025-12-12 14:53:26 +00:00
Salman Muin Kayser Chishti 765c6a30ea docs(cache): bump to v5.0.1 and add release notes 2025-12-12 13:42:58 +00:00
Salman Muin Kayser Chishti 4b3724637e chore(releases): update release notes for v5.0.0 to remove punycode deprecation warning 2025-12-11 14:43:23 +00:00
Salman Muin Kayser Chishti bfe3eda47f PR number update in releases 2025-12-11 14:33:30 +00:00
Salman Muin Kayser Chishti 257f14d386 update releases 2025-12-11 14:32:58 +00:00
Salman Muin Kayser Chishti 5fdadb28cb chore: update dependencies and remove deprecated package
- Removed `@azure/ms-rest-js` dependency to fix Node.js 24+ punycode deprecation warning.
  - The `TransferProgressEvent` type is now imported from `@azure/core-rest-pipeline`.
- Updated `package.json` to reflect the new dependency.
- Updated tests to import `TransferProgressEvent` from the new package.
- Updated `package-lock.json` to remove `@azure/ms-rest-js` and include `@azure/core-rest-pipeline`.
- Bumped versions of several dependencies including `@azure/storage-blob` and `@azure/storage-common`.
2025-12-10 11:04:34 +00:00
Salman Muin Kayser Chishti 79b0edad2f Prepare cache v5 release 2025-12-09 16:11:32 +00:00
Bassem Dghaidi e37ab49112 Prepapre cache v4.1.0 release 2025-09-24 05:23:58 -07:00
Bassem Dghaidi dcf05b46af Prepare release 4.0.5 2025-08-07 04:00:47 -07:00
Bassem Dghaidi 64b0793505 Prepare release 4.0.4 2025-08-06 11:37:53 -07:00
Salman Chishti 0f9155c2bd remove extra brace 2025-03-17 17:14:25 +00:00
Salman Chishti b23b3d6d4e Add update to release doc, as will include it in this release 2025-03-17 17:12:32 +00:00
Salman Chishti 3fe4261a00 Use patch instead of minor 2025-03-17 14:08:42 +00:00
Salman Chishti 4d14c06d03 shared instead of secure 2025-03-17 12:48:56 +00:00
Salman Chishti a3fda0276a change it to minor version instead of patch 2025-03-17 12:44:51 +00:00
Salman Chishti 37181a0c7e update versions for cache and artifact 2025-03-17 12:09:16 +00:00
Rob Herley 8a4fdf5d3c cache: prep v4.0.2 release 2025-02-25 15:03:37 -05:00
Rob Herley 5813dd9b59 update manifests & release notes for cache v4.0.1 2025-02-14 11:02:13 -05:00
Bassem Dghaidi 0e3e84bb8f Add announcement link 2024-12-04 08:23:10 -08:00
Bassem Dghaidi 87c0d3ba25 Update deprecation notice 2024-12-04 05:33:47 -08:00
Bassem Dghaidi 100a33ec37 Update README to include deprecation notice 2024-12-03 02:52:39 -08:00
Bassem Dghaidi 6d92f77218 Prepare @actions/cache 4.0.0 release 2024-12-03 02:40:00 -08:00
Josh Gross 9e416186e4 Prepare @actions/cache 3.3.0 release (#1871) 2024-11-01 13:32:42 -04:00
Josh Gross 80ba1b64a3 Document unreleased changes in cache and tool-cache (#1856) 2024-10-22 12:01:31 -04:00
Bethany 4ce3155654 Update RELEASES.md 2024-02-29 10:40:22 -05:00
eggyhead a0f423e37c updating cache version and release to include ghes check change
Revert "updating cache version and release to include ghes check change"

This reverts commit 7185d8964514361b7b8dcdba1f9dd54ef24b8bdd.

updating cache version and release to include ghes check change
2024-01-31 21:23:20 +00:00
Rob Herley 1410cac3f9 Update RELEASES.md
Updates release notes for @actions/cache v3.2.3
2024-01-10 17:32:52 -05:00
Chad Kimes 47a4cefdd9 Add option for concurrent cache downloads with timeout (#1484)
* Add option for concurrent cache downloads with timeout

* Add release notes

* Fix lint
2023-08-07 13:25:56 -04:00
Sankalp Kotewar 240c2257ec Merge branch 'main' into kotewar/updating-blobstorage-client-to-12.13.0 2023-03-09 00:33:52 +05:30
Sankalp Kotewar a80504bc8a formatted and updated releases file 2023-03-06 11:56:51 +00:00
Marc Mueller 1d24b3f80d Update package version and changelog 2023-02-21 13:56:25 +01:00
Lovepreet Singh 2f7397272f Add release info 2023-02-20 18:38:47 +00:00
Sampark Sharma 4a896687cd Release patch version update for cache (#1338) 2023-02-09 17:21:19 +05:30
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