mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
ci: add stuck_or_timeout_failure retry to all remaining jobs
Unstable runners occasionally get stuck in the prepare phase with no log output. Any job can be affected. Adding retry: max: 1, when: stuck_or_timeout_failure to all remaining jobs that lacked it: quick-checks: check-dependency-rules, check-fail-ci, check-workspace-integrity, check-zepter, test-rust-features, check-umbrella, check-licenses-headers security: cargo-deny-sources, cargo-audit checks: check-core-crypto-features Clippy and check-try-runtime excluded — retrying 36m/81m jobs on actual timeout would be too expensive; those get runner_system_failure coverage for runner crashes instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
612d6fa38f
commit
b756499b66
1 file changed
+30
@@ -81,11 +81,17 @@ check-toml-format:
|
|||||||
|
|
||||||
check-dependency-rules:
|
check-dependency-rules:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- cd bizinikiwi/ && ../.gitlab/ensure-deps.sh
|
- cd bizinikiwi/ && ../.gitlab/ensure-deps.sh
|
||||||
|
|
||||||
check-fail-ci:
|
check-fail-ci:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if rg --line-number --hidden --type rust --glob '!{.git,target}' "FAIL-CI" .; then
|
if rg --line-number --hidden --type rust --glob '!{.git,target}' "FAIL-CI" .; then
|
||||||
@@ -98,6 +104,9 @@ check-workspace-integrity:
|
|||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
variables:
|
variables:
|
||||||
CARGO_HOME: /root/.cargo
|
CARGO_HOME: /root/.cargo
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- pip3 install toml "cargo-workspace>=1.2.6" --quiet
|
- pip3 install toml "cargo-workspace>=1.2.6" --quiet
|
||||||
- |
|
- |
|
||||||
@@ -107,6 +116,9 @@ check-workspace-integrity:
|
|||||||
|
|
||||||
check-zepter:
|
check-zepter:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- cargo metadata --format-version=1 --locked > /dev/null
|
- cargo metadata --format-version=1 --locked > /dev/null
|
||||||
- cargo install zepter@1.82.1 --force
|
- cargo install zepter@1.82.1 --force
|
||||||
@@ -116,11 +128,17 @@ check-zepter:
|
|||||||
|
|
||||||
test-rust-features:
|
test-rust-features:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- bash .gitlab/rust-features.sh .
|
- bash .gitlab/rust-features.sh .
|
||||||
|
|
||||||
check-umbrella:
|
check-umbrella:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- pip3 install "cargo-workspace>=1.2.4" toml --quiet
|
- pip3 install "cargo-workspace>=1.2.4" toml --quiet
|
||||||
- cargo install zepter@1.82.1 --force --quiet
|
- cargo install zepter@1.82.1 --force --quiet
|
||||||
@@ -147,6 +165,9 @@ check-umbrella:
|
|||||||
|
|
||||||
check-licenses-headers:
|
check-licenses-headers:
|
||||||
stage: quick-checks
|
stage: quick-checks
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
FAIL=0
|
FAIL=0
|
||||||
@@ -206,6 +227,9 @@ check-try-runtime:
|
|||||||
check-core-crypto-features:
|
check-core-crypto-features:
|
||||||
stage: checks
|
stage: checks
|
||||||
needs: [fmt]
|
needs: [fmt]
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- rustup target add wasm32v1-none
|
- rustup target add wasm32v1-none
|
||||||
- |
|
- |
|
||||||
@@ -254,6 +278,9 @@ cargo-deny-sources:
|
|||||||
stage: security
|
stage: security
|
||||||
needs: []
|
needs: []
|
||||||
before_script: []
|
before_script: []
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- cargo install cargo-deny --locked -q
|
- cargo install cargo-deny --locked -q
|
||||||
- cargo deny check sources --config deny.toml
|
- cargo deny check sources --config deny.toml
|
||||||
@@ -266,6 +293,9 @@ cargo-audit:
|
|||||||
stage: security
|
stage: security
|
||||||
needs: []
|
needs: []
|
||||||
before_script: []
|
before_script: []
|
||||||
|
retry:
|
||||||
|
max: 1
|
||||||
|
when: stuck_or_timeout_failure
|
||||||
script:
|
script:
|
||||||
- cargo install cargo-audit --locked -q
|
- cargo install cargo-audit --locked -q
|
||||||
- cargo audit --json 2>/dev/null > /tmp/audit.json || true
|
- cargo audit --json 2>/dev/null > /tmp/audit.json || true
|
||||||
|
|||||||
Reference in new issue
Block a user