this options allws to list task runs for selected tasks.
- Group Reviewers
- rDSCH058f12001ebf: cli: add a --runs option to 'swh-scheduler task list' tool
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tox/179/
See console output for more information: https://jenkins.softwareheritage.org/job/DSCH/job/tox/179/console
The new API endpoints don't have tests.
(And we should probably write tests for the CLI at some point, it's getting complex.)
duplicate (it's funny that flake8 didn't catch this)
Why a dict?
Rename to get_task_runs_from_backend?
help='Also list past executions of each task.'
I'm not a huge fan of using the name run both for the boolean option and for storing the dictionary.
yep, it's weird...
indeed, should be an empty list/tuple here. thx
I generally agree with that, but in some cases (like here), I see no real harm in doing so. The boolean value of runs remains valid all the way along, and finding a variable name is way too hard :-)