Bug 21081 – Test Suite: Azure pipelines heisenbug timeout
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-07-27T20:27:06Z
Last change time
2020-10-18T15:50:44Z
Keywords
TestSuite
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2020-07-27T20:27:06Z
What it should do is sleep for a minute then try again.
The test:
azure-pipelines
/ Azure pipelines (Windows_LDC_MinGW win32-ldc)
The complete log:
-----------------------------------------------------
Starting: Download requires binaries
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.164.2
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\a4172d45-33fd-4ebc-b687-4e9fdfc37102.cmd""
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+++ dirname .azure-pipelines/windows-visual-studio.sh
++ cd .azure-pipelines
++ pwd
+ DIR=/d/a/1/s/.azure-pipelines
+ . /d/a/1/s/.azure-pipelines/lib.sh
+++ curl --version
+++ head -n 1
++ CURL_USER_AGENT='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'
++ DMD_DIR=/d/a/1/s
+++ nproc
++ N=5
++ curl --version
++ head -n 1
+ CURL_USER_AGENT='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'
+ DMD_DIR=/d/a/1/s
+ echo '[STEP]: Downloading DMD'
[STEP]: Downloading DMD
+ install_host_dmd
+ '[' '!' -f dmd2/README.TXT ']'
+ 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: (28) Connection timed out after 5001 milliseconds
curl: (28) Connection timed out after 5000 milliseconds
curl: (28) Connection timed out after 5001 milliseconds
curl: (28) Connection timed out after 5001 milliseconds
curl: (28) Connection timed out after 5001 milliseconds
curl: (28) Connection timed out after 5001 milliseconds
##[error]Cmd.exe exited with code '28'.
Finishing: Download requires binaries
Comment #1 by pro.mathias.lang — 2020-10-18T15:50:44Z
The retry strategy already retries for 2 minutes.
I have recently made some improvements, and at your request am extending the timeout to 5 minutes.
Meanwhile, this specific case was fixed by https://github.com/dlang/dmd/pull/11878