Skip to content

Conversation

@fengzhou-msft
Copy link
Member

Description

We're seeing increasing failures of Test Extensions Loading Python36 task in CI when downloading the extension index file. Add retry to mitigate the issue while we trying to figure out the root cause.

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 8, 2021

Extension

Comment on lines 36 to 41
if try_number == TRIES - 1:
msg = ERR_TMPL_NO_NETWORK.format(str(err))
raise CLIError(msg)
import time
time.sleep(0.5)
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can combine (requests.exceptions.ConnectionError, requests.exceptions.HTTPError) and ValueError as the handling code is the exactly the same.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense.

@fengzhou-msft fengzhou-msft merged commit 0f1eeb6 into Azure:dev Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants