Page MenuHomeSoftware Heritage

Add a Storage.flavor property to the postgresql backend
ClosedPublic

Authored by douardda on Jul 1 2022, 3:04 PM.

Details

Summary

Add a Storage.flavor property to the postgresql backend

and add tests for 'mirror' and 'read_replica' flavors.

Depends on D8066.

Test Plan

tox (failing since it needs that diff ^ landed and a bump from swh.core)

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D8067 (id=29108)

Rebasing onto c19f53f194...

Current branch diff-target is up to date.
Changes applied before test
commit 47caf04ea5e9d47c976200fff7d61164985a4390
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri Jul 1 14:56:47 2022 +0200

    Add a Storage.flavor property to the postgresql backend
    
    and add tests for 'mirror' and 'read_replica' flavors.

commit a00650ea0c34a98653d24693ce07555f55d816f4
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri Jul 1 14:50:28 2022 +0200

    Update pytest_plugin for swh.core 2.10

Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1623/
See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1623/console

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 1 2022, 3:15 PM
Harbormaster failed remote builds in B30200: Diff 29108!
douardda retitled this revision from Update pytest_plugin for swh.core 2.10 to Add a Storage.flavor property to the postgresql backend.Jul 1 2022, 5:53 PM
ardumont added inline comments.
swh/storage/tests/test_postgresql.py
29 ↗(On Diff #29108)

So this one passes through the other property path (in the implem').

lgtm, one suggestion inline.

requirements-swh.txt
1

Build is green

Patch application report for D8067 (id=29108)

Rebasing onto c19f53f194...

Current branch diff-target is up to date.
Changes applied before test
commit 47caf04ea5e9d47c976200fff7d61164985a4390
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri Jul 1 14:56:47 2022 +0200

    Add a Storage.flavor property to the postgresql backend
    
    and add tests for 'mirror' and 'read_replica' flavors.

commit a00650ea0c34a98653d24693ce07555f55d816f4
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri Jul 1 14:50:28 2022 +0200

    Update pytest_plugin for swh.core 2.10

See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1625/ for more details.

lgtm (i've triggered back the build)

one requirement change suggested inline.

This revision is now accepted and ready to land.Jul 5 2022, 3:08 PM
swh/storage/tests/test_postgresql.py
29 ↗(On Diff #29108)

It's already done in another test so nvm ;)