Page MenuHomeSoftware Heritage

loader-svn: Fix origin clashes for homonym but distinct svn dumps
Closed, MigratedEdits Locked

Description

As per parent task's description (T847), there exists homonyms dumps coming from different sources.

The original urls was not amongst the data transmitted from googlecode when we retrieved information.
Thus we had to build them back. The original origin_url computation was too naive.
This results in clash in origin urls fields.
For the same dumps, we have the same origin (googlecode hosted googlecode, eclispselabs, apache-extras dumps in different arborescence trees).

This needs to be fixed.

That means:

  1. reschedule the eclipselabs, and apache-extras as their own distinct origins
  2. Make loader-svn able to start a loading from scratch
  3. identifies such clashed dumps for googlecode only (first bullet points took care of the other ones) -> 1865 origins
  4. reschedule the original googlecode origins that clashed for svn loading 'from scratch' (to make sure the last occurrence targets the right one) -> 257 origins
  5. Make sure nothing is amiss

As a gotcha for the bullet point 4, current loader-svn starts by checking previous visit's revision to be incremental and start from that one.
We need for those origins to load from scratch, so we must improve the current loader-svn to accept an option for that behavior.
Otherwise, it could start from a wrong or an unknown revision (one from another clashed origin), thus effectively not working...

Note:
This would also explain an error so far unexplained 'No revision found' on the latest svn loader rescheduling.

Event Timeline

ardumont renamed this task from loader-svn: Investigate potential origin clash for homonyms but distinct svn dump loading to loader-svn: Investigate potential origin clash for homonym but distinct svn dumps.Nov 29 2017, 11:22 AM
ardumont created this task.
ardumont updated the task description. (Show Details)
ardumont changed the task status from Open to Work in Progress.Dec 8 2017, 1:42 PM
ardumont claimed this task.
ardumont renamed this task from loader-svn: Investigate potential origin clash for homonym but distinct svn dumps to loader-svn: Investigate origin clash for homonym but distinct svn dumps.Dec 8 2017, 1:59 PM
ardumont renamed this task from loader-svn: Investigate origin clash for homonym but distinct svn dumps to loader-svn: Fix origin clashes for homonym but distinct svn dumps.
ardumont updated the task description. (Show Details)
  • Make sure nothing is amiss

Well, there are errors.

"ConnectionResetError(104, 'Connection reset by pee": 13,  # ok, will reschedule
"Eventful partial visit. Detail: Property 'svn:exte": 1
"TypeError(\"run_task() got an unexpected keyword ar": 257

The type errors is an error because the loader-svn did not recognize the new parameter start_from_scratch because it was updated to the new version but not restarted...

Well, there are errors.

Those origins were rescheduled and done.

ardumont updated the task description. (Show Details)