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
It would be nice to have a supported workflow to reset a network back to a clean state, pointing at the original binary, even after undergoing protocol upgrade. Something like the following vegacapsule commands:
Stop network
Reset all
Start network
Currently, when I attempt the above steps, I still see the network attempting to load the wrong binary, and then panic, complaining about snapshots, like in this log file: visor-0-with-vega.stderr-2022-09-14T123458+0100.log
After chatting to @karlem , we've agreed that currently the reset command does nothing to reset visor config, which would probably be a useful thing for it to do.
The "workaround" choices right now, are:
Arrange the downgrade via another protocol vote, or
Blow away the old network directory entirely and bootstrap a new network
The second is better (but still not great), since the first assumes we don't even run into issues which leave the network in a broken state, which we may very well do testing the feature. The latter loses all current network logs, which isn't great for issue traceability in CI, so we'd need to manually write some test code to preserve and restore those log files.
(Cannot currently view these tests in CI, since they don't yet run there, but can view the code here)
The text was updated successfully, but these errors were encountered:
Hey @jgsbennett@jeremyletang
As we have a workaround for this, I propose this be moved to a stretch for now based on other work remaining ahead of the trading enabled vote?
Per this comment , it would be nice to do this ticket at some point, since then the system tests wouldn't need to guess about which network is currently in use by vegacapsule when it wants to reset things.
It would be nice to have a supported workflow to reset a network back to a clean state, pointing at the original binary, even after undergoing protocol upgrade. Something like the following vegacapsule commands:
Currently, when I attempt the above steps, I still see the network attempting to load the wrong binary, and then panic, complaining about snapshots, like in this log file:
visor-0-with-vega.stderr-2022-09-14T123458+0100.log
After chatting to @karlem , we've agreed that currently the reset command does nothing to reset visor config, which would probably be a useful thing for it to do.
The "workaround" choices right now, are:
The second is better (but still not great), since the first assumes we don't even run into issues which leave the network in a broken state, which we may very well do testing the feature. The latter loses all current network logs, which isn't great for issue traceability in CI, so we'd need to manually write some test code to preserve and restore those log files.
(Cannot currently view these tests in CI, since they don't yet run there, but can view the code here)
The text was updated successfully, but these errors were encountered: