msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
285 stars 38 forks source link

Sometimes timeouts when downloading the installer #264

Open lazka opened 1 year ago

lazka commented 1 year ago

Over the last 2 weeks we get this occasionally:

Downloading MSYS2...
  connect ETIMEDOUT 185.199.110.133:443
  Waiting 12 seconds before trying again
  connect ETIMEDOUT 185.199.110.133:443
  Waiting 14 seconds before trying again
  Error: connect ETIMEDOUT 185.199.110.133:443

Example: https://github.com/msys2/msys2-tests/actions/runs/3453702969/jobs/5764508819

I wonder if we should store it in the cache as well to make this less likely.

jeremyd2019 commented 1 year ago

I had a little hope that putting it in the "tool cache" might help (like, maybe once a new hosted image is updated, they might include it in the default tool cache), but I guess the "tool cache" only helps self-hosted?

I do know that the github cache service seems to be a real pain for my self-hosted runner (with not great internet), it tends to frequently (like every time if the cache is large) time out trying to upload to it

lazka commented 1 year ago

Maybe we can use three layers: tool cache -> github cache -> github download -> fail

jeremyd2019 commented 1 year ago

Reminds me of https://github.com/msys2/setup-msys2/issues/145#issuecomment-874363688