Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghaf-hw-test: Wget retry loop #56

Merged
merged 1 commit into from
Sep 2, 2024
Merged

ghaf-hw-test: Wget retry loop #56

merged 1 commit into from
Sep 2, 2024

Conversation

henrirosten
Copy link
Collaborator

Wget in the test network occasionally fails due to a failure in name lookup, causing test failures such as:

This PR adds a hack to force re-try the image download a few times before aborting the HW test pipeline. Wget options, such as --tries, --waitretry, --retry-connrefused, etc. do not help in case the failure is due to an issue in name resolution, which is considered a fatal error. Therefore, we need to manually add such retry loop.

At the same time, we are working with the test network service provider to make the DNS work properly; when it does, this hack should be removed.

Signed-off-by: Henri Rosten <[email protected]>
@henrirosten henrirosten marked this pull request as ready for review August 30, 2024 04:39
@henrirosten henrirosten requested a review from a team August 30, 2024 04:41
Copy link
Member

@karim20230 karim20230 left a comment

Choose a reason for hiding this comment

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

I like the retry mechanism!

Copy link
Contributor

@mkaapu mkaapu left a comment

Choose a reason for hiding this comment

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

LGT, we can try this as a workaround until lab network is fixed.

@henrirosten henrirosten merged commit ec77585 into main Sep 2, 2024
1 check passed
@henrirosten henrirosten deleted the wget-retry-loop branch September 3, 2024 05:13
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