Page MenuHomeSoftware Heritage

ingest Google Code Git repositories
Closed, MigratedEdits Locked


We have retrieved the git repositories and not yet ingested them.
This task is about the actual ingestion using our loader-git.


  • Like every other mirror/backup, it's stored at /srv/storage/space/mirrors/, under a dedicated root directory '' (in uffizi).
  • /srv/storage/space/mirrors/ to list all googlecode's repositories on disk.


  • filtering the git repositories (we only have the INDEX.filesystem which lists of all googlecode repositories for now, be it of types git, svn or hg). There is a project.json in the same folder as the archive which contains the mention 'repoType' with possible value as either 'git', 'svn', or 'hg'.
  • As we did for the googlecode's svn repositories, we need to reconstruct their url: https://<project-name>
  • all git repositories are archive files (mostly zip). So, we either need to uncompress every archive first or as with the googlecode svn loader, let the worker uncompress first the archive in a temporary directory and then load the git repository.
  • at last, generate a INDEX-git-archive (same structure as the one we used for gitorious) with format: <origin_url> <path-to-git-repository-tree-or-archive>

Related Objects

Event Timeline

zack renamed this task from inject googlecode's git repositories into swh to ingest Google Code Git repositories.Feb 12 2017, 6:14 PM
zack added a project: Restricted Project.
zack moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Feb 12 2017, 6:37 PM
at last, generate a full_mapping.txt (mirroring the one from gitorious) mentioning <origin_url> <path-to-git-repository-tree-or-archive>.

INDEX-git-archives is the file listing only zip archive file with git repositories.
It also maps the the origin-url to use for the injection.

$ head /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/ /srv/storage/space/mirrors/

As in T617, the origin date to use for injection is 'Tue, 3 May 2016 17:16:32 +0200'. We retrieved all googlecode repositories together (git, svn, hg).

starting-date: 2017-02-15 14:42:27,724

The command to trigger the messages is (from worker01 but should be limited to it):

$ cat /srv/storage/space/mirrors/ | SWH_WORKER_INSTANCE=swh_loader_git_archive ./ --visit-date 'Tue, 3 May 2016 17:16:32 +0200'
{origin_url: '', archive_path: '/srv/storage/space/mirrors/', date: 'Tue, 3 May 2016 17:16:32 +0200'}
{origin_url: '', archive_path: '/srv/storage/space/mirrors/', date: 'Tue, 3 May 2016 17:16:
32 +0200'}
{origin_url: '', archive_path: '/srv/storage/space/mirrors/', date: 'Tue, 3 May 2016 17:16:32 +0200'}


Visit dates have been fixed for the origins already injected.

ardumont changed the task status from Open to Work in Progress.Feb 15 2017, 7:53 PM
zack removed projects: Restricted Project, Git loader.Apr 5 2017, 2:04 PM

It's the same explanation as for the gitorious injection (T312). Only the numbers change:

  • Missing: 5.19% (4.5k out of 88.3k)
  • Failure: 13.8% (72.1k out of 83.7k)

Rescheduled and currently running.

As of now, ingestion, after multiple (re)schedulings, has been done.

86314 / 88307 have been ingested with full visits.

This gives ~2.25% of errors.

Those errors needs to be analyzed (T675).