Closed josephgilland closed 5 years ago
Hi Joseph,
could you please turn off warning statistics and check if the timeout is gone? The root cause for this should be that it takes longer for your build to fully upload the log information to Azure DevOps. Our task needs the log infomration in order to calculate the warning statistics, but it only waits for two minutes before giving up. By turning off the statistics, we can check if there might be an additional issue.
If the task works with warning statistics disabled, please enable statistics again and set the variable PSGer.Build.MaxWaitTime to 300000 (= five minutes) and the variable PSGer.Build.PollInterval to 10000 (= ten seconds). This reduces the amount of polling from every five seconds (default) to every ten seconds and allows up to five minutes for the log data to be uploaded to and processed by Azure DevOps.
Let me know if that helps. If not, please run the build again with the variable System.Debug set to true and send the log file to our support email address PSGerExtSupport@microsoft.com.
René
Thanks for the response! Neither turning off warning statistics nor increasing the wait time and poll interval worked. There are a very large number of warnings in this build, but it seems odd it would take that long to get uploaded. I've emailed the requested log file to the support address indicated.
Received email support. It turns out that each warning is possibly sent individually to Azure DevOps backend. Tasks with a very large number of build warnings can take several minutes to finalize, requiring a larger PSGer.Build.MaxWaitTime variable to be set. After setting a larger value, the task was able to complete. We'll likely revisit this task once we are able to cleanup more warnings. Thanks for the support!
A Visual Studio Build task followed by a Build Quality Checks task (v5.2.1 in Azure DevOps) with only the warning policy enabled (fixed threshold, 10 warnings, show warning statistics is on, and all other default values) results in the following output:
The build task was successful. Am I missing an intermittent task that might be needed?