Skip to content

ci: no setup-node npm cache on the self-hosted runners - #77

Merged
leandrotcawork merged 1 commit into
mainfrom
ci/self-hosted-npm-cache
Oct 17, 2026
Merged

leandrotcawork merged 1 commit into
mainfrom
ci/self-hosted-npm-cache

Conversation

@leandrotcawork

Copy link
Copy Markdown
Collaborator

Removes cache: npm from actions/setup-node in .github/workflows/ci.yml and .github/actions/install/action.yml. The action shas stay pinned.

Why: on our self-hosted runners ~/.npm already persists on disk between jobs. On every job, setup-node's cache restore downloaded an 864 MB archive from GitHub, and the download died partway. Three runners also extracted it into the same ~/.npm at once, which failed with tar: Cannot open: File exists. Both showed up in the runs of #54 and #75. npm's own cache in ~/.npm is safe for concurrent use, so npm ci reads it directly.

The only other change: the install action's description no longer mentions the npm cache.

The method-freeze check passes locally: workflow files are not frozen.

The runners keep ~/.npm on disk between jobs. setup-node's cache downloaded an 864 MB archive from
GitHub on every job, which died mid-download, and three runners extracted it into the same ~/.npm
at once ('tar: Cannot open: File exists'). npm's own cache is safe for concurrent use, so npm ci
reads it directly. Action shas stay pinned.
@leandrotcawork
leandrotcawork merged commit 25a7b33 into main Oct 17, 2026
2 of 12 checks passed
@leandrotcawork
leandrotcawork deleted the ci/self-hosted-npm-cache branch November 12, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants