Add support for the new "image_pull_failure" failure reason reported by Runner
With Add a separate failure reason for image pull fa... (gitlab-runner#29295 - closed) • Tomasz Maczukin • 16.1 (through Add dedicated failure reason for image pulling ... (gitlab-runner!4098 - merged) • Tomasz Maczukin • 16.1) we've introduced a new failure reason on the Runner side: image_pull_failure
. That failure reason is reported when job executed with Docker or Kubernetes executor fails when pulling one of the images defined for the job (for main container or one of the service containers).
While this failure reason is already supported by metrics reported by Runner it would be good to add support for it in GitLab, so that it can be:
- properly presented to the user (currently jobs failed with that reason are reported to GitLab as
runner_system_failure
which was previously used in that case) - allow users to act on that failure reason (mostly allow automatic retries when such error happens).