launchpad: Reimplement lister using new Lister API

Port launchpad lister to the swh.lister.pattern.Lister API.

Last update date of each listed git repositories is now sent to the scheduler.

The lister can work in incremental mode, only modified repositories since
the last listing operation will be returned in that case.

Closes T2992
This commit is contained in:
Antoine Lambert 2021-01-27 18:58:54 +01:00
parent ae17b6b9a0
commit f862004700
11 changed files with 307 additions and 191 deletions

View file

@ -36,8 +36,7 @@ def test_get_lister(swh_scheduler_config):
db_url = init_db().url()
# Drop launchpad lister from the lister to check, its test setup is more involved
# than the other listers and it's not currently done here
supported_listers = set(SUPPORTED_LISTERS) - {"launchpad"}
for lister_name in supported_listers:
for lister_name in SUPPORTED_LISTERS:
lst = get_lister(
lister_name,
db_url,