rollmint icon indicating copy to clipboard operation
rollmint copied to clipboard

GM CI

Open jcstein opened this issue 2 years ago • 13 comments

gm CI

  • I spoke briefly with @nashqueue regarding new Github Action for rollkit using gm and a fix for Ethermint CI
  • the GM script/CI would be something like:
    1. install golang, ignite cli
    2. run ephemeral cluster, look into @mojtaba-esk's https://github.com/mojtaba-esk/celestia-local, either script or in yaml
    3. light node running that is funded with test tokens
    4. seems a little tricky to test in CI unless on an ephemeral cluster
    5. scaffold the chain
    6. cd to chain directory
    7. install rollmint
    8. scaffold a query
    9. modify the gm/x/gm/keeper/grpc_query_gm.go file to return a response on query
    10. start the sovereign rollup (by cloning the script in devrel tools)
    11. run init.sh script
    12. open a new terminal instance to test the query to confirm chain is alive
    13. look for confirmation on the rollkit output to look for INF commit synced commit=

jcstein avatar Jan 05 '23 22:01 jcstein

Moved Ethermint Issue into a separate issue , because they can be addressed separately.

nashqueue avatar Jan 06 '23 11:01 nashqueue

edited title ✅

jcstein avatar Jan 06 '23 15:01 jcstein

Is this a new Workflow or updating an existing one?

If existing, can you link to the file so we know which one we are looking at?

MSevey avatar Jan 06 '23 19:01 MSevey

new, it would be similar to the Ethermint CI. if we can fix Ethermint CI, i don't know that it's 100% necessary, but GM CI may be useful

jcstein avatar Jan 06 '23 19:01 jcstein

Relating to this, here is a new proposal after conversations with @tzdybal :

Create a docker image, from stable and official core + node docker images. This will be in contrast to the manual config creation that needs to happen in the ephermal-cluster. This can be heavily inspired by the integration tests of go-cnc.

With this minimal setup running, we will run a gm-script on top of that (and any other tutorial). Regarding the testing of CLI input/outputs, we can use https://github.com/bats-core/bats-core inside the gm-script.

The minimal Celestia setup generation will be on its own repo. The scripts of the tutorials will live in the documentation repo.

The GitHub action of the rollkit commits will pull the image from one repo and the tutorials from the other.

In the future, we might need to upgrade as the machine Microsoft provides won't be enough for the GitHub action.

nashqueue avatar Jan 09 '23 13:01 nashqueue

working on it, need to try with the suggestions above still

https://www.loom.com/share/670fa7d7092749749b797260675f50c4

https://github.com/jcstein/devrel-tools/blob/main/gm/gm-ci.sh

jcstein avatar Jan 13 '23 06:01 jcstein

Do you want to add tests with the bats repo I linked above?

nashqueue avatar Jan 18 '23 13:01 nashqueue

Yes, need to do that to check for INF commit synced commit=

jcstein avatar Jan 18 '23 15:01 jcstein

Updated script for new versions and moved repo: https://github.com/jcstein/devrel-tools/blob/main/gm/gm-ci.sh

  • [ ] test with local-celestia-dev net

jcstein avatar Feb 01 '23 02:02 jcstein

I think I will need the devops team to take this over so it can be prioritized

jcstein avatar Mar 27 '23 11:03 jcstein

This is where I had left off last https://github.com/rollkit/docs/pull/113

jcstein avatar Mar 27 '23 16:03 jcstein

DevOps epic: https://github.com/celestiaorg/devops/issues/116

smuu avatar Apr 17 '23 10:04 smuu

Close this after this is in a cosmos-sdk branch.

Manav-Aggarwal avatar Sep 12 '23 16:09 Manav-Aggarwal

Closing as stale issue.

Manav-Aggarwal avatar Jun 19 '24 00:06 Manav-Aggarwal