Skip to content

[BUG] "sill idealTree buildDeps" takes a lot of time a project with workspaces #3257

Closed
@midudev

Description

@midudev

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After executing npm install the sill idealTree buildDeps step takes a long time (minutes) causing npm@7 working with workspaces slower than npm@6 installing projects separately.

It seems that is fetching packages sequentially instead using parallelization.

Vídeo with the demo:

CleanShot.2021-05-18.at.16.07.23.mp4

Expected Behavior

npm install on npm@7 with workspaces takes less time than npm@6 installing manually each workspace.

Steps To Reproduce

  1. In a environment with a lot of dependencies and workspaces.
  2. With this config:
  "workspaces": [
    "domain",
    "icons",
    "literals"
  ],
  1. Run npm install
  2. See that the step buildDeps take longer than expected.

Some considerations:

  • We're using some npm private packages on our package.json.
  • Workspaces are dependencies of root project as well.

More info:
On Travis, builds using npm@6 and installing workspaces manually takes 90s.
Using npm@7 it takes 170s using a single npm install.

Environment

  • OS: macOS 11.3.1
  • Node: 16.1.0
  • npm: 7.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 releaseperfFor performance related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions