Skip to content

Add checkpoint resume coverage for indexer - #383

Open
kitWarse wants to merge 1 commit into
SO4-Markets:mainfrom
kitWarse:test/337-indexer-checkpoint-resume
Open

Add checkpoint resume coverage for indexer#383
kitWarse wants to merge 1 commit into
SO4-Markets:mainfrom
kitWarse:test/337-indexer-checkpoint-resume

Conversation

@kitWarse

Copy link
Copy Markdown

Summary

  • Added deterministic start ledger resolution for the S03 indexer so a stored checkpoint can control the configured start block.
  • Added Bun tests that simulate a stored checkpoint, verify resume from that ledger, and verify fallback to the configured genesis ledger when no checkpoint exists.

Issue

Changes

  • Introduced
    esolveIndexerStartLedger in �pps/s03-indexer/project.ts.
  • Supports checkpoint values from lastProcessedLedger, lastProcessedHeight, ledger, or height fields.
  • Keeps the existing INDEXER_START_LEDGER fallback behavior when no checkpoint path is provided or the checkpoint is missing.
  • Added focused tests in �pps/s03-indexer/tests/start-ledger.test.ts.

Validation

  • Attempted: �un run --cwd apps/s03-indexer test
  • Result: blocked locally because subql was not available before dependencies were installed.
  • Attempted: �un install
  • Result: command timed out in the local environment before validation could be rerun.

Notes

  • No lockfile or dependency changes were committed.

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@kitWarse is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@kitWarse Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Indexer: cursor/checkpoint persistence

1 participant