Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions chipflow_lib/steps/silicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def network_err(e):
except requests.ConnectionError as e:
if type(e.__context__) is urllib3.exceptions.MaxRetryError:
network_err(e)
except requests.ConnectTimeout as e:
network_err(e)
except requests.exceptions.ReadTimeout as e:
network_err(e)

# Parse response body
try:
Expand Down Expand Up @@ -288,7 +288,7 @@ def _long_poll_stream(self, sp, network_err):
sp.text = "💥 Failed connecting to ChipFlow Cloud."
logger.debug(f"Error while streaming logs: {e}")
break
except requests.RequestException as e:
except (requests.RequestException, requests.exceptions.ReadTimeout) as e:
sp.text = "💥 Failed streaming build logs. Trying again!"
logger.debug(f"Error while streaming logs: {e}")
stream_event_counter +=1
Expand Down Expand Up @@ -320,6 +320,11 @@ def _stream_logs(self, sp, network_err):
)
except (requests.ConnectTimeout, requests.ConnectionError, requests.ConnectTimeout) as e:
network_err(e)
except requests.exceptions.ReadTimeout as e:
sp.text = "💥 Error connecting to ChipFlow Cloud. Trying again! "
fail_counter += 1
logger.debug(f"Failed to fetch build status{fail_counter} times: {e}")
continue

if status_resp.status_code != 200:
sp.text = "💥 Error connecting to ChipFlow Cloud. Trying again! "
Expand Down
Loading