HomeSoftware Heritage

tasks: Simplify implementation and add tests for listed origins

Description

tasks: Simplify implementation and add tests for listed origins

Recent changes in swh-scheduler add new parameters to the celery tasks
produced from swh.scheduler.model.ListedOrigin instances.

So ensure to handle any new parameters by not hardcoding the expected
ones in task signatures.

Remove unsafe use of unnamed task parameters.

Add new tests checking task parameters produced from ListedOrigin
instances do no raise error when attempting to create a bzr loader.

Related to T4187

Details

Provenance
anlambertAuthored on Apr 27 2022, 3:31 PM
anlambertPushed on Apr 27 2022, 4:16 PM
Differential Revision
D7700: tasks: Simplify implementation and add tests for listed origins
Parents
rDLDBZR2e9c4acf481c: Bump mypy to v0.942
Branches
Unknown
Tags
Unknown
Tasks
T4187: Pass forge type to loaders
Build Status
Buildable 28901
Build 45173: test-and-buildJenkins console · Jenkins