Skip to content

Implement persistent data cache option and update cache key logic #1369

Implement persistent data cache option and update cache key logic

Implement persistent data cache option and update cache key logic #1369

Triggered via pull request July 27, 2025 20:29
Status Failure
Total duration 38s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
validate
Process completed with exit code 1.
packages/tests-unit/tests/adapters/cache.test.ts > CacheHandler > revalidateTag > Should not call invalidateCdnHandler.invalidatePaths for fetch cache key : packages/tests-unit/tests/adapters/cache.test.ts#L597
AssertionError: expected "spy" to be called with arguments: [ [ { path: '123456', tag: 'tag' } ] ] Received: 1st spy call: Array [ Array [ Object { - "path": "123456", - "tag": "tag", + "path": Object { + "baseKey": "123456", + "buildId": "undefined-build-id", + }, + "tag": Object { + "baseKey": "tag", + "buildId": "undefined-build-id", + }, }, ], ] Number of calls: 1 ❯ packages/tests-unit/tests/adapters/cache.test.ts:597:34
packages/tests-unit/tests/adapters/cache.test.ts > CacheHandler > revalidateTag > Should call invalidateCdnHandler.invalidatePaths: packages/tests-unit/tests/adapters/cache.test.ts#L582
AssertionError: expected "spy" to be called with arguments: [ [ { path: '/path', …(1) } ] ] Received: 1st spy call: Array [ Array [ Object { - "path": "/path", - "tag": "_N_T_/path", + "path": Object { + "baseKey": "/path", + "buildId": "undefined-build-id", + }, + "tag": Object { + "baseKey": "_N_T_/path", + "buildId": "undefined-build-id", + }, }, ], ] Number of calls: 1 ❯ packages/tests-unit/tests/adapters/cache.test.ts:582:34
packages/tests-unit/tests/adapters/cache.test.ts > CacheHandler > revalidateTag > Should call tagCache.writeTags: packages/tests-unit/tests/adapters/cache.test.ts#L565
AssertionError: expected "spy" to be called with arguments: [ 'tag' ] Received: 1st spy call: Array [ - "tag", + Object { + "baseKey": "tag", + "buildId": "undefined-build-id", + }, ] Number of calls: 1 ❯ packages/tests-unit/tests/adapters/cache.test.ts:565:44
validate
tests-unit#test: command (/home/runner/work/opennextjs-aws/opennextjs-aws/packages/tests-unit) pnpm run test exited (1)
validate
Couldn't write a comment to the pull request. Please make sure your job has the permission 'pull-requests: write'. Original Error was: [HttpError] - Resource not accessible by integration - https://docs.github.com/rest/issues/comments#create-an-issue-comment