Build/Test Issues

Stuck pending tests in processing queue

Started by alastairs on 2,262 views

Hi there

A bunch of my tests are stuck in the pending state, even across VS restarts, as illustrated in this screenshot:

[img=https://user-images.githubusercontent.com/52957/100373148-390aa980-3002-11eb-87ac-5a70f51d0efd.png]Stuck pending tests in processing queue[/img]

The tests in question are acceptance-style tests than run an ASP.NET Core application through the Test Host and communicate with a SQL Server instance running in Docker. No matter what I try, I cannot remove these stuck tests from the queue, nor can I run those tests manually—they appear to be blocked by the pending runs.

I'm now running the 4.6 release candidate from this thread, but I first noticed this behaviour after upgrading to 4.5 around 1-2 weeks ago. (I tried the RC to see if it fixed the issue.) I'm also wondering if it's related to this issue.

Many thanks in advance!

Edited

Hi, thanks for posting.

Can you confirm whether the tests have a required capability configured? This could cause them to not be executed if the machine does not have an equivalent compatibility setting in place.
Thanks Remco :) I've not configured distributed or grid processing at all, and can't find any mention of capabilities in the repo.
Can you check if this setting is responsible?

I also recommend turning on the 'Required Capabilities' column in the processing queue window just to be sure there isn't a capability declared somewhere for these tests.

Edited

It was indeed that "tests to execute" setting - thanks for pointing it out. I must have set it a long time ago 😂

Post a reply

Log in to reply.