Repository navigation
ci: no setup-node npm cache on the self-hosted runners - #77
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
cache: npmfromactions/setup-nodein.github/workflows/ci.ymland.github/actions/install/action.yml. The action shas stay pinned.Why: on our self-hosted runners
~/.npmalready 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~/.npmat once, which failed withtar: Cannot open: File exists. Both showed up in the runs of #54 and #75. npm's own cache in~/.npmis safe for concurrent use, sonpm cireads 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.