Skip to content

Commit ac013fd

Browse files
[CI] Hard Error on Logging Failure
This makes dispatch_job.py throw a hard error if we cannot get the logs from a pod to prevent the builder from sitting in an infinite loop.
1 parent e68ed64 commit ac013fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zorg/buildbot/builders/annotated/premerge/dispatch_job.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ def main(commit_sha: str, platform: str):
205205
"Cannot yet read logs from the pod: waiting for the container to start."
206206
)
207207
else:
208-
logging.warning(f"Failed to get logs from the pod: {log_exception}")
208+
logging.error(f"Failed to get logs from the pod: {log_exception}")
209+
break
209210
time.sleep(SECONDS_QUERY_LOGS_EVERY)
210211
v1_api.delete_namespaced_pod(pod_name, namespace)
211212

0 commit comments

Comments
 (0)