Skip to content

Commit 05f8caf

Browse files
committed
ci: add temporary test jobs to validate exit_codes retry behaviour
test-retry-exit-75: exits 75, no job-level retry override → inherits global default → should be retried twice (3 total attempts) test-no-retry-exit-1: exits 1, same config → should run exactly once Both jobs are branch-scoped (leiyks/infra-failure-retry only) and allow_failure: true. Remove after verification.
1 parent ea258d1 commit 05f8caf

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.gitlab/generate-tracer.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,29 @@ function before_script_steps($with_docker_auth = false) {
737737

738738
<?php endforeach; ?>
739739

740+
# Validates exit_codes: [75] retry behaviour — remove after branch is merged
741+
"test-retry-exit-75":
742+
stage: test
743+
tags: [ "arch:amd64" ]
744+
image: registry.ddbuild.io/images/mirror/php:8.2-cli
745+
needs: []
746+
script:
747+
- exit 75
748+
allow_failure: true
749+
rules:
750+
- if: $CI_COMMIT_REF_NAME == "leiyks/infra-failure-retry"
751+
752+
"test-no-retry-exit-1":
753+
stage: test
754+
tags: [ "arch:amd64" ]
755+
image: registry.ddbuild.io/images/mirror/php:8.2-cli
756+
needs: []
757+
script:
758+
- exit 1
759+
allow_failure: true
760+
rules:
761+
- if: $CI_COMMIT_REF_NAME == "leiyks/infra-failure-retry"
762+
740763
"aggregate tested versions":
741764
stage: "aggregate versions"
742765
image: registry.ddbuild.io/images/dd-octo-sts-ci-base:2025.06-1

0 commit comments

Comments
 (0)