Skip to content

pnpm install takes much longer when more memory is available on CI #9286

@ehsanjso

Description

@ehsanjso

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v9.1.3

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

use two runners
small runner:

"cpu": "2",
"memory": "5Gi"

and a large runner:

"cpu": "15",
"memory": "25Gi"

make sure to cache the pnpm store and have the restored global store.
now when running pnpm install --frozen-lockfile or pnpm install --frozen-lockfile --prefer-offline compare the final time that it took for pnpm to move/link the packages from global store to node_modules.

Describe the Bug

in our case we have two linux/arm64 runners with the exact same specs mentioned in the Reproduction steps.
We have a cache hit on our pnpm store and the store is restored. When running the command.
on the smaller runner:
Image
on the larger runner:
Image
there is a significant difference. between the times.

Expected Behavior

Expected behaviour is to see closer times for both runs.

Which Node.js version are you using?

20.15.1

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Debian

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy