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:
		@@ -1167,7 +1167,14 @@ def generate_gitlab_ci_yaml(
 | 
				
			|||||||
        "after_script",
 | 
					        "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 job_id > 0:
 | 
				
			||||||
        if temp_storage_url_prefix:
 | 
					        if temp_storage_url_prefix:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user