Skip to content

Commit

Permalink
[notifications] Catch all image pull errors as infra failures (#14926)
Browse files Browse the repository at this point in the history
Updates the regex to match infra failure logs when pulling images to include more patterns. The previous pattern didn't catch the following line:

WARNING: Failed to pull image with policy "always": context deadline exceeded (manager.go:203:7197s)
  • Loading branch information
KSerrania authored Jan 3, 2023
1 parent e546e85 commit 60b99e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/libs/pipeline_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_failed_jobs(project_name, pipeline_id):
FailedJobReason.RUNNER,
),
(
re.compile(r'WARNING: Failed to pull image with policy "always":.*:.*\(.*\)'),
re.compile(r'WARNING: Failed to pull image with policy "always":.*\(.*\)'),
FailedJobReason.RUNNER,
),
# k8s Gitlab runner init failures
Expand Down

0 comments on commit 60b99e1

Please sign in to comment.