yral-dapp / hot-or-not-backend-canister

Other
9 stars 6 forks source link

Testing Upgrades For Canisters #467

Open ravi-sawlani-yral opened 4 days ago

ravi-sawlani-yral commented 4 days ago

Motivation

Upgrades have chances of failures incase the data migration has not been configured properly. We make a release when all the changes are pushed to IC. Right now upgrades are tested locally. We need a mechanism to test this upgrades in the pipeline.

Suggested Solution

Pick the previous deployed wasms from github release. Install that using pocket ic . Run workflows like adding posts betting on a post, token creation and then test upgrading the canister.

This test would ensure that upgrades for canisters would run fine when deployed on IC