Cypress v4.4.0 is run inside a docker container in our CI. After thecypress:server:plugins debug messages it just hangs and the only output is from cypress:server:util:process_profiler every 10 seconds.
The docker image is built on cypress/included:4.4.1.
> <project> cy:run:debug /opt/src/app
> DEBUG=cypress:* npm run cy:run
> <project> cy:run /opt/src/app
> cypress run --headless -b chrome
cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/opt/src/app/node_modules/.bin/cypress","run","--headless","-b","chrome"] +0ms
cypress:cli NODE_OPTIONS is not set +0ms
cypress:cli:cli program parsing arguments +2ms
cypress:cli:cli running Cypress with args [ Command { commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _noHelp: false, _exitCallback: undefined, _executableFile: undefined, parent: Command { commands: [Array], options: [Array], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _usage: '<command> [options]', _events: [Object: null prototype], _eventsCount: 9, rawArgs: [Array], args: [] }, _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, _events: [Object: null prototype] { 'option:browser': [Function], 'option:ci-build-id': [Function], 'option:config': [Function], 'option:config-file': [Function], 'option:env': [Function], 'option:group': [Function], 'option:key': [Function], 'option:headed': [Function], 'option:headless': [Function], 'option:no-exit': [Function], 'option:parallel': [Function], 'option:port': [Function], 'option:project': [Function], 'option:record': [Function], 'option:reporter': [Function], 'option:reporter-options': [Function], 'option:spec': [Function], 'option:tag': [Function], 'option:dev': [Function] }, _eventsCount: 19, exit: true, headless: true, browser: 'chrome' } ] +2ms
cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/opt/src/app/node_modules/.bin/cypress', 'run', '--headless', '-b', 'chrome' ], opts: Command { commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _noHelp: false, _exitCallback: undefined, _executableFile: undefined, parent: Command { commands: [Array], options: [Array], _execs: Set {}, _allowUnknownOption: false, _args: [], _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _helpFlags: '-h, --help', _helpDescription: 'output usage information', _helpShortFlag: '-h', _helpLongFlag: '--help', _usage: '<command> [options]', _events: [Object: null prototype], _eventsCount: 9, rawArgs: [Array], args: [] }, _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, _events: [Object: null prototype] { 'option:browser': [Function], 'option:ci-build-id': [Function], 'option:config': [Function], 'option:config-file': [Function], 'option:env': [Function], 'option:group': [Function], 'option:key': [Function], 'option:headed': [Function], 'option:headless': [Function], 'option:no-exit': [Function], 'option:parallel': [Function], 'option:port': [Function], 'option:project': [Function], 'option:record': [Function], 'option:reporter': [Function], 'option:reporter-options': [Function], 'option:spec': [Function], 'option:tag': [Function], 'option:dev': [Function] }, _eventsCount: 19, exit: true, headless: true, browser: 'chrome' } } +206ms
cypress:cli parsed cli options { browser: 'chrome', headless: true } +212ms
cypress:cli verifying Cypress app +0ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +1ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +0ms
cypress:cli checking environment variables +1ms
cypress:cli checking if executable exists /root/.cache/Cypress/4.4.0/Cypress/Cypress +18ms
cypress:cli Binary is executable? : true +3ms
cypress:cli binaryDir is /root/.cache/Cypress/4.4.0/Cypress +1ms
cypress:cli Reading binary package.json from: /root/.cache/Cypress/4.4.0/Cypress/resources/app/package.json +22ms
cypress:cli Found binary version 4.4.0 installed in: /root/.cache/Cypress/4.4.0/Cypress +3ms
cypress:cli could not read binary_state.json file at "/root/.cache/Cypress/4.4.0/binary_state.json" +4ms
cypress:cli {} +0ms
cypress:cli is Verified ? undefined +2ms
cypress:cli running binary verification check 4.4.0 +0ms
25l[13:08:16] Verifying Cypress can run /root/.cache/Cypress/4.4.0/Cypress [started]
cypress:cli clearing out the verified version +4ms
cypress:cli undefined DISPLAY environment variable +0ms
cypress:cli Cypress will spawn its own Xvfb +0ms
cypress:cli needs Xvfb? true +6ms
cypress:cli Starting Xvfb +1ms
cypress:cli disabling Electron sandbox +41ms
cypress:cli running smoke test +1ms
cypress:cli using Cypress executable /root/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
cypress:cli smoke test command: /root/.cache/Cypress/4.4.0/Cypress/Cypress --no-sandbox --smoke-test --ping=2 +0ms
cypress:cli smoke test timeout 30000 ms +0ms
cypress:cli smoke test stdout "It looks like you are running the Cypress binary directly.
This is not the recommended approach, and Cypress may not work correctly.
Please install the 'cypress' NPM package and follow the instructions here:
https://on.cypress.io/installing-cypress
2" +11s
cypress:cli Stopping Xvfb +11s
cypress:cli write verified: true +44ms
cypress:cli could not read binary_state.json file at "/root/.cache/Cypress/4.4.0/binary_state.json" +11s
[13:08:27] Verifying Cypress can run /root/.cache/Cypress/4.4.0/Cypress [completed]
25h cypress:cli:run processing run options { browser: 'chrome', headless: true, key: null, spec: null, reporter: null, reporterOptions: null, project: '/opt/src/app' } +0ms
cypress:cli:run --key is not set, looking up environment variable CYPRESS_RECORD_KEY +1ms
cypress:cli:run run to spawn.start args ["--run-project","/opt/src/app","--browser","chrome","--headed",false] +0ms
cypress:cli undefined DISPLAY environment variable +49ms
cypress:cli Cypress will spawn its own Xvfb +0ms
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +11s
cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable +0ms
cypress:cli using environment variable CYPRESS_CACHE_FOLDER /root/.cache/Cypress +6ms
cypress:cli needs to start own Xvfb? true +0ms
cypress:cli Starting Xvfb +2ms
cypress:cli spawning, should retry on display problem? false +18ms
cypress:cli passing DISPLAY :99 +7ms
cypress:cli spawning Cypress with executable: /root/.cache/Cypress/4.4.0/Cypress/Cypress +0ms
cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', false, '--cwd', '/opt/src/app' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] } +0ms
cypress:cli piping child STDERR to process STDERR +4ms
cypress:ts Running without ts-node hook in environment "production" +0ms
cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers +0ms
cypress:server:util:node_options NODE_OPTIONS check passed, not forking { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy' } +0ms
cypress:server:util:node_options restoring NODE_OPTIONS { NODE_OPTIONS: '--max-http-header-size=1048576 --http-parser=legacy', ORIGINAL_NODE_OPTIONS: undefined } +2ms
cypress:server:cypress starting cypress with argv [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] +0ms
cypress:server:args argv array: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] +0ms
cypress:server:args argv parsed: { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true } +6ms
cypress:server:util:proxy found proxy environment variables { npm_config_proxy: '', npm_config_https_proxy: '' } +0ms
cypress:server:args options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {} } +2ms
cypress:server:args argv options: { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +0ms
cypress:server:cypress from argv [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/src/app', '--browser', 'chrome', '--headed', 'false', '--cwd', '/opt/src/app' ] got options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +11ms
cypress:server:cypress scaling electron app in headless mode +0ms
cypress:server:appdata path: /root/.config/Cypress/cy/production +477ms
cypress:server:cypress starting in mode run with options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +99ms
cypress:server:cypress running Electron currently +1ms
cypress:server:appdata path: /root/.config/Cypress/cy/production +1s
cypress:server:appdata path: /root/.config/Cypress/cy/production/cache +7ms
cypress:server:video using ffmpeg from /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer/linux-x64/ffmpeg +0ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
cypress:server:util:process_profiler โ (index) โ group โ processCount โ pids โ cpuPercent โ meanCpuPercent โ memRssMb โ meanMemRssMb โ maxMemRssMb โ
cypress:server:util:process_profiler โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
cypress:server:util:process_profiler โ 0 โ 'cypress' โ 1 โ '312' โ 0 โ 0 โ 161.12 โ 161.12 โ 161.12 โ
cypress:server:util:process_profiler โ 1 โ 'electron-shared' โ 1 โ '320' โ 0 โ 0 โ 39.89 โ 39.89 โ 39.89 โ
cypress:server:util:process_profiler โ 2 โ 'other' โ 2 โ '461, 462' โ 0 โ 0 โ 3.43 โ 3.43 โ 3.43 โ
cypress:server:util:process_profiler โ 3 โ 'TOTAL' โ 4 โ '-' โ 0 โ 0 โ 204.45 โ 204.45 โ 204.45 โ
cypress:server:util:process_profiler โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ +0ms
cypress:server:run run mode ready with options { _: [ '/root/.cache/Cypress/4.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/src/app', browser: 'chrome', headed: false, cwd: '/opt/src/app', invokedFromCli: true, config: {}, projectRoot: '/opt/src/app', run: true } +0ms
cypress:server:browsers getAllBrowsersWith { nameOrPath: undefined } +0ms
cypress:server:browsers:utils getBrowsers +0ms
cypress:launcher detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, profile: true, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ] }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, profile: true, binary: [ 'chromium-browser', 'chromium' ] }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, profile: true, binary: 'google-chrome-canary' }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, profile: true, binary: 'firefox' }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, profile: true, binary: [ 'firefox-developer-edition', 'firefox' ] }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, profile: true, binary: [ 'firefox-nightly', 'firefox-trunk' ] }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, profile: true, binary: 'edge' }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, profile: true, binary: 'edge-canary' }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, profile: true, binary: 'edge-beta' }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, profile: true, binary: 'edge-dev' } ] +0ms
cypress:launcher checking one browser chrome +266ms
cypress:launcher looking up chrome on linux platform +3ms
cypress:launcher finding version string using command "google-chrome --version" +0ms
cypress:launcher checking one browser chrome +1s
cypress:launcher looking up chrome on linux platform +0ms
cypress:launcher finding version string using command "chrome --version" +0ms
cypress:launcher checking one browser chrome +2s
cypress:launcher looking up chrome on linux platform +12ms
cypress:launcher finding version string using command "google-chrome-stable --version" +5ms
cypress:launcher Received error detecting browser binary: "chrome" with error: Command failed with ENOENT: chrome --version
spawn chrome ENOENT +11s
cypress:launcher browser chrome not installed +8ms
cypress:launcher stdout: "Google Chrome 80.0.3987.116" +147ms
cypress:launcher stdout: "Google Chrome 80.0.3987.116" +1ms
cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"80.0.3987.116","path":"google-chrome"} +0ms
cypress:launcher setting major version for {"name":"chrome","family":"chromium","channel":"stable","displayName":"Chrome","version":"80.0.3987.116","path":"google-chrome-stable"} +1ms
cypress:launcher browser chrome version 80.0.3987.116 major version 80 +1ms
cypress:launcher browser chrome version 80.0.3987.116 major version 80 +0ms
cypress:launcher checking one browser chromium +21ms
cypress:launcher looking up chromium on linux platform +0ms
cypress:launcher finding version string using command "chromium-browser --version" +0ms
cypress:launcher checking one browser chromium +117ms
cypress:launcher looking up chromium on linux platform +1ms
cypress:launcher finding version string using command "chromium --version" +1ms
cypress:launcher Received error detecting browser binary: "chromium" with error: Command failed with ENOENT: chromium --version
spawn chromium ENOENT +97ms
cypress:launcher Received error detecting browser binary: "chromium-browser" with error: Command failed with ENOENT: chromium-browser --version
spawn chromium-browser ENOENT +0ms
cypress:launcher browser chromium not installed +0ms
cypress:launcher browser chromium not installed +0ms
cypress:launcher checking one browser chrome +3ms
cypress:launcher looking up chrome on linux platform +0ms
cypress:launcher finding version string using command "google-chrome-canary --version" +0ms
cypress:launcher Received error detecting browser binary: "google-chrome-canary" with error: Command failed with ENOENT: google-chrome-canary --version
spawn google-chrome-canary ENOENT +166ms
cypress:launcher browser chrome not installed +3ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
cypress:server:util:process_profiler โ (index) โ group โ processCount โ pids โ cpuPercent โ meanCpuPercent โ memRssMb โ meanMemRssMb โ maxMemRssMb โ
cypress:server:util:process_profiler โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
cypress:server:util:process_profiler โ 0 โ 'cypress' โ 1 โ '312' โ 23.02 โ 11.51 โ 190.68 โ 175.9 โ 190.68 โ
cypress:server:util:process_profiler โ 1 โ 'electron-shared' โ 2 โ '320, 496' โ 0 โ 0 โ 39.86 โ 39.87 โ 39.89 โ
cypress:server:util:process_profiler โ 2 โ 'other' โ 4 โ '497, 499, 530, 531' โ 59.4 โ 29.7 โ 3.32 โ 3.38 โ 3.43 โ
cypress:server:util:process_profiler โ 3 โ 'TOTAL' โ 7 โ '-' โ 82.42 โ 41.21 โ 233.86 โ 219.16 โ 233.86 โ
cypress:server:util:process_profiler โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ +16s
cypress:launcher checking one browser firefox +5ms
cypress:launcher looking up firefox on linux platform +0ms
cypress:launcher finding version string using command "firefox --version" +0ms
cypress:launcher stdout: "Mozilla Firefox 74.0" +2s
cypress:launcher setting major version for {"name":"firefox","family":"firefox","channel":"stable","displayName":"Firefox","version":"74.0","path":"firefox","info":"Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue)."} +650ms
cypress:launcher browser firefox version 74.0 major version 74 +201ms
cypress:launcher checking one browser firefox +810ms
cypress:launcher looking up firefox on linux platform +583ms
cypress:launcher finding version string using command "firefox-developer-edition --version" +1s
cypress:launcher checking one browser firefox +1m
cypress:launcher looking up firefox on linux platform +19ms
cypress:launcher finding version string using command "firefox --version" +0ms
cypress:launcher Received error detecting browser binary: "firefox-developer-edition" with error: Command failed with ENOENT: firefox-developer-edition --version
spawn firefox-developer-edition ENOENT +2s
cypress:launcher browser firefox not installed +1ms
cypress:launcher stdout: "Mozilla Firefox 74.0" +229ms
cypress:launcher Could not extract version from stdout using regex: { stdout: 'Mozilla Firefox 74.0', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m } +1ms
cypress:launcher Received error detecting browser binary: "firefox" with error: Browser not installed: firefox +0ms
cypress:launcher browser firefox not installed +0ms
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
cypress:server:util:process_profiler โ (index) โ group โ processCount โ pids โ cpuPercent โ meanCpuPercent โ memRssMb โ meanMemRssMb โ maxMemRssMb โ
cypress:server:util:process_profiler โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
cypress:server:util:process_profiler โ 0 โ 'cypress' โ 1 โ '312' โ 18.39 โ 13.8 โ 179.34 โ 177.05 โ 190.68 โ
cypress:server:util:process_profiler โ 1 โ 'electron-shared' โ 3 โ '320, 496, 533' โ 1.09 โ 0.36 โ 44.86 โ 41.54 โ 44.86 โ
cypress:server:util:process_profiler โ 2 โ 'other' โ 3 โ '567, 569, 570' โ 0 โ 19.8 โ 15.4 โ 7.38 โ 15.4 โ
cypress:server:util:process_profiler โ 3 โ 'TOTAL' โ 7 โ '-' โ 19.48 โ 33.97 โ 239.59 โ 225.97 โ 239.59 โ
cypress:server:util:process_profiler โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ +1m
cypress:launcher checking one browser firefox +4ms
cypress:launcher looking up firefox on linux platform +1ms
cypress:launcher finding version string using command "firefox-nightly --version" +0ms
cypress:launcher checking one browser firefox +14ms
cypress:launcher looking up firefox on linux platform +1ms
cypress:launcher finding version string using command "firefox-trunk --version" +0ms
cypress:launcher Received error detecting browser binary: "firefox-trunk" with error: Command failed with ENOENT: firefox-trunk --version
spawn firefox-trunk ENOENT +16ms
cypress:launcher Received error detecting browser binary: "firefox-nightly" with error: Command failed with ENOENT: firefox-nightly --version
spawn firefox-nightly ENOENT +1ms
cypress:launcher browser firefox not installed +0ms
cypress:launcher browser firefox not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge --version" +0ms
cypress:launcher Received error detecting browser binary: "edge" with error: Command failed with ENOENT: edge --version
spawn edge ENOENT +14ms
cypress:launcher browser edge not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-canary --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-canary" with error: Command failed with ENOENT: edge-canary --version
spawn edge-canary ENOENT +15ms
cypress:launcher browser edge not installed +1ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-beta --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-beta" with error: Command failed with ENOENT: edge-beta --version
spawn edge-beta ENOENT +16ms
cypress:launcher browser edge not installed +0ms
cypress:launcher checking one browser edge +0ms
cypress:launcher looking up edge on linux platform +0ms
cypress:launcher finding version string using command "edge-dev --version" +0ms
cypress:launcher Received error detecting browser binary: "edge-dev" with error: Command failed with ENOENT: edge-dev --version
spawn edge-dev ENOENT +18ms
cypress:launcher browser edge not installed +0ms
cypress:server:browsers:utils found browsers { browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 } ] } +2m
cypress:server:browsers:utils adding Electron browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } +1ms
cypress:server:run found all system browsers [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] +2m
cypress:server:open_project open_project create /opt/src/app +0ms
cypress:server:open_project and options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function] } +21ms
cypress:server:project Project created /opt/src/app +0ms
cypress:server:open_project opening project /opt/src/app +2ms
cypress:server:open_project and options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser] } +0ms
cypress:server:project opening project instance /opt/src/app +1ms
cypress:server:project project open options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser] } +1ms
cypress:server:project project options { socketId: 'edxrj', morgan: false, report: true, isTextTerminal: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], onWarning: [Function: onWarning], onError: [Function], onReloadBrowser: [Function: onReloadBrowser], onFocusTests: [Function: onFocusTests], onSettingsChanged: false } +0ms
cypress:server:config setting config object +0ms
cypress:server:config config is { defaultCommandTimeout: 10000, requestTimeout: 10000 } +0ms
cypress:server:config merged config with options, got { defaultCommandTimeout: 10000, requestTimeout: 10000, envFile: {}, projectRoot: '/opt/src/app', projectName: 'app', morgan: false, isTextTerminal: true, socketId: 'edxrj', report: true, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] } +0ms
cypress:server:config using CYPRESS_INTERNAL_ENV production +15ms
cypress:server:config resolved config is { value: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ], from: 'default' } +1ms
cypress:server:validation browsers [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '80.0.3987.116', path: 'google-chrome', majorVersion: 80 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '74.0', path: 'firefox', info: 'Firefox support is currently in beta! You can help us continue to improve the Cypress + Firefox experience by [reporting any issues you find](https://on.cypress.io/new-issue).', majorVersion: 74 }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '80.0.3987.158', path: '', majorVersion: 80, info: 'Electron is the default browser that comes with Cypress. This is the default browser that runs in headless mode. Selecting this browser is useful when debugging. The version number indicates the underlying Chromium version that Electron uses.' } ] +0ms
cypress:server:config setting support file /opt/src/app/cypress/support +4ms
cypress:server:config for project root /opt/src/app +1ms
cypress:server:config set support folder /opt/src/app/cypress/support +1ms
cypress:server:config setting plugins file /opt/src/app/cypress/plugins +1ms
cypress:server:config for project root /opt/src/app +0ms
cypress:server:config set pluginsFile to /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:config set scaffold paths +1ms
cypress:server:scaffold scaffolded files ["cypress/integration/examples/actions.spec.js","cypress/integration/examples/aliasing.spec.js","cypress/integration/examples/assertions.spec.js","cypress/integration/examples/connectors.spec.js","cypress/integration/examples/cookies.spec.js","cypress/integration/examples/cypress_api.spec.js","cypress/integration/examples/files.spec.js","cypress/integration/examples/local_storage.spec.js","cypress/integration/examples/location.spec.js","cypress/integration/examples/misc.spec.js","cypress/integration/examples/navigation.spec.js","cypress/integration/examples/network_requests.spec.js","cypress/integration/examples/querying.spec.js","cypress/integration/examples/spies_stubs_clocks.spec.js","cypress/integration/examples/traversal.spec.js","cypress/integration/examples/utilities.spec.js","cypress/integration/examples/viewport.spec.js","cypress/integration/examples/waiting.spec.js","cypress/integration/examples/window.spec.js","cypress/fixtures/example.json","cypress/support/commands.js","cypress/support/index.js","cypress/plugins/index.js"] +0ms
cypress:server:config got file tree +6ms
cypress:server:project get saved state +46ms
cypress:server:saved_state noop saved state +0ms
cypress:server:project scaffolding with plugins file /opt/src/app/cypress/plugins/index.js +4ms
cypress:server:scaffold plugins folder /opt/src/app/cypress/plugins +7ms
cypress:server:scaffold verify scaffolding in /opt/src/app/cypress/plugins +0ms
cypress:server:scaffold folder /opt/src/app/cypress/plugins already exists +1ms
cypress:server:project typescript path: /opt/src/app/node_modules/typescript/lib/typescript.js +10ms
cypress:server:plugins plugins.init /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:plugins forking to run /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js +0ms
cypress:server:plugins:child pluginsFile: /opt/src/app/cypress/plugins/index.js +0ms
cypress:server:plugins:child typescript path: /root/.cache/Cypress/4.4.0/Cypress/resources/app/packages/server/node_modules/typescript/lib/typescript.js +6s
cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
cypress:server:util:process_profiler โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
cypress:server:util:process_profiler โ (index) โ group โ processCount โ pids โ cpuPercent โ meanCpuPercent โ memRssMb โ meanMemRssMb โ maxMemRssMb โ
cypress:server:util:process_profiler โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
cypress:server:util:process_profiler โ 0 โ 'cypress' โ 1 โ '312' โ 7.38 โ 12.2 โ 163.08 โ 173.55 โ 190.68 โ
cypress:server:util:process_profiler โ 1 โ 'electron-shared' โ 3 โ '320, 496, 533' โ 0 โ 0.27 โ 42.48 โ 41.77 โ 44.86 โ
cypress:server:util:process_profiler โ 2 โ 'plugin' โ 1 โ '599' โ 0 โ 0 โ 32.05 โ 32.05 โ 32.05 โ
cypress:server:util:process_profiler โ 3 โ 'other' โ 2 โ '607, 608' โ 0 โ 14.85 โ 2.11 โ 6.06 โ 15.4 โ
cypress:server:util:process_profiler โ 4 โ 'TOTAL' โ 7 โ '-' โ 7.38 โ 27.32 โ 239.71 โ 229.4 โ 239.71 โ
cypress:server:util:process_profiler โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ +14s
Cypress should not hang with no output or explanation as to why it's stopped.
Cannot reproduce locally.
Cypress: v4.4.0
Docker base image: cypress/included:4.4.1
Browser: Chrome
Can you provide any of your custom setup? Plugins files, support files, cypress.json, any cypress plugins your using?
Also, which CI are you running this within?
Anything that can be isolated to what would be different on the CI env versus locally would be helpful. There's not much we can do without some way to reproduce this.
We're using Concourse CI.
Here's the plugins/index.js file:
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.name === 'chrome') {
launchOptions.args.push('--disable-dev-shm-usage')
return launchOptions
}
return launchOptions
})
}
And cypress.json:
{
"defaultCommandTimeout": 10000,
"requestTimeout": 10000
}
I can't provide a reproducible set up at the moment. But we'll try and get a minimal version running and will share that if we can reproduce.
@annaet are you using file-based fixtures?
We have seen a lot of flaky test runs lately using Cypress on our CI using docker container. Running the tests locally works all the time.
After many trial and error it looks like, Cypress passes on our CI after skipping the tests which uses file-based fixtures. It also looks like, the tests are passing when simply setting the data in a const directly in the test instead of loading the fixture.
# cypress/fixtures/user.json
{
"name": "John Doe",
"email": "[email protected]",
"password": "password"
}
describe('User test', function() {
beforeEach(() => {
cy.fixture('user').as('user');
});
it('test', () => {
cy.visit('/');
cy.get('@user').then((user) => {
cy.get('input[name=email]').type(user.email);
cy.get('input[name=password]').type(user.password);
});
});
})
UPDATE Sorry, looks like the flakiness has returned...
Yes we are using fixtures in the tests. I'll try switching to consts and see what happens.
There's no change when all fixtures are removed, so that's unlikely to be the problem here.
We have now finally managed to get rid of the flaky test runs in CI. Unfortunately I can't tell exactly how. We did a bunch of changes to our test setup, but for the last 2 days, it has been running without a single hung test run.
I'll try to make a list (on monday) of changes we did between the failing tests and the good state we have now, and then you can see if it can help you @annaet
That would be brilliant - thanks @danieljuhl
We have managed to recreate the issue using a basic Create React App with Cypress installed. It's just using the default tests that come with Cypress and still stalls on the same line before running any of the tests.
This confirms to me that it's an issue with using Cypress on the Concourse CI and not with our application. Have you got any examples of usage on Concourse?
@annaet we faced the same nasty bug and we managed to solve it by adding shm_size: 2GB to the cypress service inside the docker composer. If u are using docker run ... instead of docker-composer then u can do something like docker run --shm_size=2GB .....
Let me know if that helped you to solve your issue.
I am facing the same issue. I tried smh_size to 2 GB, disable dev shm . It works perfectly on my mac and docker, but does not work on jenkins and docker.
I have downgraded to 3.2.0 and it works now.
I filed https://github.com/cypress-io/cypress/issues/8206 recently, which is pretty similar. I've also tried following the Cypress docs with respect to Docker configuration and memory management and nothing seems to help.
We've now managed to get Cypress running successfully on Concourse.
Turns out we were running with memory constraints that we didn't know about. Once those were removed it worked perfectly.
We've now managed to get Cypress running successfully on Concourse.
Turns out we were running with memory constraints that we didn't know about. Once those were removed it worked perfectly.
Can you share what type of memory constraints?
Most helpful comment
We have managed to recreate the issue using a basic Create React App with Cypress installed. It's just using the default tests that come with Cypress and still stalls on the same line before running any of the tests.
This confirms to me that it's an issue with using Cypress on the Concourse CI and not with our application. Have you got any examples of usage on Concourse?