Due to a miscomputation of svn commit range at startup, the second visit of a SvnLoaderFromRemoteDump fails.
It should be caught into an uneventful visit as nothing new happened in between visits.
Related to T3622
Differential D6376
SvnLoaderFromRemoteDump: Fix failed visit which should be an uneventful visit Authored by ardumont on Sep 29 2021, 7:38 PM.
Details
Due to a miscomputation of svn commit range at startup, the second visit of a SvnLoaderFromRemoteDump fails. Related to T3622 tox
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D6376 (id=23201)Rebasing onto 666f32a01c... Current branch diff-target is up to date. Changes applied before testcommit 1e5a25c92a6ba8dfc8d2e8ee0d80483267e117c0
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date: Wed Sep 29 19:35:38 2021 +0200
svn: Incremental loading fails sometimes with SvnLoaderFromRemoteDump
Related to T3622See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/134/ for more details. Comment Actions Build is green Patch application report for D6376 (id=23202)Rebasing onto 666f32a01c... Current branch diff-target is up to date. Changes applied before testcommit 79fa16c1ce18fabe27f910ea71b1793222c326e0
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date: Wed Sep 29 19:35:38 2021 +0200
svn: Fix missed uneventful visits on some edge case
Due to an off-by-one mistake.
Related to T3622See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/135/ for more details. Comment Actions Build is green Patch application report for D6376 (id=23203)Rebasing onto 666f32a01c... Current branch diff-target is up to date. Changes applied before testcommit b57bdbd84c9c03ba8f8fd2244fe2c69898559319
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date: Wed Sep 29 19:35:38 2021 +0200
svn: Fix missed uneventful visits on some edge case
Due to an off-by-one mistake.
Related to T3622See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/136/ for more details. Comment Actions Build is green Patch application report for D6376 (id=23204)Rebasing onto 666f32a01c... Current branch diff-target is up to date. Changes applied before testcommit 406c777dfa229989643f9bd029e53bacb9c40a11
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date: Wed Sep 29 19:35:38 2021 +0200
Fix failed visit as uneventful one for the SvnLoaderFromRemoteDump
Due to a miscomputation at startup on the second visit for the SvnLoaderFromRemoteDump,
this had a range of svn commit [1-0]. That in turn made the svn loader resolve an
unknown revision number. This should have been an uneventful visit from the start.
This commit fixes it.
Related to T3622See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/137/ for more details. Comment Actions Looks ok (not sure I really understand the fix however, more precisely, what was the purpose of the revision_start != 1 condition), but I really don't understand the commit message:
the "one" here is at best useless (and actually confusing IMHO)
miscomputation of what?
What does "this" refer to?
is the [1-0] the actual (mistakenly) computed range of revisions?
What does "resolve [a] revision number" means for a loader?
Comment Actions
I don't recall why i added that revision_start != 1 check at all. And the new test reproduced out of the reality of the sourceforge ingestion makes it a problem (see the stacktrace in the task).
That's actually a correct sentence though.
The loader svn computes a range of svn commits to determine what commits to load.
svn commit number, i should have used commit. I completely rewrote everything, hopefully it's way better. Comment Actions Build is green Patch application report for D6376 (id=23207)Rebasing onto 666f32a01c... Current branch diff-target is up to date. Changes applied before testcommit 7ee2795d5cc2c768c15a2e00190071fe2929fc70
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date: Wed Sep 29 19:35:38 2021 +0200
SvnLoaderFromRemoteDump: Fix failed visit which should be an uneventful visit
Due to a miscomputation of svn commit range at startup, the second visit of a
SvnLoaderFromRemoteDump fails. It should be caught into an uneventful visit as nothing
new happened in between visits.
Related to T3622See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/138/ for more details. |