actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.46k stars 1.19k forks source link

Extremely slow Post Setup steps for actions/cache@v3 #1442

Open arthurhobspice opened 1 month ago

arthurhobspice commented 1 month ago

I use actions/cache@v3 in a pre-commit check workflow on self-hosted runners (summerwind/actions-runner image).

Intermittently (e.g. yesterday and today) the Post Setup steps are extremely slow. Each step takes 2 min 12 sec (plusminus 1 sec).

Looking at the logs and a pcap network trace I observe that the packages (several MiB) are transferred in a few seconds max, but then the connection to GitHub hangs until it probably hits a timeout. Remote IP address for each TCP stream is 20.246.192.124 (Microsoft).

Maybe related to https://github.com/actions/cache/issues/720?

Excerpt from workflow log:

image

(The five lines in each step are presented quickly, and then the workflow hangs for the two minutes.)

wille commented 1 month ago

Seeing the same

dmelikhov commented 1 month ago

This is a known bug in Node 20: https://github.com/nodejs/node/issues/47228

Please see related issues for possible workarounds: https://github.com/actions/setup-node/issues/878 https://github.com/ruby/setup-ruby/issues/543