3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2026-08-09 21:11:31 +00:00
cache/__tests__
Jasperhino c0d02c4c23 Fix restore-keys to prefix-match on GCS like actions/cache
restore-keys were checked with exact object existence, so prefix
fallbacks (e.g. `nx-` matching `nx-<sha>`) never hit on GCS — they
only worked via the GitHub cache fallback, which is empty when saves
go to GCS. Rolling caches keyed on unique values (sha/run) were
therefore never restored.

Primary key stays exact-match to keep `cache-hit` semantics. Restore
keys now list objects by prefix and pick the newest, mirroring the
upstream actions/cache contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PkmyS2WfCHHdaQQRpfqvNi
2026-07-24 14:53:05 +02:00
..
__fixtures__ Add unit tests for actionUtils (#93) 2019-11-13 16:13:00 -05:00
actionUtils.test.ts Allow configured env fallback for GCS bucket 2026-05-22 08:13:30 +02:00
create-cache-files.sh Add path argument to create-cache-files.sh 2020-04-07 23:29:07 -04:00
gcsCache.test.ts Fix restore-keys to prefix-match on GCS like actions/cache 2026-07-24 14:53:05 +02:00
restore.test.ts Restore original behavior of cache-hit output (#1467) 2024-10-08 13:08:22 -04:00
restoreImpl.test.ts Add test case for process exit 2024-03-19 09:28:12 +01:00
restoreOnly.test.ts Restore original behavior of cache-hit output (#1467) 2024-10-08 13:08:22 -04:00
save.test.ts Apply workaround for earlyExit 2024-01-10 15:36:58 +00:00
saveImpl.test.ts Apply workaround for earlyExit 2024-01-10 15:36:58 +00:00
saveOnly.test.ts Apply workaround for earlyExit 2024-01-10 15:36:58 +00:00
stateProvider.test.ts GA for granular cache (#1035) 2022-12-21 19:38:44 +05:30
verify-cache-files.sh Add path argument to verify-cache-files.sh 2020-04-07 23:30:01 -04:00