Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-787: Retry Node installation on CI #2281

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

minnakt
Copy link
Contributor

@minnakt minnakt commented Feb 29, 2024

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

  • Tested with a patch in which the loop instead prints a message and waits for 60 seconds in between attempts. You can see five messages for "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.

@minnakt minnakt changed the title DEVPROD-787: Retry Node installation in CI DEVPROD-787: Retry Node installation on CI Feb 29, 2024
Copy link

cypress bot commented Feb 29, 2024

2 flaky tests on run #16014 ↗︎

0 547 10 0 Flakiness 2

Details:

Merge branch 'main' into DEVPROD-787
Project: Spruce Commit: f1345d1d88
Status: Passed Duration: 19:39 💡
Started: Mar 1, 2024 7:43 PM Ended: Mar 1, 2024 8:02 PM
Flakiness  distroSettings/host_section.ts • 1 flaky test

View Output Video

Test Artifacts
host section > using legacy ssh > shows an error when selecting an incompatible host communication method Screenshots Video
Flakiness  version/downstream_projects.ts • 1 flaky test

View Output Video

Test Artifacts
Downstream Projects Tab > shows the child patches Screenshots Video

Review all test suite changes for PR #2281 ↗︎

@minnakt minnakt marked this pull request as ready for review February 29, 2024 18:16
@minnakt minnakt requested a review from a team February 29, 2024 18:16
Copy link
Contributor

@sophstad sophstad left a 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
Copy link
Contributor

@khelif96 khelif96 Mar 1, 2024

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure!

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you!

@minnakt minnakt requested a review from khelif96 March 1, 2024 18:40
@minnakt minnakt merged commit c783b5a into evergreen-ci:main Mar 1, 2024
5 of 6 checks passed
@minnakt minnakt deleted the DEVPROD-787 branch March 1, 2024 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants