drm/ci: add helper script update-xfails.py
authorHelen Koike <helen.koike@collabora.com>
Tue, 24 Oct 2023 00:45:18 +0000 (21:45 -0300)
committerMaxime Ripard <mripard@kernel.org>
Thu, 26 Oct 2023 13:24:20 +0000 (15:24 +0200)
commitd70896f296ff24764a7ba90efe1afa6c680e104c
tree228e192820f0762ee5fc0afde4d3e0c3cffb6a69
parent2b126e065ea0cea6cac2aa6c9b9d3ec014a006c9
drm/ci: add helper script update-xfails.py

Add helper script that given a gitlab pipeline url, analyse which are
the failures and flakes and update the xfails folder accordingly.

Example:
Trigger a pipeline in gitlab infrastructure, than re-try a few jobs more
than once (so we can have data if failures are consistent across jobs
with the same name or if they are flakes) and execute:

update-xfails.py https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/970661

git diff should show you that it updated files in xfails folder.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Tested-by: Vignesh Raman <vignesh.raman@collabora.com>
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Link: https://lore.kernel.org/r/20231024004525.169002-4-helen.koike@collabora.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/ci/xfails/requirements.txt [new file with mode: 0644]
drivers/gpu/drm/ci/xfails/update-xfails.py [new file with mode: 0755]