This is an edge case, but the mirror infrastructure is apparently hitting it. We
modify the SQL query to be properly idempotent.
Depends on D2773
Differential D2771
Make release_add support adding the same object twice in the same call douardda on Mar 5 2020, 2:20 PM. Authored by
Details This is an edge case, but the mirror infrastructure is apparently hitting it. We Depends on D2773 added new unit test
Diff Detail
Event TimelineComment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1019/ Comment Actions I'm guessing you don't want to do the same change for other object types, but you're introducing a subtle difference in the behavior of release_add vs the other ones.
Comment Actions Adding contents/skipped_contents already has that behavior; If anything we should align other endpoints to do the same thing. So yes, I'm sure I want that :) Comment Actions I meant, are you sure you don't want to do the same thing for the other endpoints as well? Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1021/ Comment Actions Build is green Comment Actions Build is green Comment Actions I agree it should be done everywhere, that said, this fix problems we have right now, so no reason not merge it as is.
Comment Actions Build was aborted Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1117/ Comment Actions Build was aborted Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/5/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/6/ Comment Actions Build is green Comment Actions Build is green Comment Actions Build has FAILED Patch application report for D2771 (id=11961)Rebasing onto 10443b8a17... Current branch diff-target is up to date. Changes applied before testcommit ca0cb992b9d48ce24ad96b2f659e85a1cc51da88 Author: David Douard <david.douard@sdfa3.org> Date: Mon Jun 29 16:23:45 2020 +0200 Make release_add support adding the same object twice in the same call This is an edge case, but the mirror infrastructure is apparently hitting it. We modify the SQL query to be properly idempotent. Also ensure in_memory and cassandra backends behave the same. Note: this revision was mostly written by Nicolas Dandrimont <nicolas@dandrimont.eu>. Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/385/ Comment Actions Build is green Patch application report for D2771 (id=11962)Rebasing onto 10443b8a17... Current branch diff-target is up to date. Changes applied before testcommit dc1878b9fb507a64e4bf8a601efecdd1be8aa2d3 Author: David Douard <david.douard@sdfa3.org> Date: Mon Jun 29 16:23:45 2020 +0200 Make release_add support adding the same object twice in the same call This is an edge case, but the mirror infrastructure is apparently hitting it. We modify the SQL query to be properly idempotent. Also ensure in_memory and cassandra backends behave the same. Note: this revision was mostly written by Nicolas Dandrimont <nicolas@dandrimont.eu>. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/386/ for more details. |