feat(contribs): add gnoupgrade chain upgrade testing toolkit#5369
Draft
feat(contribs): add gnoupgrade chain upgrade testing toolkit#5369
Conversation
Add a new contribs tool for testing and verifying gno.land chain upgrades. The toolkit provides three subcommands: - replay: starts a node against existing chain data to verify the new binary can successfully replay all committed blocks (smoke test) - statediff: captures chain state in a canonical, sorted JSON format for before/after comparison across upgrades - healthcheck: runs connectivity, block production, and ABCI query checks against a running node post-upgrade This is the first step toward a CI pipeline for chain upgrade confidence (Tools 1-3 from the chain-upgrade task plan). Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Collaborator
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):No automated checks match this pull request. ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Adds
contribs/gnoupgrade— a CLI toolkit for testing and verifying gno.land chain upgrades before they touch real chains.Subcommands
replay— Starts a gnoland node against an existing data directory to verify the new binary can replay all committed blocks without panic. This is the primary smoke test gate for chain upgrades.statediff— Captures chain state (chain ID, height, app hash, realm/package listing) in a canonical, sorted JSON format. Run against old and new binaries anddiffthe output to see exactly what changed.healthcheck— Runs post-upgrade health checks against a running node: connectivity, block production, ABCI query.Context
This is part of the chain upgrade confidence-building pipeline (braindump). It implements Tools 1-3 from the plan:
Usage
Related
--halt-heightCLI flag (Phase 1)Test plan
go build ./...passesgnoupgrade --helpshows all three subcommandsgnoupgrade replay --helpshows all flags🤖 Generated with Claude Code
via Happy