Build get stuck when "dotnet test" fails

dariokondratiuk's Avatar

dariokondratiuk

05 Mar, 2018 01:06 AM

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.
This is the project https://ci.appveyor.com/project/kblok/puppeteer-sharp

This is the exported yml

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*'
  1. 1 Posted by dariokondratiuk on 05 Mar, 2018 01:55 AM

    dariokondratiuk's Avatar

    I've just blocked the RDP and dotnet test is working as expected there

  2. Support Staff 2 Posted by Ilya Finkelshte... on 05 Mar, 2018 08:53 PM

    Ilya Finkelshteyn's Avatar

    Hi Darío,

    I see you workaround the issue with adding -p:ParallelizeTestCollections=false. Can you share more details about your investigation? Do you believe that we should add this option if we see that test is xUnit?

    Ilya.

  3. 3 Posted by dariokondratiuk on 05 Mar, 2018 09:03 PM

    dariokondratiuk's Avatar

    I've got that from a StackOverflow post but no joy, it is still stuck.

  4. Support Staff 4 Posted by Feodor Fitsner on 05 Mar, 2018 09:10 PM

    Feodor Fitsner's Avatar

    It could be some child process spawned during the tests and preventing parent from existing. Could it be the case?

  5. 5 Posted by dariokondratiuk on 05 Mar, 2018 10:11 PM

    dariokondratiuk's Avatar

    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.

    I'll try removing that process just as a test.

    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.

  6. Support Staff 6 Posted by Ilya Finkelshte... on 05 Mar, 2018 10:20 PM

    Ilya Finkelshteyn's Avatar

    You can use Start-job PowerShell command.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:27 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac