Commit graph

7 commits

Author SHA1 Message Date
David Douard
714fccc3c7 python: Fix black formatting after bump to 23.1.0 in pre-commit 2023-12-05 10:33:07 +01:00
Antoine Lambert
6e7bc49ec7 Harmonize listers parameters and add test to check mandatory ones
Ensure that all lister classes have the same set of mandatory parameters
in their constructors, notably: scheduler, url, instance and credentials.

Add a new test checking listers classes have mandatory parameters declared
in their constructors. The purpose is to avoid deployment issues on staging
or production environment as celery tasks can fail to be executed if mandatory
parameters are not handled by listers.

Reated to swh/infra/sysadm-environment#5030.
2023-09-06 11:55:34 +02:00
Nicolas Dandrimont
e785e67315 Hook up recently introduced options to all listers
Hopefully one day we'll be able to replace all of this mess with PEP692
TypedDict kwargs, but that's only on track for Python 3.12.
2022-12-05 16:33:45 +01:00
Franck Bret
e1f3f87c73 Puppet: Lister implements incremental mode
Use with_release_since api argument to retrieve modules that have been
updated since the last date the lister has been executed.

Related T4519
2022-11-08 14:29:07 +01:00
Franck Bret
8355fee25f Puppet: Switch artifacts from dict to list 2022-10-25 14:49:09 +02:00
Antoine Lambert
fa1205c4df Send package artifact checksums to loaders when info is available
In listers collecting artifacts for each package to load, add artifacts
checksums, when that info is available, in parameters sent to loaders
in order to check downloaded artifact integrity.
2022-09-30 18:44:11 +02:00
Franck Bret
cd596eb2b4 Puppet: Lister for Puppet modules
The puppet lister retrieves origins from from https://forge.puppet.com/modules

Related T4519
2022-09-27 14:44:13 +02:00