test: Add chain upgrade test as gh action#430
Merged
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #430 +/- ##
=======================================
Coverage 69.54% 69.54%
=======================================
Files 67 67
Lines 4006 4006
=======================================
Hits 2786 2786
Misses 1124 1124
Partials 96 96
☔ View full report in Codecov by Sentry. |
This reverts commit ec54e73.
Signed-off-by: Spoorthi <9302666+spoo-bar@users.noreply.github.com>
Signed-off-by: Spoorthi <9302666+spoo-bar@users.noreply.github.com>
This was referenced Aug 24, 2023
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.
Using the Interchain test framework, this PR adds a chain upgrade test case as well as a gh workflow which runs the test for every PR targeting main
How it works
There are two hardcoded values for the test. ( 👀 /interchaintest/setup.go)
initialVersion- whose value is expected to be the latest release of the repo/the version that mainnet is running on.upgradeName- whose value is expected to be the next release upgrade handler nameSteps
initialVersionupgradeNamee.g. Here is gh workflow where we I tried to push changes but there is no upgrade handler for the new upgrade yet and thus the action fails. https://github.com/archway-network/archway/actions/runs/5939415337/job/16106111680
How to use it
There are two ways to use this:
Test via github workflow
The
Run Interchaintestgithub workflow automatically runs on every PR targeting main.Test locally
This is a bit more complicated. The test does not use the docker builds that our scripts generate. The interchaintest framework integrates with heighliner built images. So to run the test locally, you would need to do the following:
git clone https://github.com/strangelove-ventures/heighliner.git cd heighliner go installWhy we need this
Note
The default Interchaintest framework does not work with Archway as it dosent handle Coin precision of 18 very well. There are some hardcoded values for genesis accounts and gentx which amount to too little for archway. So, I have forked the repo and just fixed the hardcoded values to make more sense for Archway.