Repository navigation
fix(replay): keep querying registry for new changes until reaching latest version - #11699
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
michael-weigelt
approved these changes
Oct 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 1, 2026
maksym-arutyunyan
pushed a commit
to maksym-arutyunyan/ic
that referenced
this pull request
Oct 20, 2026
dfinity#11699 reached mainnet NNS (proposal [144319](https://dashboard.internetcomputer.org/proposal/144319)) so we can use mainnet's `ic-recovery` again. dfinity#11768 reached mainnet NNS (proposal [144480](https://dashboard.internetcomputer.org/proposal/144480)) so we can reenable the test again. Tested locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
get_changes_sincemethod of the registry canister caps the number of returned deltas to avoid huge responses. Inic-replay, we call this function to update a local store with all new mutations present in the replayed state. Though,ic-replaycalls it only once, meaning that if lots of mutations were present,ic-replaywould not actually update the local store to the latest version.This PR fixes the behaviour by continuing to query
get_changes_sinceuntil reaching the latest version.