cache icon indicating copy to clipboard operation
cache copied to clipboard

Extremely slow Post Setup steps for actions/cache@v3

Open arthurhobspice opened this issue 1 year ago • 2 comments

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.)

arthurhobspice avatar Jul 30 '24 06:07 arthurhobspice

Seeing the same

wille avatar Jul 30 '24 21:07 wille

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

dmelikhov avatar Aug 02 '24 16:08 dmelikhov

Using actions/checkout@v3 and actions/cache@v4 this issue goes away. Can be closed.

arthurhobspice avatar Nov 13 '24 08:11 arthurhobspice