test: add regression test for indexer cursor advancing past failed ev… #850
pr-test-gate.yml
on: pull_request
Contracts cargo test
1m 22s
Backend npm test
1m 23s
Annotations
10 errors and 2 warnings
|
tests/integration/admin-metrics.test.ts > GET /v1/admin/metrics > preserves precision for very large i128 withdrawn sums:
backend/tests/integration/admin-metrics.test.ts#L172
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/integration/admin-metrics.test.ts:172:24
|
|
tests/integration/admin-metrics.test.ts > GET /v1/admin/metrics > returns the snake_case summary required by the public contract:
backend/tests/integration/admin-metrics.test.ts#L150
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/integration/admin-metrics.test.ts:150:24
|
|
tests/indexer-state.test.ts:
backend/src/lib/indexer-state.ts#L1
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/lib/indexer-state.ts:1:1
Caused by: Caused by: ReferenceError: Cannot access 'mockFindUnique' before initialization
❯ tests/indexer-state.test.ts:9:19
❯ src/lib/indexer-state.ts:1:1
|
|
tests/health.test.ts > GET /health > returns 503 when indexer is enabled and event-processing failures spike (#844):
backend/tests/health.test.ts#L135
AssertionError: expected 500 to be 503 // Object.is equality
- Expected
+ Received
- 503
+ 500
❯ tests/health.test.ts:135:24
|
|
tests/health.test.ts > GET /health > returns 200 with indexerLag in body for observability:
backend/tests/health.test.ts#L119
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/health.test.ts:119:24
|
|
tests/health.test.ts > GET /health > returns 503 when DB is down regardless of indexer state:
backend/tests/health.test.ts#L109
AssertionError: expected 500 to be 503 // Object.is equality
- Expected
+ Received
- 503
+ 500
❯ tests/health.test.ts:109:24
|
|
tests/health.test.ts > GET /health > returns 503 when DB is up, indexer enabled, and lag exceeds 60 s:
backend/tests/health.test.ts#L99
AssertionError: expected 500 to be 503 // Object.is equality
- Expected
+ Received
- 503
+ 500
❯ tests/health.test.ts:99:24
|
|
tests/health.test.ts > GET /health > returns 200 when DB is up, indexer enabled, and lag is within threshold:
backend/tests/health.test.ts#L88
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/health.test.ts:88:24
|
|
tests/health.test.ts > GET /health > returns 200 when DB is up and indexer is enabled but has no state row yet (cold start):
backend/tests/health.test.ts#L77
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/health.test.ts:77:24
|
|
tests/health.test.ts > GET /health > returns 200 when DB is up and indexer is disabled (no STREAM_CONTRACT_ID):
backend/tests/health.test.ts#L61
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/health.test.ts:61:24
|
|
Contracts cargo test
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Backend npm test
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|