Skip to content

Upgrade yarn and add network-concurrency flag#3826

Merged
scottcarol merged 1 commit intomasterfrom
cscott/unspooling-the-problem
Dec 14, 2019
Merged

Upgrade yarn and add network-concurrency flag#3826
scottcarol merged 1 commit intomasterfrom
cscott/unspooling-the-problem

Conversation

@scottcarol
Copy link
Copy Markdown
Contributor

CI runs are occasionally failing during the JS unit tests due to Yarn, with a “404 Not Found” for a specific package:

error An unexpected error occurred: "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.14.0.tgz: Request failed \"404 Not Found\””.

This seems to be a widespread Yarn problem with many different packages (example).

This PR attempts to fix this with two main changes:

  • Upgrading yarn from 1.7.0 to 1.21.1 (current stable version) in the Dockerfile and Github Actions workflow
  • Wrapping the yarn installation with the --network-concurrency 1 flag, setting the maximum number of concurrent network requests to 1, which is suggested as a fix here — thanks @admc

To test the PR
Check out this branch and run

bin/docker-build && bin/linkerd install --ignore-cluster | kubectl apply -f -
bin/linkerd dashboard

Note on this specific package: Ever since #3725 was merged in November, we are no longer using the subdependency es-abstract 1.14.0 anywhere. You can confirm this by looking in the yarn.lock file for master (and the diff for #3725).

@scottcarol scottcarol requested a review from alpeb December 13, 2019 01:20
@scottcarol scottcarol self-assigned this Dec 13, 2019
Copy link
Copy Markdown
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

Changes look good to me, and it tests well, thanks @scottcarol !

Copy link
Copy Markdown
Contributor

@dadjeibaah dadjeibaah left a comment

Choose a reason for hiding this comment

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

This change looks good to me. I was able to build it successfully.

@scottcarol scottcarol merged commit 857a03c into master Dec 14, 2019
@scottcarol scottcarol deleted the cscott/unspooling-the-problem branch December 14, 2019 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yarn install fails with ENOENT: no such file or directory occasionally

3 participants