Make pg Storage.extid_add() write extid objects to the journal
also merge test_replay's _check_replayed and check_replayed in a single function.
Migrated from D5413 (view on Phabricator)
Merge request reports
Activity
Build is green
Patch application report for D5413 (id=19364)
Rebasing onto 0a270d1a...
Current branch diff-target is up to date.
Changes applied before test
commit e27327b798ffb5fb87f269e84fb2305a76b8b734 Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 2 12:56:53 2021 +0200 Make pg Strorage.extid_add() write extid objects to the journal also merge test_replay's _check_replayed and check_replayed in a single function.
See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1241/ for more details.
mentioned in merge request !1004 (closed)
! In !665 (closed), @ardumont wrote: lgtm
(I would have made that 2 commits with each its own perimeter, 1 for the actual perimeter, 1 to refactor the test, but whatever)
cannot merge the 2 versions of check_replayed without breaking tests (because of the previously untested missing journal stanza in the pg backend), so this is really a fix of the pg backend, which proper test is the use of the correct version of the check_replayed function.
! In !665 (closed), @vlorentz wrote: Could you add a test for the storage? All other
*_add
have a journal test IIRClet me check that
! In !665 (closed), @douardda wrote:
! In !665 (closed), @vlorentz wrote: Could you add a test for the storage? All other
*_add
have a journal test IIRClet me check that
ok so doing this ^ allowed me to easily do that:
! In !665 (closed), @ardumont wrote:
(I would have made that 2 commits with each its own perimeter, 1 for the actual perimeter, 1 to refactor the test, but whatever)
:-)
Build is green
Patch application report for D5413 (id=19399)
Rebasing onto 0a270d1a...
Current branch diff-target is up to date.
Changes applied before test
commit 84dcbe3d0e567157aa03e74ce724e8f3b4bc1f02 Author: David Douard <david.douard@sdfa3.org> Date: Fri Apr 2 12:56:53 2021 +0200 Merge test_replay's _check_replayed and check_replayed in a single function commit 36a7fd34f3ba81a44df97d64b81df48a3b809629 Author: David Douard <david.douard@sdfa3.org> Date: Tue Apr 6 15:57:40 2021 +0200 Fix pg Storage.extid_add(): write ExtID objects to the journal and explicitely check for extid objects in the journal in TestStorage.
See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1245/ for more details.