Edge Detection Fails on Windows Server
kspearrin opened this issue · 1 comments
kspearrin commented
Our CI system runs on Windows Server, which does not have Edge installed. It seems that karma-detect-browsers
still thinks Edge is available and then fails when trying to execute Edge.
See our CI build output from the failure here: https://ci.appveyor.com/project/bitwarden/jslib/build/55
> karma start ./spec/support/karma.conf.js --single-run
07 05 2018 08:45:36.723:INFO [framework.detect-browsers]: The following browsers will be used: [ 'Chrome', 'Edge', 'Firefox' ]
07 05 2018 08:45:37.305:INFO [compiler.karma-typescript]: Compiling project using Typescript 2.7.1
07 05 2018 08:45:43.213:INFO [compiler.karma-typescript]: Compiled 191 files in 5855 ms.
07 05 2018 08:45:45.384:INFO [bundler.karma-typescript]: Bundled imports for 142 file(s) in 1669 ms.
07 05 2018 08:45:47.176:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
07 05 2018 08:45:47.177:INFO [launcher]: Launching browsers Chrome, Edge, Firefox with unlimited concurrency
07 05 2018 08:45:47.182:INFO [launcher]: Starting browser Chrome
07 05 2018 08:45:47.205:INFO [launcher]: Starting browser Edge
07 05 2018 08:45:47.228:INFO [launcher]: Starting browser Firefox
07 05 2018 08:45:52.238:INFO [Chrome 65.0.3325 (Windows 10.0.0)]: Connected on socket o9PBpnRej4e56GKRAAAA with id 35124980
Chrome 65.0.3325 (Windows 10.0.0): Executed 45 of 45 SUCCESS (0.305 secs / 0 secs)
Chrome 65.0.3325 (Windows 10.0.0): Executed 45 of 45 SUCCESS (0.305 secs / 0 secs)
Firefox 59.0.0 (Windows 10.0.0): Executed 45 of 45 SUCCESS (3.741 secs / 0 secs)
07 05 2018 08:46:10.284:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.
07 05 2018 08:46:10.284:ERROR [launcher]: Cannot start Edge
07 05 2018 08:46:10.285:ERROR [launcher]: Edge stdout:
Couldn't find Edge URL with URL: 01263580
Found
07 05 2018 08:46:10.285:ERROR [launcher]: Edge stderr:
07 05 2018 08:46:10.285:INFO [launcher]: Trying to start Edge again (1/2).
07 05 2018 08:46:31.510:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.
07 05 2018 08:46:31.510:ERROR [launcher]: Cannot start Edge
07 05 2018 08:46:31.510:ERROR [launcher]: Edge stdout:
Couldn't find Edge URL with URL: 005BB1F8
Found
07 05 2018 08:46:31.510:ERROR [launcher]: Edge stderr:
07 05 2018 08:46:31.511:INFO [launcher]: Trying to start Edge again (2/2).
07 05 2018 08:46:52.685:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.
07 05 2018 08:46:52.685:ERROR [launcher]: Cannot start Edge
07 05 2018 08:46:52.685:ERROR [launcher]: Edge stdout:
Couldn't find Edge URL with URL: 0120B230
Found
07 05 2018 08:46:52.685:ERROR [launcher]: Edge stderr:
07 05 2018 08:46:52.686:ERROR [launcher]: Edge failed 2 times (cannot start). Giving up.
TOTAL: 90 SUCCESS
TOTAL: 90 SUCCESS
4kochi commented
The problem is that Edge is an UWP and that is not supported by Windows Server 2016. See karma-runner/karma-edge-launcher#1
I will check if we can add an os detection to prevent this problem.