Skip to content

Added 2nd level cache to Pongo and batching to handle method #787

Added 2nd level cache to Pongo and batching to handle method

Added 2nd level cache to Pongo and batching to handle method #787

Triggered via pull request March 28, 2026 16:39
Status Failure
Total duration 1m 28s
Artifacts

build_and_test.yml

on: pull_request
Build application code
1m 25s
Build application code
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Build application code
Process completed with exit code 1.
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > transaction cache integration > deleteOne within transaction does NOT update collection cache until commit: src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L655
AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…}, null ] Number of calls: 0 ❯ src/core/cache/collectionCache.int.spec.ts:655:25
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > behavioral cache correctness > replaceMany with version mismatch evicts from cache (not null): src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L424
AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…} ] Number of calls: 0 ❯ src/core/cache/collectionCache.int.spec.ts:424:28
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > behavioral cache correctness > replaceMany evicts from cache for not-found doc: src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L407
AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining "ghost-replace-1" ] Number of calls: 0 ❯ src/core/cache/collectionCache.int.spec.ts:407:28
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > behavioral cache correctness > deleteMany with $in filter caches null for each deleted ID via deleteManyByIds routing: src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L368
AssertionError: expected "vi.fn()" to be called with arguments: [ ArrayContaining{…} ] Received: 1st vi.fn() call: [ - ArrayContaining [ - ObjectContaining { - "key": StringContaining "019d3551-f81f-773f-b8b6-a43855d9aef0", - "value": null, - }, - ObjectContaining { - "key": StringContaining "019d3551-f81f-773f-b8b6-a99ec5b353ec", - "value": null, - }, - ], + [], ] Number of calls: 1 ❯ src/core/cache/collectionCache.int.spec.ts:368:29
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > behavioral cache correctness > deleteMany caches null for all deleted IDs: src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L351
AssertionError: expected { name: 'A', …(2) } to be null - Expected: null + Received: { "_id": "019d3551-f818-746a-9152-ecc425f09079", "_version": 1n, "name": "A", } ❯ src/core/cache/collectionCache.int.spec.ts:351:48
[@event-driven-io/pongo] src/core/cache/collectionCache.int.spec.ts > pongoCollection cache integration > behavioral cache correctness > findOne for non-existent document caches null — second call skips DB: src/packages/pongo/src/core/cache/collectionCache.int.spec.ts#L303
AssertionError: expected "vi.fn()" to be called with arguments: [ 'db:users:ghost-id', null ] Number of calls: 0 ❯ src/core/cache/collectionCache.int.spec.ts:303:25