Kitchensink hangs starting a test on CircleCI Windows
See original GitHub issueCypress v3.6.0 on Windows 64bit on CircleCI with Electron 73 (default) browser
Example build https://circleci.com/gh/cypress-io/cypress-example-kitchensink/3778
Just hangs when starting the test
> cypress-example-kitchensink@0.0.0-development e2e:record C:\Users\circleci\app
> cypress run --record "--env" "circle=true"
====================================================================================================
(Run Starting)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Cypress: 3.6.0 β
β Browser: Electron 73 (headless) β
β Specs: 19 found (examples\actions.spec.js, examples\aliasing.spec.js, examples\assertions β
β .spec.js, examples\connectors.spec.js, examples\cookies.spec.js, examples\cypress_ β
β api.spec.js, examples\files.spec.js, examples\local_storage.spec.js, examples\loca β
β tion.spec.j...) β
β Params: Group: false, Parallel: false β
β Run URL: https://dashboard.cypress.io/#/projects/******/runs/9280 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Running: examples\actions.spec.js (1 of 19)
Estimated: 19 seconds
Actions
Too long with no output (exceeded 1m0s)
Enabled debug logs, see https://circleci.com/gh/cypress-io/cypress-example-kitchensink/3783 for them. The error that caught my eye is at the beginning
Show containers:All (1)Successful (0)Failed (1)
0
(02:25)
+
TEST
Spin up Environment00:10
Checkout code00:02
Restoring Cache00:33
npm ci00:22
npm run cy:verify00:05
Saving Cache00:01
Start server01:10
Run Cypress tests01:10 (timed out)
#!bash.exe
DEBUG=cypress* npm run e2e -- --env circle=true
> cypress-example-kitchensink@0.0.0-development e2e C:\Users\circleci\app
> cypress run "--env" "circle=true"
2019-11-04T14:35:26.709Z cypress:cli cli starts with arguments ["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\circleci\\app\\node_modules\\cypress\\bin\\cypress","run","--env","circle=true"]
2019-11-04T14:35:26.710Z cypress:cli NODE_OPTIONS is not set
2019-11-04T14:35:26.711Z cypress:cli program parsing arguments
2019-11-04T14:35:26.712Z cypress:cli running Cypress
2019-11-04T14:35:26.786Z cypress:cli parsed cli options { env: 'circle=true' }
2019-11-04T14:35:26.789Z cypress:cli verifying Cypress app
2019-11-04T14:35:26.790Z cypress:cli checking environment variables
2019-11-04T14:35:26.794Z cypress:cli checking if executable exists C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\Cypress.exe
2019-11-04T14:35:26.796Z cypress:cli Binary is executable? : true
2019-11-04T14:35:26.797Z cypress:cli binaryDir is C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress
2019-11-04T14:35:26.797Z cypress:cli Reading binary package.json from: C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\package.json
2019-11-04T14:35:26.800Z cypress:cli Found binary version 3.6.0 installed in: C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress
2019-11-04T14:35:26.801Z cypress:cli { verified: true }
2019-11-04T14:35:26.801Z cypress:cli is Verified ? true
2019-11-04T14:35:26.801Z cypress:cli processing run options
2019-11-04T14:35:26.801Z cypress:cli --key is not set, looking up environment variable CYPRESS_RECORD_KEY
2019-11-04T14:35:26.802Z cypress:cli Using CYPRESS_RECORD_KEY from environment variable
2019-11-04T14:35:26.802Z cypress:cli run to spawn.start args ["--run-project","C:\\Users\\circleci\\app","--env","circle=true","--key","************************************"]
2019-11-04T14:35:26.802Z cypress:cli needs to start own Xvfb? false
2019-11-04T14:35:26.803Z cypress:cli spawning, should retry on display problem? false
2019-11-04T14:35:26.811Z cypress:cli spawning Cypress with executable: C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\Cypress.exe
2019-11-04T14:35:26.813Z cypress:cli spawn args [ '--run-project', 'C:\\Users\\circleci\\app', '--env', 'circle=true', '--key', '************************************', '--cwd', 'C:\\Users\\circleci\\app' ] { detached: false, stdio: 'pipe', windowsHide: false }
2019-11-04T14:35:26.994Z cypress:cli piping process STDIN into child STDIN
2019-11-04T14:35:26.995Z cypress:cli piping child STDOUT to process STDOUT
2019-11-04T14:35:26.995Z cypress:cli piping child STDERR to process STDERR
cypress:ts Running without ts-node hook in environment "production" +0ms
cypress:server:cypress starting cypress with argv [ 'C:\\Users\\circleci\\AppData\\Local\\Cypress\\Cache\\3.6.0\\Cypress\\Cypress.exe', '--run-project', 'C:\\Users\\circleci\\app', '--env', 'circle=true', '--key', '************************************', '--cwd', 'C:\\Users\\circleci\\app' ] +0ms
cypress:server:args argv array: [ 'C:\\Users\\circleci\\AppData\\Local\\Cypress\\Cache\\3.6.0\\Cypress\\Cypress.exe', '--run-project', 'C:\\Users\\circleci\\app', '--env', 'circle=true', '--key', '************************************', '--cwd', 'C:\\Users\\circleci\\app' ] +0ms
cypress:server:args argv parsed: { _: [ 'C:\\Users\\circleci\\AppData\\Local\\Cypress\\Cache\\3.6.0\\Cypress\\Cypress.exe' ], runProject: 'C:\\Users\\circleci\\app', env: 'circle=true', key: '************************************', cwd: 'C:\\Users\\circleci\\app', invokedFromCli: true } +5ms
cypress:server:util:proxy found proxy environment variables { npm_config_proxy: '', npm_config_https_proxy: '' } +0ms
cypress:server:util:proxy HTTP_PROXY is falsy, disabling HTTP_PROXY +1ms
cypress:server:util:proxy setting default NO_PROXY of `` +0ms
cypress:server:util:proxy <-loopback> not found, adding localhost to NO_PROXY +0ms
cypress:server:util:proxy normalized proxy environment variables { NO_PROXY: '127.0.0.1,::1,localhost' } +1ms
cypress:server:args options { _: [ 'C:\\Users\\circleci\\AppData\\Local\\Cypress\\Cache\\3.6.0\\Cypress\\Cypress.exe' ], runProject: 'C:\\Users\\circleci\\app', key: '************************************', cwd: 'C:\\Users\\circleci\\app', invokedFromCli: true, config: { env: { circle: true } } } +4ms
cypress:server:args argv options: { _: [ 'C:\\Users\\circleci\\AppData\\Local\\Cypress\\Cache\\3.6.0\\Cypress\\Cypress.exe' ], runProject: 'C:\\Users\\circleci\\app', key: '************************************', cwd: 'C:\\Users\\circleci\\app', invokedFromCli: true, config: { env: { circle: true } }, projectRoot: 'C:\\Users\\circleci\\app', run: true } +1ms
cypress:server:appdata path: C:\Users\circleci\AppData\Roaming\Cypress\cy\production +0ms
cypress:server:cypress starting in mode run +397ms
cypress:server:cypress running Electron currently +0ms
cypress:server:appdata path: C:\Users\circleci\AppData\Roaming\Cypress\cy\production +676ms
cypress:server:appdata path: C:\Users\circleci\AppData\Roaming\Cypress\cy\production\cache +6ms
cypress:server:appdata path: C:\Users\circleci\AppData\Roaming\Cypress\cy\production\browsers +2s
cypress:server:video using ffmpeg from C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\@ffmpeg-installer\win32-x64\ffmpeg.exe +0ms
cypress:server:chrome_policy_check error initializing chrome policy check { err: Error: Module did not self-register. at process.func [as dlopen] (electron/js2c/asar.js:155:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:881:18) at Object.func [as .node] (electron/js2c/asar.js:155:31) at Module.load (internal/modules/cjs/loader.js:701:32) at tryModuleLoad (internal/modules/cjs/loader.js:633:12) at Function.Module._load (internal/modules/cjs/loader.js:625:3) at Module.require (internal/modules/cjs/loader.js:739:19) at require (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous> (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\registry-js\dist\lib\registry.js:4:7) at Module._compile (internal/modules/cjs/loader.js:839:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:851:10) at Module.load (internal/modules/cjs/loader.js:701:32) at tryModuleLoad (internal/modules/cjs/loader.js:633:12) at Function.Module._load (internal/modules/cjs/loader.js:625:3) at Module.require (internal/modules/cjs/loader.js:739:19) at require (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous> (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\registry-js\dist\lib\index.js:6:10) at Module._compile (internal/modules/cjs/loader.js:839:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:851:10) at Module.load (internal/modules/cjs/loader.js:701:32) at tryModuleLoad (internal/modules/cjs/loader.js:633:12) at Function.Module._load (internal/modules/cjs/loader.js:625:3) at Module.require (internal/modules/cjs/loader.js:739:19) at require (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous> (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\util\chrome_policy_check.js:102:24) at Module._compile (internal/modules/cjs/loader.js:839:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:851:10) at Module.load (internal/modules/cjs/loader.js:701:32) at tryModuleLoad (internal/modules/cjs/loader.js:633:12) at Function.Module._load (internal/modules/cjs/loader.js:625:3) at Module.require (internal/modules/cjs/loader.js:739:19) at require (internal/modules/cjs/helpers.js:14:16) at Object.<anonymous> (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\modes\run.js:31:27) at Module._compile (internal/modules/cjs/loader.js:839:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:851:10) at Module.load (internal/modules/cjs/loader.js:701:32) at tryModuleLoad (internal/modules/cjs/loader.js:633:12) at Function.Module._load (internal/modules/cjs/loader.js:625:3) at Module.require (internal/modules/cjs/loader.js:739:19) at require (internal/modules/cjs/helpers.js:14:16) at module.exports (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\modes\index.js:7:16) at C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\cypress.js:53:38 at tryCatcher (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\util.js:16:23) at Function.Promise.attempt.Promise.try (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\method.js:39:29) at Object.runElectron (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\cypress.js:46:28) at Object.startInMode (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\cypress.js:159:23) at C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\lib\cypress.js:117:24 at tryCatcher (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:729:18) at Promise._fulfill (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:673:18) at Promise._settlePromise (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:617:21) at Promise._settlePromise0 (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:729:18) at Promise._fulfill (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:673:18) at PromiseArray._resolve (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise_array.js:127:19) at PromiseArray._promiseFulfilled (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise_array.js:145:14) at Promise._settlePromise (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:609:26) at Promise._settlePromise0 (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:729:18) at Promise._fulfill (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\promise.js:673:18) at C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\bluebird\js\release\nodeback.js:42:21 at C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16 at callback (C:\Users\circleci\AppData\Local\Cypress\Cache\3.6.0\Cypress\resources\app\packages\server\node_modules\graceful-fs\polyfills.js:295:20) at FSReqCallback.oncomplete (fs.js:164:5) } +0ms
At the end there is nothing interesting
cypress:server:request successful response received { requestId: 'request1' } +1ms
cypress:server:server resolve:url headers received, buffering response { headers: { 'content-length': '28291', 'content-disposition': 'inline; filename="actions.html"', 'accept-ranges': 'bytes', etag: '"039d0311df5f1649899cb1e88dd12288662ea240"', 'content-type': 'text/html; charset=utf-8', 'cache-control': 'no-cache', vary: 'Accept-Encoding', date: 'Mon, 04 Nov 2019 14:35:35 GMT', connection: 'keep-alive' }, statusCode: 200 } +42ms
cypress:server:cors Parsed URL { port: '8080', tld: 'localhost', domain: '' } +0ms
cypress:server:cookies getting:cookies { domain: 'localhost' } +65ms
cypress:server:cookies received get:cookies [] +1ms
cypress:server:server setting details resolving url { isOkStatusCode: true, contentType: 'text/html', url: 'http://localhost:8080/commands/actions', status: 200, cookies: [], statusText: 'OK', redirects: [], originalUrl: 'http://localhost:8080/commands/actions' } +27ms
cypress:server:server resolve:url response ended, setting buffer { newUrl: 'http://localhost:8080/commands/actions', details: { isOkStatusCode: true, contentType: 'text/html', url: 'http://localhost:8080/commands/actions', status: 200, cookies: [], statusText: 'OK', redirects: [], originalUrl: 'http://localhost:8080/commands/actions', isHtml: true } } +1ms
cypress:server:server Setting remoteAuth null +2ms
cypress:server:cors Parsed URL { port: '8080', tld: 'localhost', domain: '' } +8ms
cypress:server:server Setting remoteOrigin http://localhost:8080 +0ms
cypress:server:server Setting remoteHostAndPort { port: '8080', tld: 'localhost', domain: '' } +0ms
cypress:server:server Setting remoteDocDomain localhost +0ms
cypress:server:server Getting remote state: { auth: null, props: { port: '8080', tld: 'localhost', domain: '' }, origin: 'http://localhost:8080', strategy: 'http', visiting: false, domainName: 'localhost', fileServer: null } +0ms
cypress:server:socket backend:request { eventName: 'preserve:run:state', args: [ { currentId: 'r3', tests: {}, startTime: '2019-11-04T14:35:35.031Z', emissions: [Object], passed: 0, failed: 0, pending: 0, numLogs: 0, autoScrollingEnabled: true, scrollTop: 0 } ] } +85ms
cypress:server:routes Serving Cypress front-end by requested URL: /__/ +3s
cypress:server:server Getting remote state: { auth: null, props: { port: '8080', tld: 'localhost', domain: '' }, origin: 'http://localhost:8080', strategy: 'http', visiting: false, domainName: 'localhost', fileServer: null } +347ms
cypress:server:runner serving runner index.html with config { version: '3.6.0', platform: 'win32', arch: 'x64', projectName: 'app' } +3s
cypress:server:runner env object has the following keys: RECORD_KEY, TEST_URL, circle +1ms
Too long with no output (exceeded 1m0s)
Note, the message cypress:server:runner env object has the following keys
is usually followed by this:
cypress:server:runner env object has the following keys: RECORD_KEY, TEST_URL, circle +0ms
cypress:server:browsers:electron debugger: enable Console and Network +1s
cypress:server:browsers browser opened +1s
cypress:server:server Got CONNECT request from localhost:49998
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top Results From Across the Web
CircleCI builds and runs some tests successfully but then ...
All tests that are tested before it freezes pass. I'm confused and looking for help as to why the testing freezes like this....
Read more >CircleCi freezes completely - Feedback & Bug Reports
hello, when I open a job and click on the accordion to open an entry ... my browser window is completely frozen and...
Read more >Yarn test hangs when one more tests file is added
Hi All, I'm running a project that has several test suites (Jest), all passing locally. I have a step in my CircleCI job...
Read more >Using the Windows execution environment - CircleCI
Check out the Hello World on Windows page. Help make this document better. This guide, as well as the rest of our docs,...
Read more >Dotnet Core Testing Randomly Times Out - CircleCI Discuss
When running dotnet test the suite hangs and continuously prints out βTest ... microsoft/dotnet:2.1-sdk image; Very simple tests, all POCOs,Β ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hey we have the same issue since we updated from 3.4.1 to 3.6.1 in our jenkins CI. I will downgrade to 3.4.1 until a solution is found.
I think it is the same error:
Is there any workaround? Can I assist somehow?
We are using Windows Server.
Yes, this was fixed by upgrading Electron in 3.8.0: #5852