tag:help.appveyor.com,2012-11-13:/discussions/problems/2548-slow-build-tends-fail-because-of-test-timeoutAppVeyor: Discussion 2018-08-25T01:58:36Ztag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T01:15:00Z2015-07-22T01:15:00ZSlow build tends fail because of test timeout<div><p>I've migrated "nzakas" account to a new faster environment. See
if that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T01:38:07Z2015-07-22T01:38:08ZSlow build tends fail because of test timeout<div><p>Awesome. Thanks a lot.<br>
That did fix the issue.<br>
<a href="https://ci.appveyor.com/project/nzakas/eslint/build/337">https://ci.appveyor.com/project/nzakas/eslint/build/337</a></p>
<p>They are faster then the old ones.</p></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T01:52:46Z2015-07-22T01:52:46ZSlow build tends fail because of test timeout<div><p>Nice!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:13:45Z2015-07-22T02:13:46ZSlow build tends fail because of test timeout<div><p>This happened again: <a href="https://ci.appveyor.com/project/nzakas/eslint/build/340/job/wcyiakop38wwofxl">
https://ci.appveyor.com/project/nzakas/eslint/build/340/job/wcyiako...</a></p>
<p>I guess it behaves differently from build to build.</p></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:25:22Z2015-07-22T02:25:22ZSlow build tends fail because of test timeout<div><p>Do those tests have any external dependencies (i.e. do http
requests to some resources)?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:29:22Z2015-07-22T02:29:23ZSlow build tends fail because of test timeout<div><p>Nope but they do have average amount of file operation going on
like creating directory or file, delete file/directory etc.</p>
<p>If you look here: <a href="https://ci.appveyor.com/project/nzakas/eslint/history">https://ci.appveyor.com/project/nzakas/eslint/history</a><br>
Same code built 2 times, it worked one time and failed the other
time. look at the one with the title "Build: Check commit message
format at end of tests.. "</p></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:30:43Z2015-07-22T02:30:43ZSlow build tends fail because of test timeout<div><p>Is there any way to get more detailed error than just:</p>
<pre>
<code>Validating Makefile.js
npm ERR! Test failed. See above for more details.
Command exited with code 1</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:34:45Z2015-07-22T02:34:46ZSlow build tends fail because of test timeout<div><p>I am not sure how to get it as its only happening here. it
doesn't happen on travis or on our local machines including windows
machine.<br>
Our Makefile rarely gets updated and it works sometime and it
doesnt sometime. Timeout errors are definitely happening because of
slowness. That i realised after you made the first change. travis
takes 10 seconds and now even the faster environment here is taking
45 seconds.</p></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:37:58Z2015-07-22T02:37:58ZSlow build tends fail because of test timeout<div><p>What operation does take 45 seconds?</p>
<p>Is is possible to have a tiny project reproducing the issue?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T02:43:24Z2015-07-22T02:43:25ZSlow build tends fail because of test timeout<div><p>On latest builds you can see this for unit test runs<br></p>
<pre>
<code>[92m 5349 passing (47s)</code>
</pre>
Please feel free to compare it against travis runs.
<p>You can personally checkout the project from here: <a href="https://github.com/eslint/eslint">https://github.com/eslint/eslint</a><br>
Run these commands<br>
```sh npm install<br>
npm test<br></p>
<pre>
</pre></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T04:05:37Z2015-07-22T04:05:37ZSlow build tends fail because of test timeout<div><p>Oh, I've got "EBADF": <a href="https://ci.appveyor.com/project/FeodorFitsner/eslint/build/5/job/ie4rhikskuh21mtg">
https://ci.appveyor.com/project/FeodorFitsner/eslint/build/5/job/ie...</a></p>
<p>There is definitely something wrong with disk (which could
potentially explain intermittent nature of failing builds). I'm
checking the disk now.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T15:22:45Z2015-07-22T15:22:45ZSlow build tends fail because of test timeout<div><p>Guys, any update on this. The problem still continues.<br>
With intermittent failure on different environments.<br>
History: <a href="https://ci.appveyor.com/project/nzakas/eslint/history">https://ci.appveyor.com/project/nzakas/eslint/history</a></p>
<p>For more details please look inside each build.</p></div>Gyandeep Singhtag:help.appveyor.com,2012-11-13:Comment/374456512015-07-22T15:23:36Z2015-07-22T15:23:36ZSlow build tends fail because of test timeout<div><p>Working on that.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374456512015-07-30T02:44:24Z2015-07-30T02:44:24ZSlow build tends fail because of test timeout<div><p>We changed VMs to have 2 CPU cores. Apparently, with 2 cores the
build is more stable.</p>
<p>Let me know about the results.</p></div>Feodor Fitsner