-
Notifications
You must be signed in to change notification settings - Fork 213
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
Possible missing db migration between balance-check version and latest one #1177
Comments
This was referenced Dec 16, 2019
iohk-bors bot
added a commit
that referenced
this issue
Jan 18, 2020
1190: Add database migration test r=KtorZ a=rvl Relates to #1177. # Overview Adds a migration test that can be run against different versions of the wallet. The idea is to use an api client to set up the database on a wallet server running one version. Then start up the wallet server on the current version and use the api client to check the database. All the possible upgrade paths from previous released versions to the current version _could_ be exhaustively tested. However, in this initial version, only the direct upgrade from each release to latest is tested. At present the testing actions are quite basic. It first restores a wallet, migrates, then lists the wallets. The migration tests are run as part of nightly CI. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
iohk-bors bot
added a commit
that referenced
this issue
Jan 18, 2020
1190: Add database migration test r=KtorZ a=rvl Relates to #1177. # Overview Adds a migration test that can be run against different versions of the wallet. The idea is to use an api client to set up the database on a wallet server running one version. Then start up the wallet server on the current version and use the api client to check the database. All the possible upgrade paths from previous released versions to the current version _could_ be exhaustively tested. However, in this initial version, only the direct upgrade from each release to latest is tested. At present the testing actions are quite basic. It first restores a wallet, migrates, then lists the wallets. The migration tests are run as part of nightly CI. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
iohk-bors bot
added a commit
that referenced
this issue
Jan 18, 2020
1190: Add database migration test r=KtorZ a=rvl Relates to #1177. # Overview Adds a migration test that can be run against different versions of the wallet. The idea is to use an api client to set up the database on a wallet server running one version. Then start up the wallet server on the current version and use the api client to check the database. All the possible upgrade paths from previous released versions to the current version _could_ be exhaustively tested. However, in this initial version, only the direct upgrade from each release to latest is tested. At present the testing actions are quite basic. It first restores a wallet, migrates, then lists the wallets. The migration tests are run as part of nightly CI. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
iohk-bors bot
added a commit
that referenced
this issue
Jan 19, 2020
1190: Add database migration test r=KtorZ a=rvl Relates to #1177. # Overview Adds a migration test that can be run against different versions of the wallet. The idea is to use an api client to set up the database on a wallet server running one version. Then start up the wallet server on the current version and use the api client to check the database. All the possible upgrade paths from previous released versions to the current version _could_ be exhaustively tested. However, in this initial version, only the direct upgrade from each release to latest is tested. At present the testing actions are quite basic. It first restores a wallet, migrates, then lists the wallets. The migration tests are run as part of nightly CI. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
Ok. there are automated migration tests in CI for Windows and Linux now. The error is:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Steps to Reproduce
Start a wallet server using v2019-11-18, create a wallet, wait for a few block to sync...
Quit
Start a wallet on the same state dir using v2019-12-09 or v2019-12-13, wait for a first block to sync.
(expected) everything is fine.
(actual) 💥
Expected behavior
In the case of these 2 versions, a DB migration is actually impossible, because it needs access to the xprv to populate the DB.
In the general case going forward:
cardano-wallet launch
should delete thechain
directory.Actual behavior
Resolution
QA
The text was updated successfully, but these errors were encountered: