Preparatory work to drop unused fields in OriginVisit.
Related to T2310
Differential D3307
loader: Read snapshot out of the last origin visit status ardumont on Jun 17 2020, 4:59 PM. Authored by
Details
Preparatory work to drop unused fields in OriginVisit. Related to T2310 tox
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3307 (id=11713)Rebasing onto 2f08b0dfb7... Current branch diff-target is up to date. Changes applied before testcommit 475e95b710ce83ee8c02ea0652ccf73f9038e997 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 17 17:00:03 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/17/ for more details. Comment Actions Build is green Patch application report for D3307 (id=11715)Rebasing onto 2f08b0dfb7... Current branch diff-target is up to date. Changes applied before testcommit 370f660e10b3f8106d855c2bdeacfc874f52c99f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 17 17:00:03 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/18/ for more details. Comment Actions Build is green Patch application report for D3307 (id=11717)Rebasing onto 2f08b0dfb7... Current branch diff-target is up to date. Changes applied before testcommit 6f504132277f7eadcda44da0a058dcec15f24be2 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 17 17:53:31 2020 +0200 test_loader: Load twice the same repository commit 370f660e10b3f8106d855c2bdeacfc874f52c99f Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 17 17:00:03 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/19/ for more details.
Comment Actions Drop duplication in helper test function declaration Note: Tests will fail as a new release of loader-core is needed Comment Actions Build has FAILED Patch application report for D3307 (id=11771)Rebasing onto 2f08b0dfb7... Current branch diff-target is up to date. Changes applied before testcommit 91787b96bfc9735bf2619d9951252804e2f0560c Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 17 17:00:03 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 Link to build: https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/20/
Comment Actions
Because right now (storage wise), as we just created a new visit, there is no I'm currently reflecting on that issue because this is a current As discussed on irc, there must be an iteration done somewhere, looking from api:
algo:
The last entry sounds like the better location as we keep the api dealing with Comment Actions We can get the previous visit + snapshot before creating the new visit
worse than what?
yes, all loaders need to do the same visit->status->snapshot thing, so it's good to have a function that does it Comment Actions
yes, we could do that also...
my bad, i meant something "worth" ("what we are looking for")
Yes, I'll do that then ;) That way that code here could be simplified and look almost the same as before. Comment Actions
Done in D3330 Comment Actions Rewrite to use the latest swh.storage.algos.snapshot.snapshot_get_latest Depends on D3330 Comment Actions Build has FAILED Patch application report for D3307 (id=11802)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit b117df6be252b8bc811fbee86c812e2b6cb5de3c Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 Link to build: https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/21/ Comment Actions Drop no longer needed self.last_visit Also tests won't work as storage 0.7.0 is not released yet (whose part needed Comment Actions Build has FAILED Patch application report for D3307 (id=11803)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit 3337028ae9e93abf573b5332d3a6883411c1a122 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 Link to build: https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/22/ Comment Actions Build is green Patch application report for D3307 (id=11803)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit 3337028ae9e93abf573b5332d3a6883411c1a122 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/23/ for more details. Comment Actions That will actually be difficult... i tried (you can look at the diff history here) My conclusion is that the test scaffolding here needs to be reworked to allow it...
Comment Actions Build is green Patch application report for D3307 (id=11829)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit 1e332e68755a5ecc06e2e8c739f1caba783fc74c Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/24/ for more details. Comment Actions Build is green Patch application report for D3307 (id=11832)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit 4ee911a462619349bf089774926355b14e0997da Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/25/ for more details. Comment Actions Build is green Patch application report for D3307 (id=11834)Rebasing onto 600b86bbe9... Current branch diff-target is up to date. Changes applied before testcommit 782690bd27d3b78cd039a66b48cba03c3ae5ab54 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Jun 22 15:16:28 2020 +0200 loader: Read snapshot out of the last origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/26/ for more details. |