I have two branches with exactly the same code and the tests for one fail, while on the other one they pass.
The job that fails is 174.2 and the job that passes is 168.2
Both are on Windows and have exactly the same yaml config with exactly the same code.
The error log of the failing job is this:
Client initialization failed after 10 attempts: RuntimeError Client initialization failed after 10 attempts:
[0] Error: unknown error: Chrome failed to start: exited normally
[0] (unknown error: DevToolsActivePort file doesn't exist)
[0] (The process started from chrome location C:\Users\travis\build\intacct-thyme\thyme-tracker\node_modules\spectron\lib\launcher.bat is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
[0] (Driver info: chromedriver=78.0.3905.1 (c7cce564a78f7c44042856c33e2f3dab0bc4307d-refs/heads/master@{[#703739](https://support.travis-ci.com/hc/requests/703739)}),platform=Windows NT 10.0.17763 x86_64)
[0] at new RuntimeError (node_modules\webdriverio\build\lib\utils\ErrorHandler.js:143:12)
[0] at Request._callback (node_modules\webdriverio\build\lib\utils\RequestHandler.js:318:39)
[0] at Request.self.callback (node_modules\request\request.js:185:22)
[0] at Request.EventEmitter.emit (domain.js:475:20)
[0] at Request.<anonymous> (node_modules\request\request.js:1161:10)
[0] at Request.EventEmitter.emit (domain.js:475:20)
[0] at IncomingMessage.<anonymous> (node_modules\request\request.js:1083:12)
[0] at IncomingMessage.EventEmitter.emit (domain.js:475:20)
[0] at endReadableNT (_stream_readable.js:1184:12)
[0] at processTicksAndRejections (internal/process/task_queues.js:80:21) .
The problem started when I added 2 commits, so I reverted both of them and run the tests for each revert to see if the problem was my code, but I reached the point where both jobs had identical code and it still failed.
Any idea why this may be happening? Was there any change to the windows environment lately?
Note: I cancelled both jobs because they didn’t finish themselves.
We appear to have updated the Windows image; the passing build found a cache:
fetching diagnostics-fixes/cache--windows-1803-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.14.0.tgz
found cache
and the failing one did not:
fetching diagnostics-fixes/cache--windows-1809-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.14.0.tgz
fetching diagnostics-fixes/cache-windows-1809-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.14.0.tgz
fetching diagnostics-fixes/cache--node-12.14.0.tgz
fetching development/cache--windows-1809-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.14.0.tgz
fetching development/cache-windows-1809-containers-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.14.0.tgz
fetching development/cache--node-12.14.0.tgz
could not download cache
It fails in both and the "postinstall": "electron-builder install-app-deps" builds it for the app.
Regarding the cached windows version, I see that the failing build sais: “could not download cache” for 1809 version, while the passing one downloads the 1803 version. Since you updated the windows version, that means we can now choose versions? I’ve no idea why it fails on 1809, I’ve got the same on my local and it passes