Details
- Reviewers
douardda vlorentz - Group Reviewers
Reviewers - Commits
- rDCORE829b92cc9ad3: db_testing: Simplify pg_createdb
rDCORE590aeefbc832: core.cli: Reference the possibility to migrate to latest version
rDCORE6aa0f32547ee: swh.core.cli: Remove no longer used --create/--no-create flags
rDCOREdb7c1d0b322b: swh-db-init: Make the db initialization idempotent
rDCORE6eea4a05588c: tests.db_testing: Add a function to read swh's db version
Diff Detail
- Repository
- rDCORE Foundations and core functionalities
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/102/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/107/ for more details.
swh/core/cli.py | ||
---|---|---|
28 ↗ | (On Diff #2603) | Oh yes, this can be removed, it tries to create the db each time without breaking if it cannot now. |
80 ↗ | (On Diff #2603) | A priori the directive to include the sql upgrade scripts are there so the swh.* pypi service artifact should contain the necessary sql scripts for it. |
swh/core/cli.py | ||
---|---|---|
28 ↗ | (On Diff #2603) | done |
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/109/ for more details.
swh/core/cli.py | ||
---|---|---|
76 ↗ | (On Diff #2603) | It's to have the db version when we are done migrating the schema. |
swh/core/tests/db_testing.py | ||
15–39 | I tried but then that would mean i'd need to change the input. At the moment, we can both use dbname and a string like 'service=swh' (providing you have the right .pgass and .pg_service.conf installed). | |
80–81 | So true! |
swh/core/cli.py | ||
---|---|---|
76 ↗ | (On Diff #2603) | s/migrating/initializing/ |
Build is green
See https://jenkins.softwareheritage.org/job/DCORE/job/tox/110/ for more details.
swh/core/cli.py | ||
---|---|---|
76 ↗ | (On Diff #2603) | I know. But since not db_version is always True at this point, you can replace this: if not db_version: db_version = swh_db_version(db_name) with this: db_version = swh_db_version(db_name) |
swh/core/cli.py | ||
---|---|---|
76 ↗ | (On Diff #2603) | Right! |
I pushed the commits.
So that closes it (good).
and then somehow that screws everything in the diff view (bad).
swh/core/tests/db_testing.py | ||
---|---|---|
15–39 | What i meant was, in the current context it's used (swh.core.cli), this is fine. |