Skip to content
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

Missing affordances for asserting upgrade failure and subsequent recovery #165

Open
gibson042 opened this issue Jul 10, 2024 · 2 comments
Open

Comments

@gibson042
Copy link
Member

agoric-upgrade-16-rc2 failed in emerynet because cosmos store upgrades had already been applied by rc0/rc1 (cf. Agoric/agoric-sdk#9682 ). It would be nice if this repository included a way to execute an upgrade and assert its failure, to be followed by a successor that recovers it.

@mhofman
Copy link
Member

mhofman commented Jul 10, 2024

Also one reason we didn't test this appropriately is because there is no easy way to create a tree of proposals with a branch instead of fully linear layers.

In particular we need to test whether an unreleased rc1 can apply both on top of the previous version, or on top of a previous rc0

@turadg
Copy link
Member

turadg commented Jul 10, 2024

It would be nice if this repository included a way to execute an upgrade and assert its failure

So a way for execute_upgrade to allow startAgd to fail and to then not wait for blocks.

startAgd
echo "Run several blocks for the upgrade to settle, then exit"
waitForBlock 5
killAgd

I suggest a general override with an execute.sh in the proposal package, as there is for prepare.sh and use.sh.

no easy way to create a tree of proposals with a branch instead of fully linear layers.

How easy to do you want it to be? This repo is for tooling and the actual history of what's been proposed on chain. To branch, I think you'd want a separate project for each scenario. E.g. duplicate a3p-integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants