-
Notifications
You must be signed in to change notification settings - Fork 25
DEVPROD-787: Retry Node installation on CI #2281
Conversation
2 flaky tests on run #16014 ↗︎Details:
|
Test | Artifacts | |
---|---|---|
host section > using legacy ssh > shows an error when selecting an incompatible host communication method |
Screenshots
Video
|
version/downstream_projects.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
Downstream Projects Tab > shows the child patches |
Screenshots
Video
|
Review all test suite changes for PR #2281 ↗︎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
# Retry the download for Node in case it flakes. | ||
for i in {1..5}; do | ||
nvm install --no-progress --default ${node_version} | ||
[[ $? -eq 0 ]] && break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. Can we add some logging here so we know its retrying?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is a patch with the message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
DEVPROD-787
Description
The Node installation can sometimes fail due to network errors. This PR retries the installation 5 times, with a 10 second waiting period between each try. I can raise the waiting time if you guys think it should be higher!
Will open Parsley PR after I get approval.
Testing
"Running in the loop."
printed. The timestamps of these messages are kinda weird but I assume that's a symptom of how the agent processes output because the task takes as long as I would expect.