This commit refactors the exception hierarchy to differentiate between retriable and fatal errors in the CI pipeline, specifically within the LAVA job submission process. A new base class, `MesaCIRetriableException`, is introduced for exceptions that should trigger a retry of the CI job, while `MesaCIFatalException` is added for non-recoverable errors that halt the process immediately. Additionally, the logic for deciding whether a job should be retried or not is updated to check for instances of `MesaCIRetriableException`, improving the robustness and reliability of the CI job execution strategy. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28778>
1.1 KiB
1.1 KiB