~/.npm is 1.2G on a new macos-latest hosted runner
See original GitHub issueOn the ubuntu-latest hosted runner ~/.npm doesn’t exist initially, as expected, but on the macos-latest hosted runner ~/.npm is 1.2G initially. This makes a cache restore or save take 1.5 minutes on macos-latest, verses seconds on ubuntu-latest.
2020-02-13T03:30:07.3173048Z ##[section]Starting: Request a runner to run this job
2020-02-13T03:30:07.3562194Z Requesting a hosted runner in current repository's account/organization with labels: 'macos-latest', require runner match: True
2020-02-13T03:30:07.7405114Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-02-13T03:30:07.7925180Z ##[section]Finishing: Request a runner to run this job
2020-02-13T03:30:23.3667460Z Current runner version: '2.164.0'
2020-02-13T03:30:23.3668900Z Prepare workflow directory
2020-02-13T03:30:23.3958520Z Prepare all required actions
2020-02-13T03:30:23.4418000Z ##[group]Run du -sh ~/.npm
2020-02-13T03:30:23.4418540Z [36;1mdu -sh ~/.npm[0m
2020-02-13T03:30:23.6135780Z shell: /bin/bash -e {0}
2020-02-13T03:30:23.6136090Z ##[endgroup]
2020-02-13T03:30:25.5609940Z 1.2G /Users/runner/.npm
2020-02-13T03:30:25.5653360Z Cleaning up orphan processes
Is the macos-latest npm cache being primed on purpose or did I find a bug?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:12 (11 by maintainers)
Top Results From Across the Web
Cache is large on macos-latest · Issue #427
On macOS, this directory is pre-populated with npm packages that ... ~/.npm is 1.2G on a new macos-latest hosted runner actions/cache#187.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can also use such a configuration file as a temporary workaround.
Thanks @imbsky, I replied to https://github.com/actions/virtual-environments/issues/427#issuecomment-628266793