-
Notifications
You must be signed in to change notification settings - Fork 551
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
feat: add standalone relayer commands #709
Conversation
There is something alien in this PR... _ |
This is soooo cool! 🔥🔥🔥 Bob got his tokens on SPN now: It's exactly the functionality that I think we need so very much! Right now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job👌
Code looks great, I do some tests now
Since the standalone relayer command replaces the previous workflow, we may need to disable the relayer info/secret.yml behavior. Right now after The "happy path" for users for connecting to new chains:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me. Approving it unless Denis' suggestions are for this PR
without getting their logs mixed with each other. undo replace directive in go.mod after cosmos/relayer#402 has merged.
* rename `relayer connect` to `relayer configure`. * rename `relayer start` to `relayer start`. * auto relay packets between chains via `relayer start` command. * improve logs/docs show account balances, port and channel ids. * add gracefull command cancelation. * only allow to print important relayer logs. * link and start paths in parallel.
integration tests sometimes fails, this might be due to high cpu usage. let's see if this will fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, this is the coolest thing I've seen in a while! @ilgooz, you've outdone yourself! 🔥🔥🔥
I just want to clarify a couple of details.
I don't think we have 4 chains connected (3 chains, 2 paths). Also, which is a bit more important, channel specifies a connection name ( |
Very huge 💪🔥 This is very intuitive and easy to use Some points but honestly none of them are critical for this PR:
I restart the command and then it's ok. For me, it seems to happen soon after the first launch of the command, and then it no longer occurs.
(a bit weird but when I retry the command the error is slightly different)
I think it could be great to be able to forget a chain in the configuration or ignore that chain that you cannot connect two since if starport relayer can be used for chain development, the developer could have no longer used blockchains in its configuration
Maybe we could have a more explicit message that highlights the fact that the packet failed to be delivered
|
@@ -11,8 +11,6 @@ import ( | |||
) | |||
|
|||
func TestServeLaunchpadAppWithWasm(t *testing.T) { | |||
t.Parallel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure curiosity: why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was related to reduce the cpu usage on CI. Because parallel tests create a huge stress on it and our tests tends to timeout.
@ltacker thank you! ❤️ These errors will occour when using relayer directly as well, I think handling them gracefully would be better handled there internally. If you would like to open an issue concerning your thoughts on UX maybe we can start a discussion there? About the low level |
* feat: add standalone relayer commands * fix linter errs + cosmetics * rm good old relayer * fix tests * rm leftovers from the old relayer * support Gitpod for faucet discovery * scaffold: enable faucet by default * fix Gitpod faucet discovery * silence relayer so `relayer start` can link multiple chains in parallel without getting their logs mixed with each other. undo replace directive in go.mod after cosmos/relayer#402 has merged. * link chains in parallel in the relayer start cmd * docs Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com> * rm faucet.coins_max * use bob for the faucet * back to cosmos/relayer * add cancelation for start cmd * refactor & add features: relayer commands * rename `relayer connect` to `relayer configure`. * rename `relayer start` to `relayer start`. * auto relay packets between chains via `relayer start` command. * improve logs/docs show account balances, port and channel ids. * add gracefull command cancelation. * only allow to print important relayer logs. * link and start paths in parallel. * fix test + lint * attach original rly to 'starport relayer rly' depends on cosmos/relayer#411. * cmd docs * upgrade relayer * ensure secure rpc addr always has :443 attached * rm path from rpc addr * fix xurl.CleanPath * fix config * simplify errors * inc timeout for integration tests * fix conflicting statik * rm parallelism from tests that serves an app integration tests sometimes fails, this might be due to high cpu usage. let's see if this will fix it. * fix install script * docs * docs+cosmetics * add conf alias to config command * fix docs Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
To test:
starport relayer configure
. No need to enter any value to prompted questions, just hit enter to all. ~ there is an auto faucet discovery.starport relayer connect
.