Skip to content

Job failures all show with exit code 2 - Failed (runner system failure)

Bug/Issue

What was the problem?

CI/CD job failures seem to exit with status code 2 which is interpreted as a runner system failure by Gitlab. Here are some examples from a terraform validate that failed (correctly) due to a failure to validate the Terraform code in the MR.

image

image

image

This is confusing to the user as they are not sure if the job failed because a test failed (that should have), failed because of an error in the CI definition (that the user can fix), or failed because there is something wrong with the runner service (which the Workshop team must fix).

Notes from GitLab an the custom executor and exit codes may be useful - https://docs.gitlab.com/runner/executors/custom/#error-handling

Edited by Paul Hirsch