-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
chore(common): add retry checks around npm install
(and any other npm network activities)
#10350
Comments
I did a little searching related to this and found something that may be of interest... but it does currently have limitations. With recent-enough versions of But... there's a bug in which version-bumping a package causes use of the related option to fail, despite saying prefer cache (rather than 'use cache exclusively'): |
Very relevant thread I found: This comment in particular looks relevant: actions/runner-images#3737 (comment)
|
npm 10.5.1. I think we should go ahead and update our build agents to this latest version pronto -- before we try to do 17.0-stable release. Failing due to ECONNRESET is frequent now. |
I am doing npm 10.5.1 upgrade on all build agents now. Not going @latest until after 17.0-stable releases. Just mitigating ECONNRESET bug.
|
Note, after applying the update to 10.5.1, we still get ECONNRESET, e.g. on ba-bionic-64-ta (https://build.palaso.org/buildConfiguration/Keyman_Test_Common_Linux/460549):
The build is picking up node 18.16.0:
But node 18.19.0 is current with nvm:
Because ...
|
So, just experienced ECONNRESET on ba-jammy-64-ta, which is on npm 10.5.1:
And verifying the version, making sure we are using exactly the same call to npm as in the failed call above:
|
Dang, even still? Thought for sure there'd be some relation there. |
There are a disturbing amount of StackOverflow answers (such as https://stackoverflow.com/questions/71449279/how-to-resolve-npm-err-code-econnreset-while-installing-angular-cli) saying "just rewrite I don't see anything (yet) about a ECONNRESET-specific exit code for npm, but even then, if this is the only reason we fall over during CI with |
Just use
|
npm on ba-win10-64-pp-602 was upgraded to 10.5.1 on 3 May 2024. On 9 May 2024, we got another failed build https://build.palaso.org/buildConfiguration/Keyman_Developer_Test/461792?buildTab=log&linesState=374&logView=flowAware&focusLine=5532
|
The text was updated successfully, but these errors were encountered: