You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flakiness was primarily due to insufficient number of blocks between the epoch switch, and checking for the expected stakes. The epoch was switching at heights equal to 2 modulo 10, and the checks were executed at the same heights. Moreover, the height was retrieved from one node, but the checks were against the other.
Fixing it by extending the epoch by two blocks, and moving the checks two blocks ahead.
Also adding checks before sending the second set of stakes, it covers a situation when the latest stake during the current epoch is higher than the current stake (a situation the test was not previously testing).
Reducing the timeout to 6 minutes from 10 minutes. staking2.py, staking_repro1.py and staking_repro2.py mostly test the same things, so it is still 18 minutes of testing per run. All the failures in the observable past were occurring much earlier than during the first 6 minutes of the test (e.g. see failures here: http://nayduck.eastus.cloudapp.azure.com:3000/#/run/67).
Fixes#3128
Test plan:
----------
No failures in 150 runs:
http://nayduck.eastus.cloudapp.azure.com:3000/#/run/69
All the staking tests occasionally miss a staking transactions, e.g:
staking2.py: http://52.149.162.182:3000/#/test/7719
staking_repro1.py: http://52.149.162.182:3000/#/test/7360
staking_repro2.py: http://52.149.162.182:3000/#/test/6521
The text was updated successfully, but these errors were encountered: