From ae4687e43ed9e99b47d6382ab1a6d94a6fbc7a5c Mon Sep 17 00:00:00 2001 From: Aleksei Apaseev Date: Mon, 12 Aug 2024 11:22:30 +0800 Subject: [PATCH] ci: add redundant job to ensure 'retry_failed_jobs' job is not skipped --- .gitlab/ci/pre_check.yml | 12 ++++++++++++ .gitlab/ci/retry_failed_jobs.yml | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab/ci/pre_check.yml b/.gitlab/ci/pre_check.yml index 09a5ffb3ad..3aa4d7807b 100644 --- a/.gitlab/ci/pre_check.yml +++ b/.gitlab/ci/pre_check.yml @@ -168,3 +168,15 @@ pipeline_variables: - pipeline.env expire_in: 1 week when: always + +redundant_pass_job: + stage: pre_check + tags: [shiny, fast_run] + image: $ESP_ENV_IMAGE + dependencies: null + before_script: [] + cache: [] + extends: [] + script: + - echo "This job is redundant to ensure the 'retry_failed_jobs' job can exist and not be skipped" + when: always diff --git a/.gitlab/ci/retry_failed_jobs.yml b/.gitlab/ci/retry_failed_jobs.yml index 28a2c1e06f..8eff2ed6b4 100644 --- a/.gitlab/ci/retry_failed_jobs.yml +++ b/.gitlab/ci/retry_failed_jobs.yml @@ -1,6 +1,7 @@ retry_failed_jobs: stage: retry_failed_jobs tags: [shiny, fast_run] + allow_failure: true image: $ESP_ENV_IMAGE dependencies: null before_script: [] @@ -11,4 +12,4 @@ retry_failed_jobs: - python tools/ci/python_packages/gitlab_api.py retry_failed_jobs $CI_MERGE_REQUEST_PROJECT_ID --pipeline_id $CI_PIPELINE_ID when: manual needs: - - generate_failed_jobs_report + - redundant_pass_job