2014-10-17 6 views
10

Abbiamo installato karma con il reporter teamcity sul nostro server di build. Stava eseguendo test unitari tramite Chrome, Firefox e IE e tutto funzionava alla grande. Poi ieri ho notato che Chrome non stava segnalando. IE e Firefox continuavano a connettersi e a eseguire tutti i test unitari, ma per qualche motivo Karma non è in grado di aprire una connessione con Chrome, quindi scade dopo 60 secondi e il passaggio di generazione non riesce.Karma in esecuzione da teamcity. Chrome Testrunner non riesce a lanciare

Che cosa è veramente strano è che posso accedere al server di build ed eseguire questo dalla riga di comando senza problemi. I test sono eseguiti (e sono molto veloci).

inizio karma --reporters TeamCity --browsers errore --log livello --single-run = IE, Firefox, Chrome

Ecco il log di compilazione da TeamCity. Qualcuno ha la minima idea di cosa sta succedendo? Come puoi vedere Firefox e cioè riportare bene ma Chrome cade sul suo volto ogni volta. Apprezzo qualsiasi aiuto tu possa essere in grado di offrire.

[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 
+0

sto vedendo un problema simile sul nostro server di build, anche se stiamo usando Hudson. Chrome non ha problemi all'avvio quando provo una build locale, ma alla fine non riesce su test e file di origine che non sono stati toccati in un anno. Gli errori in una build locale seguono questo modello: 'TypeError: impossibile assegnare alla proprietà read only ...' Nulla di ciò accade se utilizzo Firefox anziché Chrome. –

+1

Abbiamo visto di recente questo problema anche a team city. Cercheremo di verificare la versione precedente qui: http://www.oldapps.com/google_chrome.php –

+0

Abbiamo deciso di andare senza head e passare a PhantomJS. –

risposta

0

Questo è un bug di Chrome con l'ultima versione di Chrome. Il problema sembra essere l'avvio di Chrome da un servizio. Il team di cromo ha risolto il problema e sarà incluso con la prossima release che dovrebbe intorno 20 nov 2014

issue tracker