Add Directory Loader to allow tarball ingestion as Directory
In some marginal listing cases (Nix or Guix for now), we can receive raw tarball to ingest. This commit adds a loader to ingest those. The output of the ingestion is a snapshot with 1 branch, one HEAD branch targetting the ingested directory (contained within the tarball). This expects to receive a mandatory 'integrity' field. It is used to check the tarball received out of the origin. This can also optionally receive a list of mirror urls in case the main origin url is no longer available. Those mirror urls are solely used as fallback to retrieve the tarball. Related to T3781
parent
5482a48e
No related branches found
No related tags found
Showing
- swh/loader/core/loader.py 159 additions, 34 deletionsswh/loader/core/loader.py
- swh/loader/core/tests/data/https_example.org/archives_dummy-hello.tar.gz 0 additions, 0 deletions.../tests/data/https_example.org/archives_dummy-hello.tar.gz
- swh/loader/core/tests/test_loader.py 127 additions, 3 deletionsswh/loader/core/tests/test_loader.py
File added
-
Some references in the commit message have been migrated:
- T3781 is now swh/meta#3781 (closed)
-
mentioned in merge request !437 (closed)
-
mentioned in merge request !327 (closed)
-
mentioned in merge request !328 (closed)
-
mentioned in merge request !438 (closed)
Please register or sign in to comment