Add recovery coverage for changed code IDs#7986
Open
Copilot wants to merge 10 commits into
Open
Conversation
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add recovery test using a code id that differs from that in the table
Add recovery coverage for changed code IDs
Jun 25, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
achamayou
approved these changes
Jun 26, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an end-to-end recovery test to ensure a ledger can be recovered even when the recovering service uses a different application package (and therefore a different code ID / hostData) than the defunct service recorded in its join policy.
Changes:
- Add
test_recover_service_with_different_code_idto recover a ledger using a different package and validate join-policy hostData before/after recovery. - Add a new suite entry (
recovery_with_new_code_id) that starts with the C++ logging app and recovers withjs_generic, then installs the JS logging app and verifies post-recovery writes.
Custom instructions used:
.github/copilot-instructions.md.github/instructions/reviewing.instructions.md
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
achamayou
approved these changes
Jun 26, 2026
Member
|
@copilot fix code format |
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Contributor
Author
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.
Recovering a ledger should not require the new service to use the same code ID recorded in the defunct ledger. This adds suite-level coverage for recovering with a different app package.
Recovery scenario
recovery_with_new_code_id.samples/apps/logging/logging.js_generic.Code ID checks