Skip to content

test(indexer): cover event indexer deduplication and idempotency - #2211

Open
genZIn4532 wants to merge 1 commit into
LabsCrypt:mainfrom
genZIn4532:test/indexer-event-dedup-coverage-2069
Open

genZIn4532 wants to merge 1 commit into
LabsCrypt:mainfrom
genZIn4532:test/indexer-event-dedup-coverage-2069

Conversation

@genZIn4532

Copy link
Copy Markdown

Summary of Changes

Closes #2069

Adds comprehensive unit test coverage verifying EventIndexer deduplication, repeated ledger processing, and unique constraint collision behavior.

  • Repeated Ledger Ingestion: Asserts that re-processing identical raw events from duplicate or replayed ledgers does not re-insert duplicate event rows and skips redundant user score updates.
  • Reordered Events: Verifies out-of-order sequence tokens within a ledger batch are handled idempotently without breaking batch transactions.
  • Unique Constraint Retries: Asserts that database unique constraint conflicts () gracefully succeed with and trigger zero side-effects.
  • Test Suite: 13/13 unit tests passing 100% clean in .

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test] Cover event indexer deduplication

1 participant