tag:help.appveyor.com,2012-11-13:/discussions/problems/12669-build-get-stuck-when-dotnet-test-failsAppVeyor: Discussion 2018-08-25T02:27:17Ztag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T01:06:50Z2018-03-05T20:40:11ZBuild get stuck when "dotnet test" fails<div><p>I've just created a new project with a short and simple config. The problem is that when "dotnet test" fails, the build keeps waiting for something and it ends up failing due to timeout after an hour.<br>
This is the project <a href="https://ci.appveyor.com/project/kblok/puppeteer-sharp">https://ci.appveyor.com/project/kblok/puppeteer-sharp</a></p>
<p>This is the exported yml</p>
<pre>
<code>version: 1.0.{build}
branches:
only:
- master
image: Previous Visual Studio 2017
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
Import-Module WebAdministration
New-SelfSignedCertificate -Subject "puppeteer" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\LocalMachine\My"
Get-ChildItem -Path cert:\LocalMachine\my | where { $_.subject -eq "CN=puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test:
assemblies:
only:
- '*PuppeteerSharp.Tests*'</code>
</pre></div>dariokondratiuktag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T01:55:34Z2018-03-05T01:55:34ZBuild get stuck when "dotnet test" fails<div><p>I've just blocked the RDP and dotnet test is working as expected there</p></div>dariokondratiuktag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T20:53:19Z2018-03-05T20:53:19ZBuild get stuck when "dotnet test" fails<div><p>Hi Darío,</p>
<p>I see you workaround the issue with adding <code>-p:ParallelizeTestCollections=false</code>. Can you share more details about your investigation? Do you believe that we should add this option if we see that test is xUnit?</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T21:03:35Z2018-03-05T21:03:35ZBuild get stuck when "dotnet test" fails<div><p>I've got that from a StackOverflow post but no joy, it is still stuck.</p></div>dariokondratiuktag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T21:10:16Z2018-03-05T21:10:16ZBuild get stuck when "dotnet test" fails<div><p>It could be some child process spawned during the tests and preventing parent from existing. Could it be the case?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T22:11:52Z2018-03-05T22:11:52ZBuild get stuck when "dotnet test" fails<div><p>I'm creating a child process, and I'm killing it, I added some logs to verify that, but in the Remote desktop is working.</p>
<p>I'll try removing that process just as a test.</p>
<p>If it is the process, how can I start a process (a kestrel web server) from AppVeyor without locking the thread? Because the kestrel server will lock the terminal.</p></div>dariokondratiuktag:help.appveyor.com,2012-11-13:Comment/448392132018-03-05T22:20:07Z2018-03-05T22:20:07ZBuild get stuck when "dotnet test" fails<div><p>You can use <code>Start-job</code> PowerShell command.</p></div>Ilya Finkelshteyn