从teamcity运行业力.Chrome Testrunner无法启动

dss*_*dss 10 teamcity angularjs karma-runner

我们在构建服务器上安装了团队记者的业力.它通过Chrome,Firefox和IE运行单元测试,一切都运行良好.然后昨天我注意到Chrome没有报告.IE和Firefox仍然连接并运行所有单元测试,但由于某些原因,业力无法打开与Chrome的连接,因此它在60秒后超时并且构建步骤失败.

真正奇怪的是,我可以登录到构建服务器并从命令行运行它没有问题.测试运行(并且它们非常快).

karma start --reporters teamcity --single-run --log-level error --browsers = IE,Firefox,Chrome

这是teamcity的构建日志.有没有人知道发生了什么?正如你可以看到firefox那样报告很好但Chrome每次都会掉到脸上.我感谢您提供的任何帮助.

[16:16:39][Step 2/5]  [36mDEBUG [config]:  [39mLoading config C:\TCBuildConf\01-OpSuiteDev\02-codebase\Website\OpSuite.MobileWeb\Client\unit_tests\karma.conf.js
[16:16:39][Step 2/5]  [36mDEBUG [config]:  [39mautoWatch set to false, because of singleRun
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading karma-* from C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading plugin C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules/karma-chrome-launcher.
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading plugin C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules/karma-firefox-launcher.
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading plugin C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules/karma-ie-launcher.
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading plugin C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules/karma-jasmine.
[16:16:39][Step 2/5]  [36mDEBUG [plugin]:  [39mLoading plugin C:\Users\administrator.OPSUITE\AppData\Roaming\npm\node_modules/karma-teamcity-reporter.
[16:16:39][Step 2/5]  [32mINFO [karma]:  [39mKarma v0.12.16 server started at http://localhost:7357/
[16:16:39][Step 2/5]  [32mINFO [launcher]:  [39mStarting browser IE
[16:16:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCreating temp dir at C:\TeamCity\buildAgent\temp\buildTmp\karma-43795558
[16:16:39][Step 2/5]  [36mDEBUG [launcher]:  [39mC:\Program Files\Internet Explorer\iexplore.exe -extoff http://localhost:7357/?id=43795558
[16:16:39][Step 2/5]  [32mINFO [launcher]:  [39mStarting browser Firefox
[16:16:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCreating temp dir at C:\TeamCity\buildAgent\temp\buildTmp\karma-44455821
[16:16:39][Step 2/5]  [36mDEBUG [launcher]:  [39mC:\Program Files (x86)\Mozilla Firefox\firefox.exe http://localhost:7357/?id=44455821 -profile C:\TeamCity\buildAgent\temp\buildTmp\karma-44455821 -no-remote
[16:16:39][Step 2/5]  [32mINFO [launcher]:  [39mStarting browser Chrome
[16:16:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCreating temp dir at C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:16:39][Step 2/5]  [36mDEBUG [launcher]:  [39mC:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:7357/?id=28976911
[16:16:39][Step 2/5]  [36mDEBUG [watcher]:  [39mResolved files:
[16:16:42][Step 2/5]  [36mDEBUG [karma]:  [39mA browser has connected on socket WNLvjHxwETp4In9uP7A6
[16:16:42][Step 2/5]  [32mINFO [IE 11.0.0 (Windows 7)]:  [39mConnected on socket WNLvjHxwETp4In9uP7A6 with id 43795558
[16:16:42][Step 2/5]  [36mDEBUG [launcher]:  [39mIE (id 43795558) captured in 2.943 secs
[16:16:42][Step 2/5]  [36mDEBUG [launcher]:  [39mKilled extra IE process 652
[16:16:42][Step 2/5]  [36mDEBUG [launcher]:  [39mProcess IE exited with code 0
[16:16:42][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCleaning temp dir C:\TeamCity\buildAgent\temp\buildTmp\karma-43795558
[16:16:59][Step 2/5]  [36mDEBUG [karma]:  [39mA browser has connected on socket 4O99QMVW24pEsJBGP7A7
[16:16:59][Step 2/5]  [32mINFO [Firefox 32.0.0 (Windows 7)]:  [39mConnected on socket 4O99QMVW24pEsJBGP7A7 with id 44455821
[16:16:59][Step 2/5]  [36mDEBUG [launcher]:  [39mFirefox (id 44455821) captured in 20.586 secs
[16:17:00][Step 2/5]  [36mDEBUG [launcher]:  [39mProcess Firefox exited with code 0
[16:17:00][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCleaning temp dir C:\TeamCity\buildAgent\temp\buildTmp\karma-44455821
[16:17:39][Step 2/5]  [33mWARN [launcher]:  [39mChrome have not captured in 60000 ms, killing.
[16:17:39][Step 2/5]  [36mDEBUG [launcher]:  [39mProcess Chrome exited with code 0
[16:17:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCleaning temp dir C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:17:39][Step 2/5]  [32mINFO [launcher]:  [39mTrying to start Chrome again (1/2).
[16:17:39][Step 2/5]  [36mDEBUG [launcher]:  [39mRestarting Chrome
[16:17:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCreating temp dir at C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:17:39][Step 2/5]  [36mDEBUG [launcher]:  [39mC:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:7357/?id=28976911
[16:18:39][Step 2/5]  [33mWARN [launcher]:  [39mChrome have not captured in 60000 ms, killing.
[16:18:39][Step 2/5]  [36mDEBUG [launcher]:  [39mProcess Chrome exited with code 0
[16:18:39][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCleaning temp dir C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:18:40][Step 2/5]  [32mINFO [launcher]:  [39mTrying to start Chrome again (2/2).
[16:18:40][Step 2/5]  [36mDEBUG [launcher]:  [39mRestarting Chrome
[16:18:40][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCreating temp dir at C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:18:40][Step 2/5]  [36mDEBUG [launcher]:  [39mC:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:7357/?id=28976911
[16:19:40][Step 2/5]  [33mWARN [launcher]:  [39mChrome have not captured in 60000 ms, killing.
[16:19:40][Step 2/5]  [36mDEBUG [launcher]:  [39mProcess Chrome exited with code 0
[16:19:40][Step 2/5]  [36mDEBUG [temp-dir]:  [39mCleaning temp dir C:\TeamCity\buildAgent\temp\buildTmp\karma-28976911
[16:19:40][Step 2/5] Process exited with code 1
Run Code Online (Sandbox Code Playgroud)

dss*_*dss 0

这是最新版本 chrome 中的一个 chrome bug。问题似乎出在从服务启动 chrome 上。Chromium 团队已修复该问题,并将包含在预计于 2014 年 11 月 20 日左右发布的下一个版本中

问题跟踪器