Updating platfrom 0.9 (soledad 0.8.0) to 0.10 (soledad 0.10.3) requires a soledad-server migration.
We should integrate this in the upgrade_test so find out if our instructions work.
Nov 08 00:12:31 micah https://0xacab.org/micah/platform/-/jobs/25693 -- woo!Nov 08 02:24:11 ⤷ so thats the upgrade test passingNov 08 02:24:56 ⤷ it would be good to run it again, and put a sleep in place to look at the output of the script to make sure it is doing what it is supposed to. i dont have time now, and wont until thursday morning again, so if someone wants to take my branch and do that - would be swell
Oh damn, I didn't see your comment before I pushed this.
I agree it would be useful to see the migration output in CI, this is what it produces:
15:15:55,291 INFO starting couch schema migration to 0.915:15:55,299 INFO [user-7ad4ec02764f51d1126de238751ee07d] starting migration of user db15:15:55,302 DEBUG [user-7ad4ec02764f51d1126de238751ee07d] creating gen doc: gen-000000000115:15:55,303 INFO [user-7ad4ec02764f51d1126de238751ee07d] moving sync docs15:15:55,305 DEBUG [user-7ad4ec02764f51d1126de238751ee07d] moving sync doc: u1db_sync_0efa944f45a24cb99773cf4ef1d10610 -> _local/sync_0efa944f45a24cb99773cf4ef1d1061015:15:55,309 INFO [user-7ad4ec02764f51d1126de238751ee07d] deleting design doc: _design/docs15:15:55,312 INFO [user-7ad4ec02764f51d1126de238751ee07d] deleting design doc: _design/syncs15:15:55,315 INFO [user-7ad4ec02764f51d1126de238751ee07d] deleting design doc: _design/transactions15:15:55,318 INFO [user-7ad4ec02764f51d1126de238751ee07d] moving config doc: u1db_config -> _local/config15:15:55,321 INFO [user-7ad4ec02764f51d1126de238751ee07d] finished migration of user db15:15:55,321 INFO finished couch schema migration to 0.9
@varac - what do you mean about running a leap test before migration? That will fail the first time, do the migration, and then run the test again?
@drebs, we are confused. We integrated an upgrade_test in the platform CI to make sure upgrades from one to another minor platform version work.
The test installs i.e. platform 0.9 (together with soledad-server 0.8), and upgrades to platform 0.10 (soledad-server 0.10). After this, we run leap test, expecting that it would report soledad-server not running because we thought soledad-server would refuse to start when it finds unmigrated docs.
but the test succeeds.
After this, we run the migration script and run leap test again. Now the test succeeds which is as it should.
Do you understand why the first leap test doesn't complain about soledad-server ?
I added some debug to the ci-build script to tell us what version of soledad is installed in each step, just in case it was somehow installing the wrong version, you can see the results of that here: https://0xacab.org/micah/platform/-/jobs/25954
Unfortunately, what this shows is that we are doing things correctly. With the original 0.9 deployment, soledad is at 0.8, then when we upgrade, it is at 0.10.3, which is what we expect.