-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating upgrade module with gaia #8
Comments
The only comment is if we could coordinate the testnet with AIB that would
help them with theit validation. So basically we do all the setup work but
we test together with Bez, Jack, Fede, etc
…On Sat, Oct 26, 2019, 11:23 SaReN ***@***.***> wrote:
Context
- Currently the upgrade module can be tested only using simulation. I
would like to propose integrating upgrade module with latest release of
cosmos/gaia(v2.0.2). This would help in testing integration of upgrade
module with the application.
- The same PR can help for cosmos/gaia after upgrade PR is merged to
cosmos-sdk
Proposed Design
1. Integrate upgrade module with cosmos/gaia
2. Create 2 releases with different version in regen-network/gaia
3. Run a local testnet to check integration and working of upgrade
module
@ethanfrey <https://github.com/ethanfrey> @aaronc
<https://github.com/aaronc>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=AAAL6FVOJTQZTU3ZYHLBBVDQQROHFA5CNFSM4JFNVLN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUROEHQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6FXFGVNWLJTYJKWMHCLQQROHFANCNFSM4JFNVLNQ>
.
|
There is a relevant comment on this here cosmos#4233 (comment) (basically trying to get the info to Bez and Jack to demo). Building those PRs on gaiad would be a nice step, definitely link to that upgrade PR when done |
Locations: Work should be done on https://github.com/regen-friends/gaia in a branch This should reference as dependency the branch If there are problems with setting up the dependencies or compiling a gaia compatible with this branch, please advice. Once finished, please make a PR from this same repo into master for internal review. Once we have internal review, we can submit the PR against cosmos/gaia |
It turns out that the most recent gaia https://github.com/cosmos/gaia/blob/release/v2.0.2/go.mod references cosmos-sdk v0.37.3, which is incompatible with current cosmos-sdk:master, and therefore the upgrade PR. I will communicate with Jack/Bez three options:
|
Please submit a PR or branch showing the proper go.mod changes and the compile error. |
https://github.com/regen-friends/gaia/tree/gaia-upgrades |
Unblocked. Turns out the versions in go.mod are useless to follow. I updated this and https://github.com/regen-friends/gaia/tree/gaia-upgrades now builds. It is gaia:master with the one change to point to our fork with x/upgrades in it. You should be unblocked to continue the integration work. |
We did integrate x/upgrade with regen-ledger based on the 0.34 version of the sdk. So, some things may have changed, but take a look here (and search for upgrade) to see the points where it needs to be plugged in: https://github.com/regen-network/regen-ledger/blob/master/app/app.go In particular here, which most modules don't do: https://github.com/regen-network/regen-ledger/blob/master/app/app.go#L220 The |
Once the integration is done and you want to test it, you will need the second binary (a branch on top with one more commit). And a rough description of how to do it is here: cosmos#4233 It would be good to document this better as you perform the upgrade, as someone following the instructions the first time will notice all the missing steps that are implied.
|
We need to pass upgrade cli and rest to gov's proposal handler which is missing in current implementation of x/upgrade client.Current implementation has module_client which was used in older versions of sdk to club all client commands. Can we change this,as per current implementation.This is blocking for integrating upgrade with gaiacli. |
The client was only tested with the 0.34 build, and I dragged it along into the rewrite. Then make a PR from your client updates to the PR branch cosmos#4233 |
There's an issue with --height flag here,giving me error of "failed to load state at height",whereas replacing flag by upgrade-height solves the problem. |
regen-friends/gaia#1 |
@ethanfrey @aaronc, I've finished integration and tested successfully with a proposal. Also added upgrade-demo.md to sdk/docs which can be used to test the upgrade |
Okay, I will look again. |
@aaronc We can close this as it's merged to cosmos/gaia |
Closng tihs ticket. |
Context
Proposed Design
@ethanfrey @aaronc
The text was updated successfully, but these errors were encountered: