Skip to main content

Software Heritage archiver

Project description


Orchestrator in charge of guaranteeing that object storage content is pristine and available in a sufficient amount of copies.


This module's tests need a postgres db to run. It is recommended to run those but they can be skipped:

  • make test: will run all tests
  • make test-nodb: will run only tests that do not need a local DB
  • make test-db: will run only tests that do need a local DB

If you do want to run DB-related tests, you should ensure you have access with sufficient privileges to a Postgresql database.

Using your system database

You need to:

  • ensure that your user is authorized to create and drop DBs, and in particular DBs named "softwareheritage-test" and "softwareheritage-dev"

  • ensure that you have the storage testdata repository checked out in ../swh-storage-testdata

Using pifpaf

pifpaf is a suite of fixtures and a command-line tool that allows to start and stop daemons for a quick throw-away usage.

It can be used to run tests that need a Postgres database without any other configuration reauired nor the need to have special access to a running database:

$ pifpaf run postgresql make test-db
Ran 12 tests in 0.903s


Note that pifpaf is not yet available as a Debian package, so you may have to install it in a venv.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for swh.archiver, version 0.0.6
Filename, size & hash File type Python version Upload date
swh.archiver-0.0.6-py3-none-any.whl (28.1 kB) View hashes Wheel py3
swh.archiver-0.0.6.tar.gz (24.7 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page