From 612d6fa38fe3f840c82267f0113953bc4852faea Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sun, 26 Apr 2026 12:44:20 +0300 Subject: [PATCH] ci: retry fmt on stuck_or_timeout_failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fmt occasionally gets stuck on unstable runners (empty log, 17+ min with no output). Since clippy depends on fmt, a stuck fmt blocks the entire critical path: clippy → check-try-runtime → all tests. retry: max: 1, when: stuck_or_timeout_failure covers runner freeze without masking actual cargo fmt formatting failures. Co-Authored-By: Claude Sonnet 4.6 --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35ec118c..d393328c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -62,6 +62,9 @@ default: fmt: stage: quick-checks + retry: + max: 1 + when: stuck_or_timeout_failure script: - cargo fmt --all -- --check