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

automated test coverage of functionality after Pismo -> Vaults upgrade #7640

Closed
9 tasks done
Tracked by #7491
turadg opened this issue May 8, 2023 · 2 comments · Fixed by #7717
Closed
9 tasks done
Tracked by #7491

automated test coverage of functionality after Pismo -> Vaults upgrade #7640

turadg opened this issue May 8, 2023 · 2 comments · Fixed by #7717
Assignees
Labels
enhancement New feature or request vaults_triage DO NOT USE

Comments

@turadg
Copy link
Member

turadg commented May 8, 2023

What is the Problem Being Solved?

Description of the Design

Use #7499

  • 1. Start a new Pismo chain

  • 2. Do a handful of transactions to get state to preserve

  • Has to be all the state we care about checking

  • Provision wallets

  • Have Cosmos/vbank balances

  • Change governance parameters

  • EC purses with invitations (to make sure it doesn’t break anything when it’s no longer present)

  • 3. Swapping out the binary

  • 4. Do the upgrade

  • 5. Check that the state from transactions is still present

  • e..g provisioned wallets are restored

  • 7. Check EC restore

  • They can accept fresh invitations

  • Change parameters

  • 8. PSM functionality

  • Trade again. Vbank updates

  • 9. Metrics (to be added in Provisionpool Metrics aren't retained across vaults upgrade #7705)

  • Contract metrics are retained after upgrade

  • 10. Provision pool balance

Use https://github.com/Agoric/docker-upgrade-test/tree/main/upgrade-test-scripts to make a new upgrade handler.
It includes gov1,gov2,gov3 accounts.
Use agoric and agops CLI commands in the scripts, as an end user could. Maybe adapt https://github.com/Agoric/agoric-sdk/blob/master/packages/agoric-cli/test/agops-vaults-smoketest.sh

Consider adapting the bootstrapTests which specify behavior and expected results.

Security Considerations

Scaling Considerations

Test Plan

@raphdev
Copy link
Contributor

raphdev commented May 13, 2023

Add a test in https://github.com/Agoric/docker-upgrade-test/blob/main/Dockerfile that triggers a CORE_EVAL proposal (V+1 is just a contract upload and a CORE_EVAL, approved by BLD Stakers but not validators)

This sounds like Vaults -> V + 1 upgrade, while this issue describes mostly Pismo -> Vaults upgrade. Is this in scope? If it isn't we should track separately.

@turadg
Copy link
Member Author

turadg commented May 13, 2023

This sounds like Vaults -> V + 1 upgrade, while this issue describes mostly Pismo -> Vaults upgrade. Is this in scope? If it isn't we should track separately.

I'll edit the test plan of this. We do have coverage of testing the V --> V+1 upgrade ability:

Per our discussion with @arirubinstein yesterday IIUC we wouldn't want that to go in upgrade-test system because it's not an actual upgrade. With something like #7725 we could get the above into Docker upgrade-test without making recording it as an upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaults_triage DO NOT USE
Projects
None yet
5 participants