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

Added logic to handle HTTP-errors during file downloading #184

Merged

Conversation

sergey-koryshev
Copy link
Contributor

@sergey-koryshev sergey-koryshev commented Feb 23, 2023

Description of issue:
Customers reported that sometimes NodeTool task silently passes without completing of downloading node.js. It happens due to the fact that there is no logic to handle http related errors

Description of fix:
I have added logic to handle http errors in function downloadTool

How changes were tested:
Looks like nodejs.org is throttling some customers and aborting their requests. I simulated such situation via tool TCPView on windows and dsniff on Ubuntu. I limited my network connection by npm-package @sitespeed.io/throttle to get more time to interact with TCP connections

Screenshots:
Before
image
After
image

@sergey-koryshev sergey-koryshev requested review from a team as code owners February 23, 2023 08:43
@sergey-koryshev
Copy link
Contributor Author

/azp run

Copy link
Contributor

@KonstantinTyukalov KonstantinTyukalov left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!
Could you bump tool lib package version and update changelog?

tool.ts Show resolved Hide resolved
tool.ts Show resolved Hide resolved
@mmrazik
Copy link
Contributor

mmrazik commented Mar 9, 2023

@kirill-ivlev , @merlynomsft , @sergey-koryshev we had another sev2 escalation due to this just now. Please let's have a fix in master ASAP. Even if we need to split it in some way (a low-risk portion that addresses the problem + another portion which addresses the problem better)

@sergey-koryshev sergey-koryshev merged commit c729a59 into master Mar 9, 2023
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.

8 participants