Fixing the migration upgrade cli use.
Related to T4305
Paths
| Differential D7953 Authored by ardumont on Jun 3 2022, 11:37 AM.
Details
Summary Fixing the migration upgrade cli use. Related to T4305 Test Plan Trying it out on staging does fix the version cli (so the other ones as well). swhstorage@storage1:~$ swh db --config-file config.yml version storage WARNING the database does not have a dbmodule table. module: storage flavor: default current code version: 182 version: 183
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptJun 3 2022, 11:37 AM2022-06-03 11:37:04 (UTC+2) Comment Actions Build has FAILED Patch application report for D7953 (id=28643)Rebasing onto e64d64e4da... Current branch diff-target is up to date. Changes applied before testcommit 89560150ff253f1c316ef75ce59a37659ad59338 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jun 3 11:35:32 2022 +0200 Set current_version attribute to postgresql datastore Related to T4305 Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1618/ Harbormaster returned this revision to the author for changes because remote builds failed.Jun 3 2022, 11:38 AM2022-06-03 11:38:27 (UTC+2) Comment Actions Build has FAILED Patch application report for D7953 (id=28647)Rebasing onto e64d64e4da... Current branch diff-target is up to date. Changes applied before testcommit a9ce4fc7f46b3c5a0478a703a7ff62b9a2a5b33b Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jun 3 11:35:32 2022 +0200 Set current_version attribute to postgresql datastore This also simplifies the db collaborator code reusing core.db functions to check the code version and the actual db version matches. Related to T4305 Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1619/ Harbormaster returned this revision to the author for changes because remote builds failed.Jun 3 2022, 11:53 AM2022-06-03 11:53:44 (UTC+2) Comment Actions Build is green Patch application report for D7953 (id=28662)Rebasing onto e64d64e4da... Current branch diff-target is up to date. Changes applied before testcommit 1c484ed2654ab08c8bc81fe3b2419923727fc3fb Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jun 3 11:35:32 2022 +0200 Set current_version attribute to postgresql datastore This also simplifies the db collaborator code reusing core.db functions to check the code version and the actual db version matches. Related to T4305 See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1620/ for more details. Harbormaster completed remote builds in B29746: Diff 28662.Jun 3 2022, 2:51 PM2022-06-03 14:51:32 (UTC+2) ardumont edited the test plan for this revision. (Show Details)Jun 3 2022, 3:24 PM2022-06-03 15:24:54 (UTC+2) This revision is now accepted and ready to land.Jun 3 2022, 3:29 PM2022-06-03 15:29:23 (UTC+2) Comment Actions
I don't think there is much to do there actually. This revision was landed with ongoing or failed builds.Jun 3 2022, 3:53 PM2022-06-03 15:53:01 (UTC+2) Closed by commit rDSTOc19f53f194d0: Set current_version attribute to postgresql datastore (authored by ardumont). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Build is green Patch application report for D7953 (id=28673)Rebasing onto e64d64e4da... Current branch diff-target is up to date. Changes applied before testcommit c19f53f194d093ede82c8765e439e98c1de52cf9 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Jun 3 11:35:32 2022 +0200 Set current_version attribute to postgresql datastore This also simplifies the db collaborator code reusing core.db functions to check the code version and the actual db version matches. Related to T4305 See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1621/ for more details. Harbormaster completed remote builds in B29757: Diff 28673.Jun 3 2022, 3:56 PM2022-06-03 15:56:16 (UTC+2)
Revision Contents
Diff 28647 requirements-swh.txt
swh/storage/postgresql/db.py
swh/storage/postgresql/storage.py
swh/storage/pytest_plugin.py
|