-
Notifications
You must be signed in to change notification settings - Fork 161
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
tests: testing ibc transactions on e2e tests #2284
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2284 +/- ##
==========================================
- Coverage 75.38% 70.49% -4.90%
==========================================
Files 100 170 +70
Lines 8025 12882 +4857
==========================================
+ Hits 6050 9081 +3031
- Misses 1589 3198 +1609
- Partials 386 603 +217
|
Note: once it is merged , we need to change |
@@ -64,31 +64,24 @@ func (s *E2ETest) checkOutflows(umeeAPIEndpoint, denom string, checkWithExcRate | |||
} | |||
|
|||
func (s *E2ETest) checkSupply(endpoint, ibcDenom string, amount math.Int) { | |||
attempt := 1 |
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.
I am removing attempt
from here bcause the relayer taking so much time making ibc txn submitting on both sides
@@ -10,5 +12,5 @@ gaiad collect-gentxs | |||
sed -i 's/127.0.0.1:26657/0.0.0.0:26657/g' /root/.gaia/config/config.toml | |||
sed -i -e 's/enable = false/enable = true/g' /root/.gaia/config/app.toml | |||
sed -i -e 's/pruning = "default"/pruning = "nothing"/g' /root/.gaia/config/app.toml | |||
sed -i 's/timeout_commit = "5s"/timeout_commit = "300ms"/g' /root/.gaia/config/config.toml |
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 is too fast 300ms
, so relayer needs to catup the blocks height , so I making 1s
port = 3001 | ||
|
||
[[chains]] | ||
id = '$UMEE_E2E_UMEE_CHAIN_ID' | ||
rpc_addr = 'http://$UMEE_E2E_UMEE_VAL_HOST:26657' | ||
grpc_addr = 'http://$UMEE_E2E_UMEE_VAL_HOST:9090' | ||
websocket_addr = 'ws://$UMEE_E2E_UMEE_VAL_HOST:26657/websocket' | ||
event_source = { mode = 'push', url = 'ws://$UMEE_E2E_UMEE_VAL_HOST:26657/websocket', batch_delay = '500ms' } |
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.
batch_delay 500ms
they are recommended with their tests
func() bool { | ||
s.T().Log("We are waiting for channel creation...") | ||
channels, err := s.QueryIBCChannels(s.UmeeREST()) | ||
if channels { |
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.
We need to wait for ibc channels
creation before making the ibc txn
} | ||
return err == nil | ||
}, 5*time.Second, 200*time.Millisecond, "require tx to be included in block") | ||
// Note: we are cchecking only one side of ibc , we don't know whethever ibc transfer is succeed on one side |
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.
I am commenting this LOC, becuase we are checking only one side of ibc txn , we don't know whether ibc is succeed on other side of ibc
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.
was this working before? Why it doesn't work 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.
No, it is not working previously because they check only one side on ibc
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.
Previously When I wrote this , there is no txn checking , we are just waiting around 12 seconds I think for every IBC Txn
return false | ||
}, | ||
2*time.Minute, | ||
10*time.Minute, |
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.
why do we increase it to 10min? that sounds too much...
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.
We don't know ibc txn is succeed or not, we only know txn is succceed when that denom exists in supply query
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.
10 minutes I know it is too much but that is the maximum time to check the ibc txn because sometimes hermes relayer taking too much time submit the ibc txn on both sides
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.
for e2e tests, 10min is too much. Can we keep it to 2 or 3 min?
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.
We don't know how much time taking to succeed ibc txn with this new hermes , so I keep maximum 10m , 2minutes or 3 minutes not enough at least it required 6minutes to check the supply (like ibc txn to succeed)
I will update this time in next PR (once cross checking done with go relayer
and hermes
)
// send $15 ATOM from umee to gaia | ||
sendAtom := mulCoin(atomQuota, "0.15") | ||
sendAtom := mulCoin(atomQuota, "0.05") |
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.
why do we change the amount here?
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.
just making sure the total sending quota is always less than TotalQuota (120$)
} | ||
return err == nil | ||
}, 5*time.Second, 200*time.Millisecond, "require tx to be included in block") | ||
// Note: we are cchecking only one side of ibc , we don't know whethever ibc transfer is succeed on one side |
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.
was this working before? Why it doesn't work now?
} | ||
return channels | ||
}, | ||
10*time.Minute, |
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.
10min is a lot
* WIP: testing ibc txn on e2e tests * using testing docker images of gaia and hermes relayer * fixing the tests * fix the calculation on tests * fix++ * fix++ * fix++ * fix++ * adding default hermes relayer image * using ghcr gaia
Description
In this pull request we are upgraded
hermes
relayer tov1.6.0
andgaia
tov13.0.0
, to make sure all our testing images up to datehermes
image from docker hubAuthor Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...