Skip to content

fix(replay): keep querying registry for new changes until reaching latest version - #11699

Merged
pierugo-dfinity merged 2 commits into
masterfrom
pierugo/replay/repeat-get-changes-since
Oct 1, 2026
Merged

pierugo-dfinity merged 2 commits into
masterfrom
pierugo/replay/repeat-get-changes-since

Conversation

@pierugo-dfinity

@pierugo-dfinity pierugo-dfinity commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

The get_changes_since method of the registry canister caps the number of returned deltas to avoid huge responses. In ic-replay, we call this function to update a local store with all new mutations present in the replayed state. Though, ic-replay calls it only once, meaning that if lots of mutations were present, ic-replay would not actually update the local store to the latest version.

This PR fixes the behaviour by continuing to query get_changes_since until reaching the latest version.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The pagination logic advances safely, terminates at the reported latest version, and is covered by a focused multi-page test.

Review effort: Balanced
Findings: None

What changed in this PR

Updates ic-replay to fetch every capped registry page until the latest version is reached.

Changes:

  • Adds paginated registry fetching with progress tracking.
  • Adds multi-page query tests.
  • Updates the mainnet NNS recovery version reference.
File Description
rs/​replay/​src/​player.rs Implements and tests registry pagination.
rs/​tests/​testnets/​mainnet_nns/​src/​lib.rs Updates the recovery version TODO reference.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@pierugo-dfinity
pierugo-dfinity marked this pull request as ready for review September 29, 2026 13:54
@pierugo-dfinity
pierugo-dfinity requested a review from a team as a code owner September 29, 2026 13:54
@pierugo-dfinity
pierugo-dfinity added this pull request to the merge queue Oct 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 1, 2026
@pierugo-dfinity
pierugo-dfinity added this pull request to the merge queue Oct 1, 2026
Merged via the queue into master with commit 2a310be Oct 1, 2026
46 checks passed
@pierugo-dfinity
pierugo-dfinity deleted the pierugo/replay/repeat-get-changes-since branch October 1, 2026 10:01
maksym-arutyunyan pushed a commit to maksym-arutyunyan/ic that referenced this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants