Skip to content

symbols: add retry option to deal with IPV6 issues on WSL2

Warren Gifford requested to merge as/deal-with-ip-v6-inconsistencies into main

Created by: asdine

When running sg on WSL2, the enterprise-symbols step fails with the following error:

...
#7 20.92 + curl https://codeload.github.com/universal-ctags/ctags/tar.gz/f95bb3497f53748c2b6afc7f298cff218103ab90
#7 20.99   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#7 20.99                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0curl: (6) Could not resolve host: codeload.github.com
...

After some research it seems related to the way Docker on Windows deals with IP V6 addresses. Adding a retry seems to fix the issue

Test plan

I have been using it for a week now and everything seems fine.

Merge request reports

Loading