Commit Graph
19 Commits
Author SHA1 Message Date
a107f24fb0 feat: backport cache read-denied + ACTIONS_CACHE_MODE handling (5.2.0) (#2451)
Backport of the read-denied and ACTIONS_CACHE_MODE cache-mode gating from
the ESM v6.2.0 line (#2447) to the CommonJS v5 line, released as 5.2.0.
Mirrors the earlier write-denied backport (#2435, 5.1.0).

- Detect the `cache read denied:` prefix on download failures (v2 twirp
  path and v1 `_apis/artifactcache` path) and surface it as a core.warning
  without failing the run.
- Honor ACTIONS_CACHE_MODE: skip restore when the effective cache-mode does
  not permit reads (none, write-only) and skip save when it does not permit
  writes (none, read), logging a single non-fatal core.info line. Unset or
  unrecognized modes are unchanged.
- Add read-denied and cache-mode tests; bump to 5.2.0 with RELEASES entry.


Copilot-Session: e96deec1-716e-4e14-acdf-a230139420a2

Co-authored-by: Copilot App <[email protected]>
2026-07-15 13:13:58 -05:00
Bassem DghaidiandGitHub 6d3feab2bf Merge pull request #2100 from actions/copilot/fix-2099
Improve cache service availability determination and implement conditional error logging
2025-07-28 16:49:10 +02:00
copilot-swe-agent[bot]andLink- c51178a15e Implement 5xx server error detection and fix most cache tests
Co-authored-by: Link- <[email protected]>
2025-07-14 12:23:44 +00:00
Bassem DghaidiandGitHub cf4886cccb Fix linting issues 2025-07-14 03:49:28 -07:00
Bassem DghaidiandGitHub 0c5da92b52 Fix logging of cache key and restore key matches 2025-07-14 03:45:17 -07:00
copilot-swe-agent[bot]andLink- 513216f1dd Fix tests to expect errors instead of warnings for cache failures
- Update restoreCacheV2.test.ts, restoreCache.test.ts, saveCacheV2.test.ts, and saveCache.test.ts
- Change test expectations from core.warning to core.error for cache operation failures
- All tests now pass successfully

Co-authored-by: Link- <[email protected]>
2025-07-14 10:38:47 +00:00
Art Leo 514314311c Log cache version requested 2025-03-15 10:13:43 +11:00
Rob Herley 7fe619c58c update mocks 2025-02-14 09:42:41 -05:00
Rob HerleyandGitHub e0c069db55 remove runtime dependency on twirp-ts 2025-01-27 17:52:55 +00:00
Bassem DghaidiandGitHub 8c5f6f2dc5 Force use of Azure for restoreCacheV2 2024-11-28 07:42:07 -08:00
Bassem DghaidiandGitHub eaf0083ee2 Respect download options for restore 2024-11-28 04:56:37 -08:00
Bassem DghaidiandGitHub 27e5cf2514 Replace downloadCacheFile with downloadCacheStorageSDK 2024-11-27 04:51:21 -08:00
Bassem DghaidiandGitHub 35ede8fcf0 Add a new debug message for downloads 2024-11-25 12:08:07 -08:00
2d2513915c Remove unused package
Co-authored-by: Rob Herley <[email protected]>
2024-11-25 16:13:20 +01:00
Bassem DghaidiandGitHub de236da416 Fix cache lookup scenario 2024-11-25 05:47:51 -08:00
Bassem DghaidiandGitHub 4dadd612d6 Add support for matching on restore key values 2024-11-25 05:42:50 -08:00
Bassem DghaidiandGitHub 54ac2dd012 Add cache service version debug message 2024-11-25 04:08:47 -08:00
Bassem DghaidiandGitHub 4de30f744e Add more tests for restoreCacheV2 2024-11-25 03:53:03 -08:00
Bassem DghaidiandGitHub 39d19810a8 Add restore tests 2024-11-22 09:01:59 -08:00