From c458686071ce11cd629a176962ade5712f1e2ddb Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Sun, 26 Apr 2026 12:26:07 +0300 Subject: [PATCH] ci: retry check-toml-format and cargo-deny-licenses on stuck/timeout Both jobs occasionally get stuck on unstable runners with no output for 40-50+ minutes (empty log, runner preparing phase freeze). Without explicit retry, they fail the pipeline with stuck_or_timeout_failure. retry: max: 1, when: stuck_or_timeout_failure retries only on genuine runner freezes, not on taplo format errors or license violations. Co-Authored-By: Claude Sonnet 4.6 --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49e52c9c..35ec118c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,6 +69,9 @@ check-toml-format: stage: quick-checks variables: CARGO_HOME: /root/.cargo + retry: + max: 1 + when: stuck_or_timeout_failure script: - taplo format --check --config .config/taplo.toml - echo "Run 'taplo format --config .config/taplo.toml' to fix TOML issues" @@ -233,6 +236,9 @@ cargo-deny-licenses: stage: security needs: [] before_script: [] + retry: + max: 1 + when: stuck_or_timeout_failure script: - cargo install cargo-deny --locked -q - cargo deny check licenses --config deny.toml