gitlab ci: Add "script_failure" as a reason for retrying service jobs (#33420)

Somehow a network error when cloning the repo for ci gets
categorized by gitlab as a script failure.  To make sure we retry
jobs that failed for that reason or a similar one, include 
"script_failure" as one of the reasons for retrying service jobs
(which include "no specs to rebuild" jobs, update buildcache
index jobs, and temp storage cleanup jobs.
This commit is contained in:
Scott Wittenburg 2022-11-07 16:11:04 -07:00 committed by GitHub
parent 6241cdb27b
commit b3b675157c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1167,7 +1167,14 @@ def generate_gitlab_ci_yaml(
"after_script",
]
service_job_retries = {"max": 2, "when": ["runner_system_failure", "stuck_or_timeout_failure"]}
service_job_retries = {
"max": 2,
"when": [
"runner_system_failure",
"stuck_or_timeout_failure",
"script_failure",
],
}
if job_id > 0:
if temp_storage_url_prefix: