-
Notifications
You must be signed in to change notification settings - Fork 208
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
test(deployment): end-to-end test of on-chain contract upgrade #7691
Conversation
787199b
to
8a8dbbf
Compare
3,
|
Contract upgrade worked, modulo a problem with promise spaces (IOU an issue):
|
2e3efb5
to
4ff1ab9
Compare
cleaned up the git history from last night's WIP WIP commit so we can deal with the pieces separately: 2023-05-12 08:09 4ff1ab9 WIP: possible promise-space fix/tweak |
2a242bd
to
f07486a
Compare
This is nearly ready to go, modulo some possible git log message clean-up. Hm... maybe the starting from @michaelfig 's last push: I think these should survive from my attempts to reproduce your results and to use it with the smart wallet: 2023-05-11 22:14 6b76847 feat: play with upgrade contract (WIP) It works once as is, but to reliably run it more than once, it relies on the fix in #7710. The way I tested it was with that and the kernel logging improvement (#7711). The exact hashes resulting from cherry-picking are: 2023-05-12 01:36 34d7509 chore: kernel logs vat upgrades, with bundleID and old/new incarnations My experimental lab notes are in... with a bit more detail in internal chat |
f07486a
to
3c07849
Compare
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 can imagine some cosmetic improvements, but this is working pretty robustly now. I've seen it go 5 or 6 times.
I did it 3 times:
#7710 (comment)
3c07849
to
d701da9
Compare
d701da9
to
9795309
Compare
if (untilNumWantsSatisfied && !('numWantsSatisfied' in offerStatus)) { | ||
throw Error('retry (no numWantsSatisfied yet)'); |
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.
👍
closes: #6099
Description
Add
packages/agoric-cli/test/upgrade-contract/contract-upgrade-smoketest.sh
to test if a contract installation and upgrade can be done on-chain, after bootstrap, with only governance proposals (no ag-solo).Security Considerations
Increases assurance that contract bugs can be fixed via later governed upgrades.
Scaling Considerations
n/a
Documentation Considerations
n/a
Testing Considerations
Currently needs to be run manually. Could be added to CI integration tests at a later time.