tag:help.appveyor.com,2012-11-13:/discussions/problems/14418-vm-stops-processing-testsAppVeyor: Discussion 2018-10-19T08:18:47Ztag:help.appveyor.com,2012-11-13:Comment/453716002018-05-29T22:51:47Z2018-05-29T22:51:47ZVM stops processing tests<div><p>From what I see, I wold first try to check if this is related to certain tests, specifically <code>Get-JiraIssue.Tests</code> or/and <code>Get-JiraGroupMember.Tests.ps1</code>. Can you try to remove them both and run build several times in a row?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/453716002018-05-30T19:56:38Z2018-05-30T19:56:55ZVM stops processing tests<div><p>I did not remove it <em>yet</em>, but here are some more builds that failed:</p>
<p><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dlutbfih/job/v2vk6il1dbb1p32n">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dlut...</a></p>
<p><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-krlewjif/job/2qqjl96nh3q3dmfx">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-krle...</a> <-- this one is particularly interesting</p></div>olivertag:help.appveyor.com,2012-11-13:Comment/453716002018-05-31T04:52:32Z2018-05-31T04:52:32ZVM stops processing tests<div><p>Sorry I cannot find second (particularly interesting) one. Also can you please point the one which hung on <code>Visual Studio 2017</code>?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/453716002018-06-03T09:10:57Z2018-06-03T09:10:57ZVM stops processing tests<div><p>Hi Ilya.</p>
<p>Here are some that failed on <code>Visual Studio 2017</code>:</p>
<ul>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1-ltgrsyue">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1-ltgr...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-xamurhgx">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-xamu...</a></li>
</ul>
<p>and here are some more (on ubuntu):</p>
<ul>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.6.99018">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.6.99018</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dlutbfih">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dlut...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1-upmxlcxr">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1-upmx...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.1</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-oulwosyp">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-oulw...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-ocmsvaiq">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-ocms...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dgiisygt">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-dgii...</a></li>
<li><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-ahspsmpr">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/2.7.2-ahsp...</a></li>
</ul>
<p>one thing that baffles me, is that it appears as the result of <code>Invoke-Pester</code> is uploaded to the build as artefacts.</p>
<p>here is how I found the links mentioned above:<br></p>
<pre>
<code>$token = 'IAmNotTelling'<br><br>
<br>$numOfBuilds = 100
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}<br><br>
<br>$invokeRestMethodSplat = @{
Method = 'Get'
Headers = $headers
Uri = "https://ci.appveyor.com/api/projects/AtlassianPS/jiraps/history?recordsNumber=$numOfBuilds"
}<br><br>
<br>$failures = (Invoke-RestMethod @invokeRestMethodSplat).builds | ? status -eq "failed"<br><br>
<br>$result = New-Object -TypeName System.Collections.ArrayList<br><br>
<br>foreach ($fail in $failures) {<br><br>
</code>
</pre>
<pre>
<code><code>$relevant = $false
$invokeRestMethodSplat = @{
Method = &#39;Get&#39;
Headers = $headers
Uri = &quot;https://ci.appveyor.com/api/projects/AtlassianPS/jiraps/build/$($fail.version)&quot;
}
$fail = (Invoke-RestMethod @invokeRestMethodSplat).build
foreach ($job in $fail.jobs) {
if (([datetime]$job.finished - [datetime]$job.created) -gt [timespan]&quot;00:59:00&quot;) {
$relevant = $true
}
}
if ($relevant) {
$result.Add($fail)
}</code></code>
</pre>
<pre>
<br>}
<br>$result | % { "<a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/$($_.version)">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/$($_.version)</a>" }
</pre></div>olivertag:help.appveyor.com,2012-11-13:Comment/453716002018-06-03T09:42:28Z2018-06-03T09:42:28ZVM stops processing tests<div><p>The one build I said was interesting was deleted. I am sorry for that.<br>
But here is a new one with exactly the same behavior:</p>
<p><a href="https://ci.appveyor.com/project/AtlassianPS/jiraps/build/job/3fi862t1t49v9035">https://ci.appveyor.com/project/AtlassianPS/jiraps/build/job/3fi862...</a></p></div>olivertag:help.appveyor.com,2012-11-13:Comment/453716002018-06-05T17:57:56Z2018-06-05T17:57:56ZVM stops processing tests<div><p>Bump... Sorry</p></div>olivertag:help.appveyor.com,2012-11-13:Comment/453716002018-06-05T18:24:23Z2018-06-05T18:24:47ZVM stops processing tests<div><p>Sorry for delay. Will look into this today.<br>
It is difficult to say anything in this situation without putting hands on a repro. Should we be able to reproduce the problem by forking you repository and creating AppVeyor project?</p>
<p>I am asking because I see you have some secure variables in <a href="https://github.com/AtlassianPS/JiraPS/blob/develop/appveyor.yml">your YAML</a>. They obviously will not be decoded in our fork build, and I do not know if this will affect our ability to get a repro.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/453716002018-06-06T16:01:48Z2018-06-06T16:01:57ZVM stops processing tests<div><p>The secret env vars are not relevant for the parts that are failing.</p>
<p>If the problem is code, you should be able to repo.<br>
If the problem is VMs, you will have to trigger a lot of builds to see some failing<br>
If the problem is in my account, you will not be able to repro</p></div>olivertag:help.appveyor.com,2012-11-13:Comment/453716002018-06-06T21:48:08Z2018-06-06T21:48:08ZVM stops processing tests<div><p>I was able to stabilize the build for ubuntu by using our google compute engine build cloud. You can see the builds <a href="https://ci.appveyor.com/project/britzkopf/jiraps/history">here</a> starting from build 2.7.14 and on every build is the same - failing due to the same 5 tests.</p>
<p>This leads me to believe that perhaps your build was non-determinisically exhausting some resources of the build machine. I have enabled google compute engine cloud for your account. Add this environment variable to your yaml and see if it makes a difference for you.<br></p>
<pre>
<code>appveyor_build_worker_cloud: gce</code>
</pre>
Note that we don't keep google compute engine worker 'pre-heated' in the same way we do other build machines so there will be a longer lag for the build to kick off.</div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/453716002018-06-25T18:21:37Z2018-06-25T18:21:37ZVM stops processing tests<div><p>seems to be resolved.<br>
Thank you!</p></div>oliver