Skip to content

[Performance] actions/setup-node becomes slow (taking seconds) #1333

@SukkaW

Description

@SukkaW

Description:

Currently, the step actions/setup-node@v2

A clear and concise description of what the bug is.

Action version: v4

Platform:

  • Ubuntu
  • macOS
  • Windows

ubuntu-24.04-arm

Runner type:

  • Hosted
  • Self-hosted

Tools version:

  node: v24.4.1
  npm: 11.4.2
  yarn: 1.22.22

Doesn't matter.

Repro steps:

https://github.com/SukkaW/Surge/actions/runs/16651775508/job/47126170908

Image

Expected behavior:

Normally, the actions/setup-node should take no more than 3 seconds.

Actual behavior:

Now, it is taking 4~7 seconds to finish the step. Note that in the screenshot, the pnpm cache restore took less than a second (the cache was downloaded at a speed of 60.5 MiB/s). The download of Node.js took the rest of the seconds.

I suspect that it might have something to do with networking between the hosted runners and the GitHub release (which is hosted on AWS S3 and is decelerated accelerated by Slowly Fastly CDN). Ideally, the tools should be downloaded from the runners' intranet, not through the Internet.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions