Add save-bulk lister to check origins prior their insertion in database
This new and special lister enables to verify a list of origins to archive provided by users (for instance through the Web API). Its purpose is to avoid polluting the scheduler database with origins that cannot be loaded into the archive. Each origin is identified by an URL and a visit type. For a given visit type the lister is checking if the origin URL can be found and if the visit type is valid. The supported visit types are those for VCS (bzr, cvs, hg, git and svn) plus the one for loading a tarball content into the archive. Accepted origins are inserted or upserted in the scheduler database. Rejected origins are stored in the lister state. Related to #4709
parent
6618cf34
No related branches found
No related tags found
Showing
- mypy.ini 6 additions, 0 deletionsmypy.ini
- pyproject.toml 1 addition, 0 deletionspyproject.toml
- requirements.txt 3 additions, 0 deletionsrequirements.txt
- swh/lister/save_bulk/__init__.py 13 additions, 0 deletionsswh/lister/save_bulk/__init__.py
- swh/lister/save_bulk/lister.py 416 additions, 0 deletionsswh/lister/save_bulk/lister.py
- swh/lister/save_bulk/tasks.py 19 additions, 0 deletionsswh/lister/save_bulk/tasks.py
- swh/lister/save_bulk/tests/__init__.py 0 additions, 0 deletionsswh/lister/save_bulk/tests/__init__.py
- swh/lister/save_bulk/tests/test_lister.py 263 additions, 0 deletionsswh/lister/save_bulk/tests/test_lister.py
- swh/lister/save_bulk/tests/test_tasks.py 38 additions, 0 deletionsswh/lister/save_bulk/tests/test_tasks.py
- swh/lister/tests/test_cli.py 4 additions, 0 deletionsswh/lister/tests/test_cli.py
beautifulsoup4 | ||
breezy >= 3.3.1, < 3.3.5 # use versions with available binary wheels | ||
dateparser | ||
dulwich | ||
iso8601 | ||
launchpadlib | ||
looseversion | ||
lxml | ||
mercurial | ||
psycopg2 | ||
pyreadr | ||
python_debian | ||
repomd | ||
requests | ||
setuptools | ||
subvertpy | ||
tenacity >= 8.4.2 | ||
testing.postgresql | ||
toml |
swh/lister/save_bulk/__init__.py
0 → 100644
swh/lister/save_bulk/lister.py
0 → 100644
swh/lister/save_bulk/tasks.py
0 → 100644
swh/lister/save_bulk/tests/__init__.py
0 → 100644
swh/lister/save_bulk/tests/test_lister.py
0 → 100644
swh/lister/save_bulk/tests/test_tasks.py
0 → 100644
Please register or sign in to comment