ci: retry fmt on stuck_or_timeout_failure

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 <noreply@anthropic.com>
This commit is contained in:
Kurdistan Tech MinistryandClaude Sonnet 4.6 committed 2026-04-26 12:44:20 +03:00
1 parent c458686071
commit 612d6fa38f
1 file changed
+3
+3
View File
@@ -62,6 +62,9 @@ default:
fmt:
stage: quick-checks
retry:
max: 1
when: stuck_or_timeout_failure
script:
- cargo fmt --all -- --check