Set current_version attribute to postgresql datastore
Fixing the migration upgrade cli use.
Related to swh-core#4305 (closed)
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
Migrated from D7953 (view on Phabricator)
Merge request reports
Activity
Build has FAILED
Patch application report for D7953 (id=28643)
Rebasing onto e64d64e4...
Current branch diff-target is up to date.
Changes applied before test
commit 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 swh/devel/swh-core#4305
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1618/ See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1618/console
Build has FAILED
Patch application report for D7953 (id=28647)
Rebasing onto e64d64e4...
Current branch diff-target is up to date.
Changes applied before test
commit 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 swh/devel/swh-core#4305
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1619/ See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1619/console
Build is green
Patch application report for D7953 (id=28662)
Rebasing onto e64d64e4...
Current branch diff-target is up to date.
Changes applied before test
commit 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 swh/devel/swh-core#4305
See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1620/ for more details.
mentioned in issue swh-core#4305 (closed)
Some references in the commit message have been migrated:
- T4305 is now swh-core#4305 (closed)
lgtm (probably needs tedious hand-managed-db-migration-in-docker test)
I don't think there is much to do there actually. The clis did not change much in docker so it should consistently get back to normal once those 2 diffs lands (storage, indexer-storage) and repositories are tagged. (Then rebuild the docker env)
Build is green
Patch application report for D7953 (id=28673)
Rebasing onto e64d64e4...
Current branch diff-target is up to date.
Changes applied before test
commit 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 swh/devel/swh-core#4305
See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1621/ for more details.