Add a way to customize failure_retry variable

Add the possibility to set the "failure_retry" parameters
into the device dictionnary in case we would like to
re-test all the failing jobs (with "infrastructure_error" or
"job_error_exception")

Signed-off-by: Mylène Josserand <mylene.josserand@collabora.com>
16 jobs for customize_failure_retry in 5 minutes and 59 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
failed #127490
amd64
dispatcher-debian-10

00:02:25

failed #127492
amd64
dispatcher-debian-11

00:02:28

passed #127491
amd64
server-debian-10

00:03:33

passed #127493
amd64
server-debian-11

00:05:58

 
  Analyze
skipped #127494
amd64-dind allowed to fail
bandit-sast
skipped #127495
amd64
black
skipped #127496
amd64
code_quality
skipped #127501
amd64
codespell
skipped #127497
amd64
coverage
skipped #127498
amd64
dockerfiles
skipped #127500
amd64
pylint
skipped #127499
amd64
schemas
 
  Build
skipped #127503
amd64
debian/10
skipped #127502
amd64
doc
skipped #127504
amd64-dind
docker-amd64-dispatcher
skipped #127505
amd64-dind
docker-amd64-server
 
Name Stage Failure
failed
dispatcher-debian-11 Test
FAILED tests/lava_dispatcher/actions/deploy/test_downloads.py::test_downloads_action
FAILED tests/lava_dispatcher/actions/deploy/test_downloads.py::test_uniquify
====== 39 failed, 425 passed, 6 skipped, 27 warnings in 109.49s (0:01:49) ======
Uploading artifacts for failed job
Uploading artifacts...
WARNING: coordinator.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
dispatcher-debian-10 Test

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======= 39 failed, 428 passed, 3 skipped, 29 warnings in 115.82 seconds ========
Uploading artifacts for failed job
Uploading artifacts...
WARNING: coordinator.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1