D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20970 - Test Suite Azure Pipelines Windows_LDC_Debug x64-debug-ldc failed due to heisenbug
Summary: Test Suite Azure Pipelines Windows_LDC_Debug x64-debug-ldc failed due to heis...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords: pull, TestSuite
Depends on:
Blocks:
 
Reported: 2020-06-23 02:42 UTC by Walter Bright
Modified: 2020-10-17 05:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2020-06-23 02:42:48 UTC
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 Mathias LANG 2020-06-23 03:24:23 UTC
Now that `install.sh` supports Windows, perhaps it should be used directly instead.
Comment 2 Dlang Bot 2020-10-17 02:41:31 UTC
@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 Dlang Bot 2020-10-17 05:58:18 UTC
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