Bug 20970 – Test Suite Azure Pipelines Windows_LDC_Debug x64-debug-ldc failed due to heisenbug
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2020-06-23T02:42:48Z
Last change time
2020-10-17T05:58:18Z
Keywords
pull, TestSuite
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2020-06-23T02:42:48Z
Here's what the log ends with:
----
+ download http://downloads.dlang.org/releases/2.x/2.090.0/dmd.2.090.0.windows.7z dmd2.7z
+ local url=http://downloads.dlang.org/releases/2.x/2.090.0/dmd.2.090.0.windows.7z
+ local path=dmd2.7z
+ curl -fsSL -A 'DMD-CI curl 7.70.0 (x86_64-w64-mingw32) libcurl/7.70.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.40.0' --connect-timeout 5 --speed-time 30 --speed-limit 1024 --retry 5 --retry-delay 5 http://downloads.dlang.org/releases/2.x/2.090.0/dmd.2.090.0.windows.7z -o dmd2.7z
curl: (56) Recv failure: Connection was reset
##[error]Cmd.exe exited with code '56'.
Finishing: Download requires binaries
----
What should happen is when a network error like this happens that has nothing to do with dmd failing the tests, is the test should sleep for a minute then try again.
Comment #1 by pro.mathias.lang — 2020-06-23T03:24:23Z
Now that `install.sh` supports Windows, perhaps it should be used directly instead.
Comment #2 by dlang-bot — 2020-10-17T02:41:31Z
@Geod24 created dlang/dmd pull request #11878 "Fix 20970 - Use a longer retry for curl on Windows" fixing this issue:
- Fix 20970 - Use a longer retry for curl on Windows
This uses the backoff strategy built in curl, instead of the short 5 seconds retry.
Instead, we set retry-max-time, telling curl to fail after 2 minutes.
https://github.com/dlang/dmd/pull/11878
Comment #3 by dlang-bot — 2020-10-17T05:58:18Z
dlang/dmd pull request #11878 "Fix 20970 - Use a longer retry for curl on Windows" was merged into master:
- 0427a8378a545ef677ed826e324cbb86c5c75655 by Geod24:
Fix 20970 - Use a longer retry for curl on Windows
This uses the backoff strategy built in curl, instead of the short 5 seconds retry.
Instead, we set retry-max-time, telling curl to fail after 2 minutes.
https://github.com/dlang/dmd/pull/11878