cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.01k stars 3.18k forks source link

Azure pipeline + Docker + Cypress v10.3.0 #22590

Closed stychu closed 2 years ago

stychu commented 2 years ago

Current behavior

After upgrading from version 8.1 to 10.3.0 Cypress doesn't work under Azure pipeline. Locally all seems to work. Tests running both local on the machine and within the docker but once I want to run the docker setup in Azure pipelines I get some errors and process hangs infinitely until it reaches the timeout.

Docker image: cypress/base:14.17.0 Cypress: v10.3.0

[...:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 407: Permission denied (13)

[...:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)

2022-06-29T11:55:24.9645434Z [202:0629/115524.951182:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
2022-06-29T11:55:24.9668177Z [202:0629/115524.954129:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

DEBUG=cypress:*,-cypress:server:util:process_profiler npx cypress run

After upgrading from version 8.1 to 10.3.0 Cypress doesn't work under Azure pipeline. Locally all seems to work. Tests running both local on the machine and within the docker but once I want to run the docker setup in Azure pipelines I get some permission denied errors and process hangs infinitely until it reaches the timeout.

Docker image: cypress/base:14.17.0 Cypress: v10.3.0

[...:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 407: Permission denied (13)

[...:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)

DEBUG=cypress:*,-cypress:server:util:process_profiler npx cypress run

2022-06-29T11:55:24.0337379Z 2022-06-29T11:55:23.572Z cypress:cli Cypress will spawn its own Xvfb
2022-06-29T11:55:24.0338498Z 2022-06-29T11:55:23.572Z cypress:cli needs to start own Xvfb? true
2022-06-29T11:55:24.0340910Z 2022-06-29T11:55:23.573Z cypress:cli Starting Xvfb
2022-06-29T11:55:24.0342031Z 2022-06-29T11:55:23.590Z cypress:cli spawning, should retry on display problem? false
2022-06-29T11:55:24.0343321Z 2022-06-29T11:55:23.597Z cypress:cli passing DISPLAY :99
2022-06-29T11:55:24.0345313Z 2022-06-29T11:55:23.597Z cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/opt/cypress-tests', '--config', 'video=false', '--spec', 'cypress/tests/integration/**/*.ts', '--cwd', '/opt/cypress-tests', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '14.17.0' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] }
2022-06-29T11:55:24.0347902Z 2022-06-29T11:55:23.597Z cypress:cli spawning Cypress with executable: /root/.cache/Cypress/10.3.0/Cypress/Cypress
2022-06-29T11:55:24.0349032Z 2022-06-29T11:55:23.601Z cypress:cli piping child STDERR to process STDERR
2022-06-29T11:55:24.0350445Z 2022-06-29T11:55:23.755Z cypress:ts registering ts-node on directory undefined
2022-06-29T11:55:24.0351248Z 2022-06-29T11:55:23.814Z cypress:ts Running without ts-node hook in environment "production"
2022-06-29T11:55:24.6987590Z 2022-06-29T11:55:24.685Z cypress:server:appdata path: /root/.config/Cypress/cy/production/cache
2022-06-29T11:55:24.7533593Z 2022-06-29T11:55:24.740Z cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers
2022-06-29T11:55:24.7629456Z 2022-06-29T11:55:24.750Z cypress:server:cypress starting cypress with argv [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress', '--no-sandbox', '--', '--run-project', '/opt/cypress-tests', '--config', 'video=false', '--spec', 'cypress/tests/integration/**/*.ts', '--cwd', '/opt/cypress-tests', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '14.17.0' ]
2022-06-29T11:55:24.7638719Z 2022-06-29T11:55:24.750Z cypress:server:args argv array: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/cypress-tests', '--config', 'video=false', '--spec', 'cypress/tests/integration/**/*.ts', '--cwd', '/opt/cypress-tests', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '14.17.0' ]
2022-06-29T11:55:24.7651164Z 2022-06-29T11:55:24.752Z cypress:server:args parsed argv options { options: { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, 'run-project': '/opt/cypress-tests', runProject: '/opt/cypress-tests', config: 'video=false', spec: 'cypress/tests/integration/**/*.ts', cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0' } }
2022-06-29T11:55:24.7673614Z 2022-06-29T11:55:24.754Z cypress:server:args argv parsed: { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: 'video=false', spec: 'cypress/tests/integration/**/*.ts', cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true }
2022-06-29T11:55:24.7682917Z 2022-06-29T11:55:24.755Z cypress:server:util:proxy found proxy environment variables { npm_config_proxy: '', npm_config_https_proxy: '', npm_config_noproxy: '' }
2022-06-29T11:55:24.7697813Z 2022-06-29T11:55:24.756Z cypress:server:args options { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true }
2022-06-29T11:55:24.7701114Z 2022-06-29T11:55:24.756Z cypress:server:args argv options: { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true, projectRoot: '/opt/cypress-tests' }
2022-06-29T11:55:24.7705059Z 2022-06-29T11:55:24.757Z cypress:server:cypress from argv [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/opt/cypress-tests', '--config', 'video=false', '--spec', 'cypress/tests/integration/**/*.ts', '--cwd', '/opt/cypress-tests', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '14.17.0' ] got options { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true, projectRoot: '/opt/cypress-tests' }
2022-06-29T11:55:24.7707427Z 2022-06-29T11:55:24.757Z cypress:server:cypress scaling electron app in headless mode
2022-06-29T11:55:24.9377638Z [31:0629/115524.924037:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)
2022-06-29T11:55:24.9379111Z 2022-06-29T11:55:24.925Z cypress:server:appdata path: /root/.config/Cypress/cy/production
2022-06-29T11:55:24.9541178Z 2022-06-29T11:55:24.933Z cypress:server:cypress starting in mode run with options { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true, projectRoot: '/opt/cypress-tests' }
2022-06-29T11:55:24.9542605Z 2022-06-29T11:55:24.933Z cypress:server:cypress running Electron currently
2022-06-29T11:55:24.9645434Z [202:0629/115524.951182:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
2022-06-29T11:55:24.9668177Z [202:0629/115524.954129:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
2022-06-29T11:55:25.6102140Z 2022-06-29T11:55:25.580Z cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.cloudViewer
2022-06-29T11:55:25.6103806Z 2022-06-29T11:55:25.580Z cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for Query.versions
2022-06-29T11:55:25.6105710Z 2022-06-29T11:55:25.581Z cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for CurrentProject.cloudProject
2022-06-29T11:55:25.6107565Z 2022-06-29T11:55:25.584Z cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for RemoteFetchableCloudProjectResult.data
2022-06-29T11:55:25.6109645Z 2022-06-29T11:55:25.584Z cypress:graphql:nexusDeferIfNotLoadedPlugin Adding nexusDeferIfNotLoadedPlugin for RemoteFetchableCloudProjectSpecResult.data
2022-06-29T11:55:25.6828193Z 2022-06-29T11:55:25.665Z cypress:server:browsers:utils getBrowsers
2022-06-29T11:55:25.6835031Z 2022-06-29T11:55:25.666Z cypress:launcher:detect detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 } ]
2022-06-29T11:55:25.6840591Z 2022-06-29T11:55:25.668Z cypress:scaffold-config:detect Detected cypress.config.ts - using TS
2022-06-29T11:55:25.6842442Z 2022-06-29T11:55:25.671Z cypress:lifecycle:ProjectConfigIpc fork child process { CHILD_PROCESS_FILE_PATH: '/root/.cache/Cypress/10.3.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/require_async_child.js', configProcessArgs: [ '--projectRoot', '/opt/cypress-tests', '--file', '/opt/cypress-tests/cypress.config.ts' ], childOptions: { stdio: 'pipe', cwd: '/opt/cypress-tests', execPath: '/usr/local/bin/node' } }
2022-06-29T11:55:25.7269432Z 2022-06-29T11:55:25.714Z cypress:lifecycle:ProjectConfigIpc trigger the load of the file
2022-06-29T11:55:26.1224259Z 2022-06-29T11:55:25.883Z cypress:server:video using ffmpeg from /root/.cache/Cypress/10.3.0/Cypress/resources/app/node_modules/@ffmpeg-installer/linux-x64/ffmpeg
2022-06-29T11:55:26.1226283Z 2022-06-29T11:55:25.797Z cypress:server:register-ts-node executing register_ts_node with args { _: [ '/usr/local/bin/node', '/root/.cache/Cypress/10.3.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/require_async_child.js' ], projectRoot: '/opt/cypress-tests', file: '/opt/cypress-tests/cypress.config.ts' }
2022-06-29T11:55:26.1227989Z 2022-06-29T11:55:25.797Z cypress:server:register-ts-node registering ts-node for projectRoot: /opt/cypress-tests and file: /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.1229187Z 2022-06-29T11:55:25.798Z cypress:server:ts-node projectRoot path: /opt/cypress-tests
2022-06-29T11:55:26.1230244Z 2022-06-29T11:55:25.798Z cypress:server:ts-node registeredFile: /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.1231332Z 2022-06-29T11:55:25.798Z cypress:server:plugins resolving typescript with projectRoot '/opt/cypress-tests'
2022-06-29T11:55:26.1232488Z 2022-06-29T11:55:25.798Z cypress:server:plugins resolved typescript /opt/cypress-tests/node_modules/typescript/lib/typescript.js
2022-06-29T11:55:26.1233681Z 2022-06-29T11:55:25.798Z cypress:server:ts-node typescript path: /opt/cypress-tests/node_modules/typescript/lib/typescript.js
2022-06-29T11:55:26.1235127Z 2022-06-29T11:55:26.018Z cypress:server:ts-node registering project TS with options { compiler: '/opt/cypress-tests/node_modules/typescript/lib/typescript.js', compilerOptions: { module: 'commonjs' }, dir: '/opt/cypress-tests', transpileOnly: true }
2022-06-29T11:55:26.1236325Z Couldn't find tsconfig.json. tsconfig-paths will be skipped
2022-06-29T11:55:26.1237452Z 2022-06-29T11:55:26.084Z cypress:server:browsers:utils found browsers { browsers: [] }
2022-06-29T11:55:26.1239373Z 2022-06-29T11:55:26.084Z cypress:server:browsers:utils adding Electron browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.' }
2022-06-29T11:55:26.1241600Z 2022-06-29T11:55:26.090Z cypress:lifecycle:child:run_require_async_child:218 configFile: /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.1242966Z 2022-06-29T11:55:26.090Z cypress:lifecycle:child:run_require_async_child:218 projectRoot: /opt/cypress-tests
2022-06-29T11:55:26.1244167Z 2022-06-29T11:55:26.094Z cypress:lifecycle:child:run_require_async_child:218 try loading /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.1245320Z 2022-06-29T11:55:26.094Z cypress:lifecycle:child:run_require_async_child:218 Loading file /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.3541345Z 2022-06-29T11:55:26.299Z cypress:cli exporting Cypress module interface
2022-06-29T11:55:26.7576971Z 2022-06-29T11:55:26.743Z cypress:lifecycle:child:run_require_async_child:218 loaded config file /opt/cypress-tests/cypress.config.ts
2022-06-29T11:55:26.7579128Z 2022-06-29T11:55:26.744Z cypress:lifecycle:ProjectConfigIpc loadConfig:reply
2022-06-29T11:55:26.7580638Z 2022-06-29T11:55:26.744Z cypress:lifecycle:ProjectConfigManager config is loaded for file /opt/cypress-tests/cypress.config.ts null
2022-06-29T11:55:26.7581710Z 2022-06-29T11:55:26.744Z cypress:config:browser validating configuration
2022-06-29T11:55:26.7597402Z 2022-06-29T11:55:26.747Z cypress:config:browser validating configuration
2022-06-29T11:55:26.7623594Z 2022-06-29T11:55:26.748Z cypress:server:config setting config object { cliConfig: { video: false }, projectName: 'cypress-tests', projectRoot: '/opt/cypress-tests', config: { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: [Object], mochaJunitReporterReporterOptions: [Object] }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, envFile: {}, options: { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true, projectRoot: '/opt/cypress-tests', socketId: '3fvty1308f', isTextTerminal: true, browser: 'electron', quiet: false, morgan: false, report: true, testingType: 'e2e', configFile: 'cypress.config.ts' } }
2022-06-29T11:55:26.7630696Z 2022-06-29T11:55:26.748Z cypress:server:config config is { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/reports/mocha', overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/results-[hash].xml' } }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }
2022-06-29T11:55:26.7644249Z 2022-06-29T11:55:26.749Z cypress:server:config merged config with options, got { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/reports/mocha', overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/results-[hash].xml' } }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', envFile: {}, projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests', rawJson: { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: [Object], mochaJunitReporterReporterOptions: [Object] }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', envFile: {}, projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests' }, configFile: 'cypress.config.ts', morgan: false, isTextTerminal: true, socketId: '3fvty1308f', report: true }
2022-06-29T11:55:26.7673916Z 2022-06-29T11:55:26.754Z cypress:server:config using CYPRESS_INTERNAL_ENV production
2022-06-29T11:55:26.7675434Z 2022-06-29T11:55:26.755Z cypress:server:config resolved config is { value: [], from: 'default' }
2022-06-29T11:55:26.7676775Z 2022-06-29T11:55:26.755Z cypress:config:browser validating configuration
2022-06-29T11:55:26.7678079Z 2022-06-29T11:55:26.755Z cypress:server:validation clientCerts: []
2022-06-29T11:55:26.7693668Z 2022-06-29T11:55:26.756Z cypress:server:config validate that there is no breaking config options before setupNodeEvents
2022-06-29T11:55:26.7708999Z 2022-06-29T11:55:26.744Z cypress:lifecycle:child:run_require_async_child:218 loaded config from /opt/cypress-tests/cypress.config.ts { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/reports/mocha', overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/results-[hash].xml' } }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: [Function (anonymous)], baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' } }
2022-06-29T11:55:27.0352931Z 2022-06-29T11:55:27.004Z cypress:server:validation browsers [ { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.' } ]
2022-06-29T11:55:27.0355474Z 2022-06-29T11:55:27.004Z cypress:server:validation clientCerts: []
2022-06-29T11:55:27.0592506Z 2022-06-29T11:55:27.020Z cypress:data-context browser found to set electron
2022-06-29T11:55:27.0594305Z 2022-06-29T11:55:27.022Z cypress:server:run run mode ready with options { _: [ '/root/.cache/Cypress/10.3.0/Cypress/Cypress' ], sandbox: false, runProject: '/opt/cypress-tests', config: { video: false }, spec: [ '/opt/cypress-tests/cypress/tests/integration/**/*.ts' ], cwd: '/opt/cypress-tests', userNodePath: '/usr/local/bin/node', userNodeVersion: '14.17.0', invokedFromCli: true, projectRoot: '/opt/cypress-tests', socketId: '3fvty1308f', isTextTerminal: true, browser: 'electron', quiet: false, morgan: false, report: true, testingType: 'e2e' }
2022-06-29T11:55:27.0595798Z 2022-06-29T11:55:27.022Z cypress:server:browsers getAllBrowsersWith { nameOrPath: undefined }
2022-06-29T11:55:27.0596516Z 2022-06-29T11:55:27.022Z cypress:server:browsers:utils getBrowsers
2022-06-29T11:55:27.0602158Z 2022-06-29T11:55:27.022Z cypress:launcher:detect detecting if the following browsers are present [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', versionRegex: /Google Chrome (\S+)/m, binary: [ 'google-chrome', 'chrome', 'google-chrome-stable' ], minSupportedVersion: 64 }, { name: 'chromium', family: 'chromium', channel: 'stable', displayName: 'Chromium', versionRegex: /Chromium (\S+)/m, binary: [ 'chromium-browser', 'chromium' ], minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'beta', displayName: 'Chrome Beta', versionRegex: /Google Chrome (\S+) beta/m, binary: 'google-chrome-beta', minSupportedVersion: 64 }, { name: 'chrome', family: 'chromium', channel: 'canary', displayName: 'Canary', versionRegex: /Google Chrome Canary (\S+)/m, binary: 'google-chrome-canary', minSupportedVersion: 64 }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', versionRegex: /^Mozilla Firefox ([^\sab]+)$/m, binary: 'firefox', minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'dev', displayName: 'Firefox Developer Edition', versionRegex: /^Mozilla Firefox (\S+b\S*)$/m, binary: [ 'firefox-developer-edition', 'firefox' ], minSupportedVersion: 86 }, { name: 'firefox', family: 'firefox', channel: 'nightly', displayName: 'Firefox Nightly', versionRegex: /^Mozilla Firefox (\S+a\S*)$/m, binary: [ 'firefox-nightly', 'firefox-trunk' ], minSupportedVersion: 86 }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', versionRegex: /Microsoft Edge (\S+)/m, binary: [ 'edge', 'microsoft-edge' ], minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'canary', displayName: 'Edge Canary', versionRegex: /Microsoft Edge Canary (\S+)/m, binary: 'edge-canary', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'beta', displayName: 'Edge Beta', versionRegex: /Microsoft Edge Beta (\S+)/m, binary: 'edge-beta', minSupportedVersion: 79 }, { name: 'edge', family: 'chromium', channel: 'dev', displayName: 'Edge Dev', versionRegex: /Microsoft Edge Dev (\S+)/m, binary: [ 'edge-dev', 'microsoft-edge-dev' ], minSupportedVersion: 79 } ]

2022-06-29T11:55:27.2363076Z 2022-06-29T11:55:27.175Z cypress:server:server-base server open
2022-06-29T11:55:27.2363837Z 2022-06-29T11:55:27.181Z cypress:network:client-certificates loaded client certificates for 0 URL(s)
2022-06-29T11:55:27.2364634Z 2022-06-29T11:55:27.184Z cypress:server:server-e2e createServer connecting to server
2022-06-29T11:55:27.2365477Z 2022-06-29T11:55:27.188Z cypress:server:server-base Server listening on  { address: '127.0.0.1', family: 'IPv4', port: 37573 }
2022-06-29T11:55:27.2366317Z 2022-06-29T11:55:27.191Z cypress:server:appdata path: /root/.config/Cypress/cy/production/proxy
2022-06-29T11:55:27.3825856Z 2022-06-29T11:55:27.369Z cypress:https-proxy Created SNI HTTPS Proxy Server { port: 41169 }
2022-06-29T11:55:27.3834071Z 2022-06-29T11:55:27.370Z cypress:server:ensure-url checking that baseUrl is available {
2022-06-29T11:55:27.3835107Z   baseUrl: 'http://app',
2022-06-29T11:55:27.3835494Z   delaysRemaining: [ 3000, 3000, 4000 ],
2022-06-29T11:55:27.3835979Z   retryIntervals: [ 3000, 3000, 4000 ]
2022-06-29T11:55:27.3836415Z }
2022-06-29T11:55:27.3837978Z 2022-06-29T11:55:27.371Z cypress:network:connect beginning getAddress { hostname: 'app', port: 80 }
2022-06-29T11:55:27.3880280Z 2022-06-29T11:55:27.375Z cypress:network:connect got addresses { hostname: 'app', port: 80, addresses: [ { address: '172.29.0.215', family: 4 } ] }
2022-06-29T11:55:27.3900932Z 2022-06-29T11:55:27.377Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.3907235Z 2022-06-29T11:55:27.377Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.4003827Z 2022-06-29T11:55:27.379Z cypress:server:reporter trying to require local reporter with path: /opt/cypress-tests/node_modules/cypress-multi-reporters
2022-06-29T11:55:27.4254453Z Couldn't determine Mocha version
2022-06-29T11:55:27.4278824Z 2022-06-29T11:55:27.415Z cypress:server:saved_state noop saved state
2022-06-29T11:55:27.4637546Z 2022-06-29T11:55:27.416Z cypress:server:project project has config { configFile: '/opt/cypress-tests/cypress.config.ts', testingType: 'e2e', viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/reports/mocha', overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/results-[hash].xml' } }, blockHosts: [ '*google-analytics.com' ], setupNodeEvents: '[Function ]', baseUrl: 'http://app', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests', rawJson: { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: [Object], mochaJunitReporterReporterOptions: [Object] }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', envFile: {}, projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests' }, morgan: false, isTextTerminal: true, socketId: '3fvty1308f', report: true, video: false, animationDistanceThreshold: 5, arch: 'x64', clientCertificates: [], downloadsFolder: '/opt/cypress-tests/cypress/downloads', env: { }, execTimeout: 60000, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalSessionAndOrigin: false, experimentalSourceRewriting: false, fileServerFolder: '/opt/cypress-tests', fixturesFolder: '/opt/cypress-tests/cypress/fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: 37573, projectId: null, redirectionLimit: 20, requestTimeout: 5000, resolvedNodePath: '/usr/local/bin/node', resolvedNodeVersion: '14.17.0', responseTimeout: 30000, retries: { runMode: 0, openMode: 0 }, screenshotsFolder: '/opt/cypress-tests/cypress/screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: '/opt/cypress-tests/cypress/support/e2e.ts', supportFolder: '/opt/cypress-tests/cypress/support', taskTimeout: 60000, trashAssetsBeforeRuns: true, userAgent: null, videoCompression: 32, videosFolder: '/opt/cypress-tests/cypress/videos', viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: undefined, autoOpen: false, browsers: [ { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.' } ], clientRoute: '/__/', cypressBinaryRoot: '/root/.cache/Cypress/10.3.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '10.3.0', xhrRoute: '/xhrs/', cypressEnv: 'production', resolved: { animationDistanceThreshold: { value: 5, from: 'default' }, arch: { value: 'x64', from: 'default' }, baseUrl: { value: 'http://app', from: 'env' }, blockHosts: { value: [Array], from: 'config' }, chromeWebSecurity: { value: false, from: 'config' }, clientCertificates: { value: [], from: 'default' }, defaultCommandTimeout: { value: 8000, from: 'config' }, downloadsFolder: { value: 'cypress/downloads', from: 'default' }, env: { }, execTimeout: { value: 60000, from: 'default' }, experimentalFetchPolyfill: { value: false, from: 'default' }, experimentalInteractiveRunEvents: { value: false, from: 'default' }, experimentalSessionAndOrigin: { value: false, from: 'default' }, experimentalSourceRewriting: { value: false, from: 'default' }, fileServerFolder: { value: '', from: 'default' }, fixturesFolder: { value: 'cypress/fixtures', from: 'default' }, excludeSpecPattern: { value: '*.hot-update.js', from: 'default' }, includeShadowDom: { value: false, from: 'default' }, keystrokeDelay: { value: 0, from: 'default' }, modifyObstructiveCode: { value: true, from: 'default' }, numTestsKeptInMemory: { value: 0, from: 'config' }, platform: { value: 'linux', from: 'default' }, pageLoadTimeout: { value: 60000, from: 'default' }, port: { value: null, from: 'default' }, projectId: { value: null, from: 'default' }, redirectionLimit: { value: 20, from: 'default' }, reporter: { value: 'cypress-multi-reporters', from: 'config' }, reporterOptions: { value: [Object], from: 'config' }, requestTimeout: { value: 5000, from: 'default' }, resolvedNodePath: { value: null, from: 'default' }, resolvedNodeVersion: { value: null, from: 'default' }, responseTimeout: { value: 30000, from: 'default' }, retries: { value: [Object], from: 'default' }, screenshotOnRunFailure: { value: false, from: 'config' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, slowTestThreshold: { value: 10000, from: 'default' }, scrollBehavior: { value: 'top', from: 'default' }, supportFile: { value: 'cypress/support/e2e.{js,jsx,ts,tsx}', from: 'default' }, supportFolder: { value: false, from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, trashAssetsBeforeRuns: { value: true, from: 'default' }, userAgent: { value: null, from: 'default' }, video: { value: false, from: 'cli' }, videoCompression: { value: 32, from: 'default' }, videosFolder: { value: 'cypress/videos', from: 'default' }, videoUploadOnPasses: { value: false, from: 'config' }, viewportHeight: { value: 880, from: 'config' }, viewportWidth: { value: 1000, from: 'default' }, waitForAnimations: { value: true, from: 'default' }, watchForFileChanges: { value: false, from: 'config' }, specPattern: { value: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', from: 'config' }, browsers: { value: [Array], from: 'runtime' }, hosts: { value: null, from: 'default' }, isInteractive: { value: true, from: 'default' }, configFile: { value: '/opt/cypress-tests/cypress.config.ts', from: 'plugin' }, testingType: { value: 'e2e', from: 'plugin' } }, remote: {}, browser: null, specs: [], proxyUrl: 'http://localhost:37573', browserUrl: 'http://app/__/', reporterUrl: 'http://app/__cypress/reporter', xhrUrl: '__cypress/xhrs/', proxyServer: 'http://localhost:37573', state: {} }
2022-06-29T11:55:27.4717770Z 2022-06-29T11:55:27.423Z cypress:server:profilecleaner found 0 root level profile matches: []
2022-06-29T11:55:27.4718785Z 2022-06-29T11:55:27.423Z cypress:server:profilecleaner found 0 profile folders: []
2022-06-29T11:55:27.4720134Z 2022-06-29T11:55:27.424Z cypress:server:profilecleaner found 0 profile folders: []
2022-06-29T11:55:27.4720503Z
2022-06-29T11:55:27.4818178Z ================================================================================
2022-06-29T11:55:27.4818750Z
2022-06-29T11:55:27.4819051Z   (Run Starting)
2022-06-29T11:55:27.4819193Z
2022-06-29T11:55:27.4820883Z 2022-06-29T11:55:27.467Z cypress:server:run formatting Node version. { version: '14.17.0', path: '/usr/local/bin/node' }
2022-06-29T11:55:27.4847184Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-29T11:55:27.4852661Z   │ Cypress:        10.3.0                                                                         │
2022-06-29T11:55:27.4854066Z   │ Browser:        Electron 100 (headless)                                                        │
2022-06-29T11:55:27.4854755Z   │ Node Version:   v14.17.0 (/usr/local/bin/node)                                                 │
2022-06-29T11:55:27.4855525Z   │ Specs:          12 found (abc.cy.ts, ...)                                                                             │
2022-06-29T11:55:27.4859870Z   │ Searched:       cypress/tests/integration/**/*.ts                                              │
2022-06-29T11:55:27.4860566Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-29T11:55:27.4860946Z
2022-06-29T11:55:27.4861691Z 2022-06-29T11:55:27.472Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:run', isRegistered: true }
2022-06-29T11:55:27.4899153Z 2022-06-29T11:55:27.473Z cypress:lifecycle:EventRegistrar execute plugin event 'before:run' Node 'v16.13.2' with args: { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false }, config: { configFile: '/opt/cypress-tests/cypress.config.ts', testingType: 'e2e', viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: [Object], mochaJunitReporterReporterOptions: [Object] }, blockHosts: [ '*google-analytics.com' ], setupNodeEvents: '[Function ]', baseUrl: 'http://app', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests', rawJson: { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: [Object], blockHosts: [Array], e2e: [Object], setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', envFile: {}, projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests' }, morgan: false, isTextTerminal: true, socketId: '3fvty1308f', report: true, video: false, animationDistanceThreshold: 5, arch: 'x64', clientCertificates: [], downloadsFolder: '/opt/cypress-tests/cypress/downloads', env: { }, execTimeout: 60000, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalSessionAndOrigin: false, experimentalSourceRewriting: false, fileServerFolder: '/opt/cypress-tests', fixturesFolder: '/opt/cypress-tests/cypress/fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: 37573, projectId: null, redirectionLimit: 20, requestTimeout: 5000, resolvedNodePath: '/usr/local/bin/node', resolvedNodeVersion: '14.17.0', responseTimeout: 30000, retries: { runMode: 0, openMode: 0 }, screenshotsFolder: '/opt/cypress-tests/cypress/screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: '/opt/cypress-tests/cypress/support/e2e.ts', supportFolder: '/opt/cypress-tests/cypress/support', taskTimeout: 60000, trashAssetsBeforeRuns: true, userAgent: null, videoCompression: 32, videosFolder: '/opt/cypress-tests/cypress/videos', viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: undefined, autoOpen: false, browsers: [ [Object] ], clientRoute: '/__/', cypressBinaryRoot: '/root/.cache/Cypress/10.3.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '10.3.0', xhrRoute: '/xhrs/', cypressEnv: 'production', resolved: { animationDistanceThreshold: [Object], arch: [Object], baseUrl: [Object], blockHosts: [Object], chromeWebSecurity: [Object], clientCertificates: [Object], defaultCommandTimeout: [Object], downloadsFolder: [Object], env: [Object], execTimeout: [Object], experimentalFetchPolyfill: [Object], experimentalInteractiveRunEvents: [Object], experimentalSessionAndOrigin: [Object], experimentalSourceRewriting: [Object], fileServerFolder: [Object], fixturesFolder: [Object], excludeSpecPattern: [Object], includeShadowDom: [Object], keystrokeDelay: [Object], modifyObstructiveCode: [Object], numTestsKeptInMemory: [Object], platform: [Object], pageLoadTimeout: [Object], port: [Object], projectId: [Object], redirectionLimit: [Object], reporter: [Object], reporterOptions: [Object], requestTimeout: [Object], resolvedNodePath: [Object], resolvedNodeVersion: [Object], responseTimeout: [Object], retries: [Object], screenshotOnRunFailure: [Object], screenshotsFolder: [Object], slowTestThreshold: [Object], scrollBehavior: [Object], supportFile: [Object], supportFolder: [Object], taskTimeout: [Object], trashAssetsBeforeRuns: [Object], userAgent: [Object], video: [Object], videoCompression: [Object], videosFolder: [Object], videoUploadOnPasses: [Object], viewportHeight: [Object], viewportWidth: [Object], waitForAnimations: [Object], watchForFileChanges: [Object], specPattern: [Object], browsers: [Object], hosts: [Object], isInteractive: [Object], configFile: [Object], testingType: [Object] }, remote: { auth: undefined, origin: 'http://app', strategy: 'http', fileServer: null, domainName: 'app', props: [Object] }, browser: null, specs: [], proxyUrl: 'http://localhost:37573', browserUrl: 'http://app/__/', reporterUrl: 'http://app/__cypress/reporter', xhrUrl: '__cypress/xhrs/', proxyServer: 'http://localhost:37573', state: {} }, cypressVersion: '10.3.0', group: undefined, parallel: false, runUrl: undefined, specs: [ { fileExtension: '.ts', baseName: 'abc.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'abc.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'xx.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'xx.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'xx.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'xx.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: '.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: '.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: '.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: '.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: '.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: '.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, { fileExtension: '.ts', baseName: 'xxx.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'xxx.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' } ], specPattern: [ 'cypress/tests/integration/**/*.ts' ], system: { osName: 'linux', osVersion: 'Debian - 10.9' }, tag: undefined } undefined undefined
2022-06-29T11:55:27.4919746Z 2022-06-29T11:55:27.473Z cypress:lifecycle:ProjectConfigManager call event before:run for invocation id inv1
2022-06-29T11:55:27.4920750Z 2022-06-29T11:55:27.475Z cypress:lifecycle:child:RunPlugins:218 execute plugin event: before:run ({ invocationId: 'inv1', eventId: 4 })
2022-06-29T11:55:27.4921468Z -----> Cleaning cypress/reports <-----
2022-06-29T11:55:27.5117669Z 2022-06-29T11:55:27.499Z cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv1' with value []
2022-06-29T11:55:27.5121954Z
2022-06-29T11:55:27.5165305Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-29T11:55:27.5165978Z
2022-06-29T11:55:27.5166659Z   Running:  abc.cy.ts                                                                (1 of 12)
2022-06-29T11:55:27.5170051Z 2022-06-29T11:55:27.501Z cypress:server:run about to run spec { spec: { fileExtension: '.ts', baseName: 'abc.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'abc.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' }, isHeadless: true, browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false } }
2022-06-29T11:55:27.5173338Z 2022-06-29T11:55:27.501Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:spec', isRegistered: false }
2022-06-29T11:55:27.5174668Z 2022-06-29T11:55:27.501Z cypress:server:run video recording has been disabled. video: false
2022-06-29T11:55:27.5175456Z 2022-06-29T11:55:27.502Z cypress:server:run waiting for socket to connect and browser to launch...
2022-06-29T11:55:27.5176266Z 2022-06-29T11:55:27.502Z cypress:server:run waiting for socket connection... { id: '3fvty1308f' }
2022-06-29T11:55:27.5176976Z 2022-06-29T11:55:27.502Z cypress:server:run browser launched
2022-06-29T11:55:27.5179412Z 2022-06-29T11:55:27.503Z cypress:server:open_project resetting project state, preparing to launch browser electron for spec { fileExtension: '.ts', baseName: 'abc.cy.ts', fileName: 'xx', specFileExtension: '.cy.ts', relativeToCommonRoot: 'abc.cy.ts', specType: 'integration', name: 'cypress/tests/integration/....cy.ts', relative: 'cypress/tests/integration/....cy.ts', absolute: '/opt/cypress-tests/cypress/tests/integration/....cy.ts' } options { width: 1280, height: 720, show: false, onCrashed: [Function: onCrashed], onNewWindow: [Function: onNewWindow], automationMiddleware: { onBeforeRequest: [Function: onBeforeRequest], onAfterResponse: [Function: onAfterResponse] }, projectRoot: '/opt/cypress-tests', shouldLaunchNewTab: false, onWarning: [Function (anonymous)] }
2022-06-29T11:55:27.5181713Z 2022-06-29T11:55:27.503Z cypress:server:project resetting project instance /opt/cypress-tests
2022-06-29T11:55:27.5182463Z 2022-06-29T11:55:27.503Z cypress:proxy:http:util:buffers resetting buffers
2022-06-29T11:55:27.5200072Z 2022-06-29T11:55:27.503Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.5201192Z 2022-06-29T11:55:27.503Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.5202323Z 2022-06-29T11:55:27.504Z cypress:server:remote-states setting remote state { auth: undefined, origin: 'http://app', strategy: 'http', fileServer: null, domainName: 'app', props: { port: '80', tld: 'app', domain: '' } } for http://app
2022-06-29T11:55:27.5203333Z 2022-06-29T11:55:27.504Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.5204434Z 2022-06-29T11:55:27.504Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://app', strategy: 'http', fileServer: null, domainName: 'app', props: { port: '80', tld: 'app', domain: '' } } for: http://app
2022-06-29T11:55:27.5205645Z 2022-06-29T11:55:27.504Z cypress:server:project_utils returning spec url http://app/__/#/specs/runner?file=cypress/tests/integration/....cy.ts
2022-06-29T11:55:27.5206643Z 2022-06-29T11:55:27.504Z cypress:server:open_project open project url http://app/__/#/specs/runner?file=cypress/tests/integration/....cy.ts
2022-06-29T11:55:27.5225046Z 2022-06-29T11:55:27.505Z cypress:server:project project has config { configFile: '/opt/cypress-tests/cypress.config.ts', testingType: 'e2e', viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: { reportDir: 'cypress/reports/mocha', overwrite: false, html: false, json: true }, mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/results-[hash].xml' } }, blockHosts: [ '*google-analytics.com' ], setupNodeEvents: '[Function ]', baseUrl: 'http://app', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests', rawJson: { viewportHeight: 880, defaultCommandTimeout: 8000, chromeWebSecurity: false, screenshotOnRunFailure: false, videoUploadOnPasses: false, reporter: 'cypress-multi-reporters', reporterOptions: { reporterEnabled: 'mochawesome, mocha-junit-reporter', mochawesomeReporterOptions: [Object], mochaJunitReporterReporterOptions: [Object] }, blockHosts: [ '*google-analytics.com' ], e2e: { setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}' }, setupNodeEvents: '[Function ]', baseUrl: 'http://localhost:33222/', specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', envFile: {}, projectRoot: '/opt/cypress-tests', projectName: 'cypress-tests' }, morgan: false, isTextTerminal: true, socketId: '3fvty1308f', report: true, video: false, animationDistanceThreshold: 5, arch: 'x64', clientCertificates: [], downloadsFolder: '/opt/cypress-tests/cypress/downloads', env: { }, execTimeout: 60000, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalSessionAndOrigin: false, experimentalSourceRewriting: false, fileServerFolder: '/opt/cypress-tests', fixturesFolder: '/opt/cypress-tests/cypress/fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: 37573, projectId: null, redirectionLimit: 20, requestTimeout: 5000, resolvedNodePath: '/usr/local/bin/node', resolvedNodeVersion: '14.17.0', responseTimeout: 30000, retries: { runMode: 0, openMode: 0 }, screenshotsFolder: '/opt/cypress-tests/cypress/screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: '/opt/cypress-tests/cypress/support/e2e.ts', supportFolder: '/opt/cypress-tests/cypress/support', taskTimeout: 60000, trashAssetsBeforeRuns: true, userAgent: null, videoCompression: 32, videosFolder: '/opt/cypress-tests/cypress/videos', viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: undefined, autoOpen: false, browsers: [ { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.' } ], clientRoute: '/__/', cypressBinaryRoot: '/root/.cache/Cypress/10.3.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '10.3.0', xhrRoute: '/xhrs/', cypressEnv: 'production', resolved: { animationDistanceThreshold: { value: 5, from: 'default' }, arch: { value: 'x64', from: 'default' }, baseUrl: { value: 'http://app', from: 'env' }, blockHosts: { value: [Array], from: 'config' }, chromeWebSecurity: { value: false, from: 'config' }, clientCertificates: { value: [], from: 'default' }, defaultCommandTimeout: { value: 8000, from: 'config' }, downloadsFolder: { value: 'cypress/downloads', from: 'default' }, env: { }, execTimeout: { value: 60000, from: 'default' }, experimentalFetchPolyfill: { value: false, from: 'default' }, experimentalInteractiveRunEvents: { value: false, from: 'default' }, experimentalSessionAndOrigin: { value: false, from: 'default' }, experimentalSourceRewriting: { value: false, from: 'default' }, fileServerFolder: { value: '', from: 'default' }, fixturesFolder: { value: 'cypress/fixtures', from: 'default' }, excludeSpecPattern: { value: '*.hot-update.js', from: 'default' }, includeShadowDom: { value: false, from: 'default' }, keystrokeDelay: { value: 0, from: 'default' }, modifyObstructiveCode: { value: true, from: 'default' }, numTestsKeptInMemory: { value: 0, from: 'config' }, platform: { value: 'linux', from: 'default' }, pageLoadTimeout: { value: 60000, from: 'default' }, port: { value: null, from: 'default' }, projectId: { value: null, from: 'default' }, redirectionLimit: { value: 20, from: 'default' }, reporter: { value: 'cypress-multi-reporters', from: 'config' }, reporterOptions: { value: [Object], from: 'config' }, requestTimeout: { value: 5000, from: 'default' }, resolvedNodePath: { value: null, from: 'default' }, resolvedNodeVersion: { value: null, from: 'default' }, responseTimeout: { value: 30000, from: 'default' }, retries: { value: [Object], from: 'default' }, screenshotOnRunFailure: { value: false, from: 'config' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, slowTestThreshold: { value: 10000, from: 'default' }, scrollBehavior: { value: 'top', from: 'default' }, supportFile: { value: 'cypress/support/e2e.{js,jsx,ts,tsx}', from: 'default' }, supportFolder: { value: false, from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, trashAssetsBeforeRuns: { value: true, from: 'default' }, userAgent: { value: null, from: 'default' }, video: { value: false, from: 'cli' }, videoCompression: { value: 32, from: 'default' }, videosFolder: { value: 'cypress/videos', from: 'default' }, videoUploadOnPasses: { value: false, from: 'config' }, viewportHeight: { value: 880, from: 'config' }, viewportWidth: { value: 1000, from: 'default' }, waitForAnimations: { value: true, from: 'default' }, watchForFileChanges: { value: false, from: 'config' }, specPattern: { value: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}', from: 'config' }, browsers: { value: [Array], from: 'runtime' }, hosts: { value: null, from: 'default' }, isInteractive: { value: true, from: 'default' }, configFile: { value: '/opt/cypress-tests/cypress.config.ts', from: 'plugin' }, testingType: { value: 'e2e', from: 'plugin' } }, remote: {}, browser: null, specs: [], proxyUrl: 'http://localhost:37573', browserUrl: 'http://app/__/', reporterUrl: 'http://app/__cypress/reporter', xhrUrl: '__cypress/xhrs/', proxyServer: 'http://localhost:37573', state: {} }
2022-06-29T11:55:27.5238882Z 2022-06-29T11:55:27.505Z cypress:network:cors Parsed URL { port: '80', tld: 'app', domain: '' }
2022-06-29T11:55:27.5240036Z 2022-06-29T11:55:27.505Z cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://app', strategy: 'http', fileServer: null, domainName: 'app', props: { port: '80', tld: 'app', domain: '' } } for: http://app
2022-06-29T11:55:27.5242130Z 2022-06-29T11:55:27.505Z cypress:server:open_project launching browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false }, spec: cypress/tests/integration/....cy.ts
2022-06-29T11:55:27.5243672Z 2022-06-29T11:55:27.506Z cypress:server:browsers browsers.kill called with no active instance
2022-06-29T11:55:27.5245444Z 2022-06-29T11:55:27.507Z cypress:server:browsers getBrowserLauncher { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false } }
2022-06-29T11:55:27.5247940Z 2022-06-29T11:55:27.508Z cypress:server:browsers opening browser { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false }
2022-06-29T11:55:27.5250736Z 2022-06-29T11:55:27.509Z cypress:server:browsers:electron open { browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false }, url: 'http://app/__/#/specs/runner?file=cypress/tests/integration/....cy.ts' }
2022-06-29T11:55:27.5252368Z 2022-06-29T11:55:27.509Z cypress:server:saved_state noop saved state
2022-06-29T11:55:27.5253096Z 2022-06-29T11:55:27.509Z cypress:server:browsers:electron received saved state {}
2022-06-29T11:55:27.5283131Z 2022-06-29T11:55:27.509Z cypress:server:browsers:electron browser window options { width: 1280, height: 720, show: false, automationMiddleware: { onBeforeRequest: [Function: onBeforeRequest], onAfterResponse: [Function: onAfterResponse] }, projectRoot: '/opt/cypress-tests', shouldLaunchNewTab: false, browsers: [ { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.' } ], userAgent: null, proxyUrl: 'http://localhost:37573', proxyServer: 'http://localhost:37573', socketIoRoute: '/__socket', chromeWebSecurity: false, isTextTerminal: true, downloadsFolder: '/opt/cypress-tests/cypress/downloads', experimentalSessionAndOrigin: false, browser: { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '100.0.4896.160', path: '', majorVersion: 100, 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.', isHeadless: true, isHeaded: false }, url: 'http://app/__/#/specs/runner?file=cypress/tests/integration/....cy.ts', resizable: false, x: null, y: null, devTools: false, minWidth: 100, minHeight: 100, contextMenu: true, partition: 'persist:run-31', trackState: { width: 'browserWidth', height: 'browserHeight', x: 'browserX', y: 'browserY', devTools: 'isBrowserDevToolsOpen' }, webPreferences: { sandbox: true, partition: null, webSecurity: true, nodeIntegration: false, backgroundThrottling: false }, frame: true, recordFrameRate: null }
2022-06-29T11:55:27.5287490Z 2022-06-29T11:55:27.510Z cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:browser:launch', isRegistered: false }
2022-06-29T11:55:27.5288737Z 2022-06-29T11:55:27.510Z cypress:server:browsers:electron launching browser window to url: http://app/__/#/specs/runner?file=cypress/tests/integration/....cy.ts
2022-06-29T11:55:27.6772676Z 2022-06-29T11:55:27.532Z cypress:server:browsers:electron debugger attached
2022-06-29T11:55:27.6780649Z 2022-06-29T11:55:27.532Z cypress:server:browsers:electron clearing cache
2022-06-29T11:55:27.6815175Z 2022-06-29T11:55:27.668Z cypress:server:server-base Got CONNECT request from redirector.gvt1.com:443
2022-06-29T11:55:27.6827428Z 2022-06-29T11:55:27.669Z cypress:https-proxy Writing browserSocket connection headers { url: 'redirector.gvt1.com:443', headLength: 0, headers: { host: 'redirector.gvt1.com:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/10.3.0 Chrome/100.0.4896.160 Electron/18.3.0 Safari/537.36' } }
2022-06-29T11:55:27.6838120Z [31:0629/115527.671639:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 407: Permission denied (13)
2022-06-29T11:55:27.6906021Z 2022-06-29T11:55:27.674Z cypress:https-proxy Got first head bytes { url: 'redirector.gvt1.com:443', head: '\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03Kj�\x7Ff��g��=�ӷ��i;�Ba��\x17�up\x1D\x1F�m~ <pmS5%�v�HZ�\x1Bz=X�\x07KVl' }
2022-06-29T11:55:27.9702152Z 2022-06-29T11:55:27.957Z cypress:https-proxy Making intercepted connection to 41169
2022-06-29T11:55:27.9732137Z 2022-06-29T11:55:27.960Z cypress:network:connect successfully connected { opts: { port: 41169, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }
2022-06-29T11:55:27.9740356Z 2022-06-29T11:55:27.961Z cypress:https-proxy received upstreamSocket callback for request { port: 41169, hostname: 'localhost', err: undefined }
2022-06-29T11:55:27.9741525Z 2022-06-29T11:55:27.961Z cypress:server:util:socket_allowed allowing socket { localPort: 42946 }
2022-06-29T11:55:27.9781675Z 2022-06-29T11:55:27.965Z cypress:server:browsers:electron maybe recording video { onScreencastFrame: undefined }
2022-06-29T11:55:27.9793934Z 2022-06-29T11:55:27.965Z cypress:server:browsers:electron debugger: enable Console and Network
2022-06-29T11:55:29.3416385Z 2022-06-29T11:55:29.328Z cypress:server:server-base Got CONNECT request from app:443
2022-06-29T11:55:29.3428689Z 2022-06-29T11:55:29.329Z cypress:https-proxy Writing browserSocket connection headers { url: 'app:443', headLength: 0, headers: { host: 'app:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/10.3.0 Chrome/100.0.4896.160 Electron/18.3.0 Safari/537.36' } }
2022-06-29T11:55:29.3432511Z 2022-06-29T11:55:29.329Z cypress:https-proxy Got first head bytes { url: 'app:443', head: '\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03I�\n�\x00\x0B�"c܇�\x1D�`���@�\t��؋��Y\'� <��j�s5�6=�\x19\r>bIv\x15H�zጵ@�' }
2022-06-29T11:55:29.5943433Z 2022-06-29T11:55:29.571Z cypress:https-proxy Making intercepted connection to 41169
2022-06-29T11:55:29.5945650Z 2022-06-29T11:55:29.572Z cypress:network:connect successfully connected { opts: { port: 41169, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }
2022-06-29T11:55:29.5947806Z 2022-06-29T11:55:29.573Z cypress:https-proxy received upstreamSocket callback for request { port: 41169, hostname: 'localhost', err: undefined }
2022-06-29T11:55:29.5949583Z 2022-06-29T11:55:29.573Z cypress:server:util:socket_allowed allowing socket { localPort: 42970 }

Desired behavior

Should work same as on 8.1 version

Test code to reproduce

N/A

Cypress Version

10.3.0

Other

No response

lmiller1990 commented 2 years ago

Hi! Can you share the command(s) you are using to run Cypress? I'll need to reproduce the error in the meantime. Just doing a quick Google for "Failed to adjust OOM score of renderer with pid 202: Permission denied" points to a few interesting hits:

In the meantime, I'll need to create an Azure account learn about how their pipelines works, and try to run this.

In the meantime, have you tried updating to the latest Cypress 9.x? It would be good to isolate if this became an issue between Cypress 9->10, or somewhere earlier along the line.

stychu commented 2 years ago

So I just did quick test to see if it will work on Azure.

I did setup fresh Cypress folder and checked it locally and on Azure. Worked on both.

But I can clearly see that there are some problems reported.

Locally in docker

[196:0630/093923.686226:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

[196:0630/093923.691835:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
> app-tests@1.0.0 cy:integration /opt/cypress-tests
> npx cypress run

[196:0630/093923.686226:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[196:0630/093923.691835:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Couldn't find tsconfig.json. tsconfig-paths will be skipped

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.3.0                                                                         │
  │ Browser:        Electron 100 (headless)                                                        │
  │ Node Version:   v14.17.0 (/usr/local/bin/node)                                                 │
  │ Specs:          7 found (actions.cy.js, aliasing.cy.js, assertions.cy.js, todo.cy.js, viewport │
  │                 .cy.js, waiting.cy.js, window.cy.js)                                           │
  │ Searched:       cypress/tests/**/*.cy.{js,jsx,ts,tsx}                                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  actions.cy.js                                                                   (1 of 7)

  Actions
    ✓ .type() - type into a DOM element (4591ms)
    ✓ .focus() - focus on a DOM element (427ms)
    ✓ .blur() - blur off a DOM element (691ms)
    ✓ .clear() - clears an input or textarea element (783ms)
    ✓ .submit() - submit a form (661ms)
    ✓ .click() - click on a DOM element (3388ms)
    ✓ .dblclick() - double click on a DOM element (436ms)
    ✓ .rightclick() - right click on a DOM element (401ms)
    ✓ .check() - check a checkbox or radio element (1554ms)
    ✓ .uncheck() - uncheck a checkbox element (1461ms)
    ✓ .select() - select an option in a <select> element (1335ms)
    ✓ .scrollIntoView() - scroll an element into view (358ms)
    ✓ .trigger() - trigger an event on a DOM element (376ms)
    ✓ cy.scrollTo() - scroll the window or element to a position (2249ms)

  14 passing (21s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        14                                                                               │
  │ Passing:      14                                                                               │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     21 seconds                                                                       │
  │ Spec Ran:     actions.cy.js                                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/actions.cy.js.mp4            (2 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  aliasing.cy.js                                                                  (2 of 7)

  Aliasing
    ✓ .as() - alias a DOM element for later use (784ms)
    ✓ .as() - alias a route for later use (1037ms)

  2 passing (3s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      2                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     3 seconds                                                                        │
  │ Spec Ran:     aliasing.cy.js                                                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/aliasing.cy.js.mp4           (0 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  assertions.cy.js                                                                (3 of 7)

  Assertions
    Implicit Assertions
      ✓ .should() - make an assertion about the current subject (985ms)
      ✓ .and() - chain multiple assertions together (265ms)
    Explicit Assertions
      ✓ expect - make an assertion about a specified subject (248ms)
      ✓ pass your own callback function to should() (355ms)
      ✓ finds element by class name regex (250ms)
      ✓ can throw any error (208ms)
      ✓ matches unknown text between two elements (258ms)
      ✓ assert - assert shape of an object (192ms)
      ✓ retries the should callback until assertions pass (1699ms)

  9 passing (6s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        9                                                                                │
  │ Passing:      9                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     6 seconds                                                                        │
  │ Spec Ran:     assertions.cy.js                                                                 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/assertions.cy.js.mp4         (0 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  todo.cy.js                                                                      (4 of 7)

  example to-do app
    ✓ displays two todo items by default (767ms)
    ✓ can add new todo items (603ms)
    ✓ can check off an item as completed (391ms)
    with a checked task
      ✓ can filter for uncompleted tasks (531ms)
      ✓ can filter for completed tasks (527ms)
      ✓ can delete all completed tasks (445ms)

  6 passing (5s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        6                                                                                │
  │ Passing:      6                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     5 seconds                                                                        │
  │ Spec Ran:     todo.cy.js                                                                       │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/todo.cy.js.mp4               (0 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  viewport.cy.js                                                                  (5 of 7)

  Viewport
    ✓ cy.viewport() - set the viewport size and dimension (3919ms)

  1 passing (6s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     5 seconds                                                                        │
  │ Spec Ran:     viewport.cy.js                                                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/viewport.cy.js.mp4           (0 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  waiting.cy.js                                                                   (6 of 7)

  Waiting
    ✓ cy.wait() - wait for a specific amount of time (5218ms)
    ✓ cy.wait() - wait for a specific route (809ms)

  2 passing (8s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      2                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     7 seconds                                                                        │
  │ Spec Ran:     waiting.cy.js                                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/waiting.cy.js.mp4            (0 seconds)

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  window.cy.js                                                                    (7 of 7)

  Window
    ✓ cy.window() - get the global window object (598ms)
    ✓ cy.document() - get the document object (186ms)
    ✓ cy.title() - get the title (192ms)

  3 passing (3s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     2 seconds                                                                        │
  │ Spec Ran:     window.cy.js                                                                     │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /opt/cypress-tests/cypress/videos/window.cy.js.mp4             (0 seconds)

====================================================================================================

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  actions.cy.js                            00:21       14       14        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  aliasing.cy.js                           00:03        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  assertions.cy.js                         00:06        9        9        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  todo.cy.js                               00:05        6        6        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  viewport.cy.js                           00:05        1        1        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  waiting.cy.js                            00:07        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  window.cy.js                             00:02        3        3        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:52       37       37        -        -        -  

Azure docker

2022-06-30T10:05:29.6297968Z [31:0630/100529.624757:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)

2022-06-30T10:05:29.6660227Z [202:0630/100529.661267:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

2022-06-30T10:05:29.6766845Z [202:0630/100529.667628:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
2022-06-30T10:05:27.7943093Z > app-tests@1.0.0 cy:integration /opt/cypress-tests
2022-06-30T10:05:27.7943948Z > npx cypress run
2022-06-30T10:05:27.7944819Z 
2022-06-30T10:05:29.6297968Z [31:0630/100529.624757:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)
2022-06-30T10:05:29.6660227Z [202:0630/100529.661267:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
2022-06-30T10:05:29.6766845Z [202:0630/100529.667628:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
2022-06-30T10:05:31.1836672Z Couldn't find tsconfig.json. tsconfig-paths will be skipped
2022-06-30T10:05:32.6636056Z 
2022-06-30T10:05:32.6973270Z ================================================================================
2022-06-30T10:05:32.6983943Z 
2022-06-30T10:05:32.6984771Z   (Run Starting)
2022-06-30T10:05:32.6984989Z 
2022-06-30T10:05:32.7092657Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:05:32.7106247Z   │ Cypress:        10.3.0                                                                         │
2022-06-30T10:05:32.7106911Z   │ Browser:        Electron 100 (headless)                                                        │
2022-06-30T10:05:32.7107696Z   │ Node Version:   v14.17.0 (/usr/local/bin/node)                                                 │
2022-06-30T10:05:32.7108417Z   │ Specs:          7 found (actions.cy.js, aliasing.cy.js, assertions.cy.js, todo.cy.js, viewport │
2022-06-30T10:05:32.7109143Z   │                 .cy.js, waiting.cy.js, window.cy.js)                                           │
2022-06-30T10:05:32.7109819Z   │ Searched:       cypress/tests/**/*.cy.{js,jsx,ts,tsx}                                          │
2022-06-30T10:05:32.7110500Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:05:32.7110728Z 
2022-06-30T10:05:32.7200775Z 
2022-06-30T10:05:32.7221841Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:05:32.7222317Z                                                                                                     
2022-06-30T10:05:32.7222820Z   Running:  actions.cy.js                                                                   (1 of 7)
2022-06-30T10:05:32.8167653Z [31:0630/100532.813523:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 279: Permission denied (13)
2022-06-30T10:05:37.1142840Z 
2022-06-30T10:05:37.1562377Z 
2022-06-30T10:05:37.1865565Z   Actions
2022-06-30T10:05:45.7291604Z     ✓ .type() - type into a DOM element (5963ms)
2022-06-30T10:05:46.5583836Z     ✓ .focus() - focus on a DOM element (733ms)
2022-06-30T10:05:47.7219583Z     ✓ .blur() - blur off a DOM element (1150ms)
2022-06-30T10:05:48.9783950Z     ✓ .clear() - clears an input or textarea element (1247ms)
2022-06-30T10:05:49.8717224Z     ✓ .submit() - submit a form (889ms)
2022-06-30T10:05:55.0599368Z     ✓ .click() - click on a DOM element (5148ms)
2022-06-30T10:05:55.6617578Z     ✓ .dblclick() - double click on a DOM element (535ms)
2022-06-30T10:05:56.3079954Z     ✓ .rightclick() - right click on a DOM element (668ms)
2022-06-30T10:05:58.4619335Z     ✓ .check() - check a checkbox or radio element (2179ms)
2022-06-30T10:06:00.6745643Z     ✓ .uncheck() - uncheck a checkbox element (2192ms)
2022-06-30T10:06:02.6880202Z     ✓ .select() - select an option in a <select> element (2018ms)
2022-06-30T10:06:03.3613443Z     ✓ .scrollIntoView() - scroll an element into view (577ms)
2022-06-30T10:06:04.2591909Z     ✓ .trigger() - trigger an event on a DOM element (849ms)
2022-06-30T10:06:06.7009282Z     ✓ cy.scrollTo() - scroll the window or element to a position (2435ms)
2022-06-30T10:06:06.7844003Z 
2022-06-30T10:06:06.7882315Z 
2022-06-30T10:06:06.7882836Z   14 passing (30s)
2022-06-30T10:06:06.7883056Z 
2022-06-30T10:06:07.9394047Z 
2022-06-30T10:06:07.9404872Z   (Results)
2022-06-30T10:06:07.9405513Z 
2022-06-30T10:06:07.9420353Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:06:07.9421348Z   │ Tests:        14                                                                               │
2022-06-30T10:06:07.9422708Z   │ Passing:      14                                                                               │
2022-06-30T10:06:07.9423698Z   │ Failing:      0                                                                                │
2022-06-30T10:06:07.9424558Z   │ Pending:      0                                                                                │
2022-06-30T10:06:07.9425346Z   │ Skipped:      0                                                                                │
2022-06-30T10:06:07.9425859Z   │ Screenshots:  0                                                                                │
2022-06-30T10:06:07.9426379Z   │ Video:        true                                                                             │
2022-06-30T10:06:07.9427110Z   │ Duration:     29 seconds                                                                       │
2022-06-30T10:06:07.9427660Z   │ Spec Ran:     actions.cy.js                                                                    │
2022-06-30T10:06:07.9428226Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:06:07.9428376Z 
2022-06-30T10:06:07.9465194Z 
2022-06-30T10:06:07.9479006Z   (Video)
2022-06-30T10:06:07.9479757Z 
2022-06-30T10:06:07.9480693Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:06:15.2214126Z   -  Finished processing: /opt/cypress-tests/cypress/videos/actions.cy.js.mp4            (7 seconds)
2022-06-30T10:06:15.2224329Z 
2022-06-30T10:06:15.2673564Z 
2022-06-30T10:06:15.2685376Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:06:15.2686163Z                                                                                                     
2022-06-30T10:06:15.2687767Z   Running:  aliasing.cy.js                                                                  (2 of 7)
2022-06-30T10:06:15.3019301Z [31:0630/100615.299047:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 495: Permission denied (13)
2022-06-30T10:06:17.1732087Z 
2022-06-30T10:06:17.1747707Z 
2022-06-30T10:06:17.2039667Z   Aliasing
2022-06-30T10:06:20.2586191Z     ✓ .as() - alias a DOM element for later use (1021ms)
2022-06-30T10:06:21.4955896Z     ✓ .as() - alias a route for later use (1227ms)
2022-06-30T10:06:21.5077677Z 
2022-06-30T10:06:21.5090536Z 
2022-06-30T10:06:21.5091108Z   2 passing (4s)
2022-06-30T10:06:21.5091389Z 
2022-06-30T10:06:23.4962201Z 
2022-06-30T10:06:23.4963148Z   (Results)
2022-06-30T10:06:23.4963881Z 
2022-06-30T10:06:23.4977121Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:06:23.4990423Z   │ Tests:        2                                                                                │
2022-06-30T10:06:23.4991258Z   │ Passing:      2                                                                                │
2022-06-30T10:06:23.4992508Z   │ Failing:      0                                                                                │
2022-06-30T10:06:23.4993504Z   │ Pending:      0                                                                                │
2022-06-30T10:06:23.4994050Z   │ Skipped:      0                                                                                │
2022-06-30T10:06:23.4995178Z   │ Screenshots:  0                                                                                │
2022-06-30T10:06:23.4995873Z   │ Video:        true                                                                             │
2022-06-30T10:06:23.4996449Z   │ Duration:     4 seconds                                                                        │
2022-06-30T10:06:23.4997671Z   │ Spec Ran:     aliasing.cy.js                                                                   │
2022-06-30T10:06:23.4998270Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:06:23.4998427Z 
2022-06-30T10:06:23.5022784Z 
2022-06-30T10:06:23.5036265Z   (Video)
2022-06-30T10:06:23.5036451Z 
2022-06-30T10:06:23.5038977Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:06:25.3203994Z   -  Finished processing: /opt/cypress-tests/cypress/videos/aliasing.cy.js.mp4            (1 second)
2022-06-30T10:06:25.3215094Z 
2022-06-30T10:06:25.3495864Z 
2022-06-30T10:06:25.3521252Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:06:25.3521759Z                                                                                                     
2022-06-30T10:06:25.3522187Z   Running:  assertions.cy.js                                                                (3 of 7)
2022-06-30T10:06:25.3981263Z [31:0630/100625.393550:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 584: Permission denied (13)
2022-06-30T10:06:27.4547816Z 
2022-06-30T10:06:27.4682486Z 
2022-06-30T10:06:27.5014515Z   Assertions
2022-06-30T10:06:27.5025278Z     Implicit Assertions
2022-06-30T10:06:30.4773233Z       ✓ .should() - make an assertion about the current subject (719ms)
2022-06-30T10:06:30.8600523Z       ✓ .and() - chain multiple assertions together (326ms)
2022-06-30T10:06:30.9022589Z     Explicit Assertions
2022-06-30T10:06:31.3713184Z       ✓ expect - make an assertion about a specified subject (336ms)
2022-06-30T10:06:31.7033859Z       ✓ pass your own callback function to should() (329ms)
2022-06-30T10:06:32.0893111Z       ✓ finds element by class name regex (374ms)
2022-06-30T10:06:32.6721646Z       ✓ can throw any error (570ms)
2022-06-30T10:06:33.1869584Z       ✓ matches unknown text between two elements (492ms)
2022-06-30T10:06:33.8750903Z       ✓ assert - assert shape of an object (675ms)
2022-06-30T10:06:35.8523555Z       ✓ retries the should callback until assertions pass (1896ms)
2022-06-30T10:06:35.9595948Z 
2022-06-30T10:06:35.9608385Z 
2022-06-30T10:06:35.9639799Z   9 passing (9s)
2022-06-30T10:06:35.9655869Z 
2022-06-30T10:06:37.1118136Z 
2022-06-30T10:06:37.1121771Z   (Results)
2022-06-30T10:06:37.1156182Z 
2022-06-30T10:06:37.1181128Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:06:37.1182238Z   │ Tests:        9                                                                                │
2022-06-30T10:06:37.1183167Z   │ Passing:      9                                                                                │
2022-06-30T10:06:37.1183688Z   │ Failing:      0                                                                                │
2022-06-30T10:06:37.1184637Z   │ Pending:      0                                                                                │
2022-06-30T10:06:37.1185453Z   │ Skipped:      0                                                                                │
2022-06-30T10:06:37.1186537Z   │ Screenshots:  0                                                                                │
2022-06-30T10:06:37.1187429Z   │ Video:        true                                                                             │
2022-06-30T10:06:37.1188405Z   │ Duration:     8 seconds                                                                        │
2022-06-30T10:06:37.1189147Z   │ Spec Ran:     assertions.cy.js                                                                 │
2022-06-30T10:06:37.1189698Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:06:37.1189846Z 
2022-06-30T10:06:37.1208881Z 
2022-06-30T10:06:37.1215101Z   (Video)
2022-06-30T10:06:37.1215422Z 
2022-06-30T10:06:37.1216076Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:06:39.5562120Z   -  Finished processing: /opt/cypress-tests/cypress/videos/assertions.cy.js.mp4         (2 seconds)
2022-06-30T10:06:39.5562509Z 
2022-06-30T10:06:39.5925431Z 
2022-06-30T10:06:39.5933583Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:06:39.5934025Z                                                                                                     
2022-06-30T10:06:39.5934474Z   Running:  todo.cy.js                                                                      (4 of 7)
2022-06-30T10:06:39.6337411Z [31:0630/100639.630728:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 674: Permission denied (13)
2022-06-30T10:06:41.5227454Z 
2022-06-30T10:06:41.5230053Z 
2022-06-30T10:06:41.5596374Z   example to-do app
2022-06-30T10:06:44.5626737Z     ✓ displays two todo items by default (847ms)
2022-06-30T10:06:45.2895990Z     ✓ can add new todo items (707ms)
2022-06-30T10:06:45.6795854Z     ✓ can check off an item as completed (388ms)
2022-06-30T10:06:45.7021807Z     with a checked task
2022-06-30T10:06:46.3783664Z       ✓ can filter for uncompleted tasks (689ms)
2022-06-30T10:06:46.9769371Z       ✓ can filter for completed tasks (589ms)
2022-06-30T10:06:47.8777364Z       ✓ can delete all completed tasks (893ms)
2022-06-30T10:06:47.8916271Z 
2022-06-30T10:06:47.8916975Z 
2022-06-30T10:06:47.8917330Z   6 passing (6s)
2022-06-30T10:06:47.8917463Z 
2022-06-30T10:06:49.0941166Z 
2022-06-30T10:06:49.0949111Z   (Results)
2022-06-30T10:06:49.1011075Z 
2022-06-30T10:06:49.1016736Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:06:49.1017974Z   │ Tests:        6                                                                                │
2022-06-30T10:06:49.1018520Z   │ Passing:      6                                                                                │
2022-06-30T10:06:49.1019331Z   │ Failing:      0                                                                                │
2022-06-30T10:06:49.1020895Z   │ Pending:      0                                                                                │
2022-06-30T10:06:49.1021797Z   │ Skipped:      0                                                                                │
2022-06-30T10:06:49.1022810Z   │ Screenshots:  0                                                                                │
2022-06-30T10:06:49.1023777Z   │ Video:        true                                                                             │
2022-06-30T10:06:49.1024301Z   │ Duration:     6 seconds                                                                        │
2022-06-30T10:06:49.1024816Z   │ Spec Ran:     todo.cy.js                                                                       │
2022-06-30T10:06:49.1025787Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:06:49.1037154Z 
2022-06-30T10:06:49.1037445Z 
2022-06-30T10:06:49.1038008Z   (Video)
2022-06-30T10:06:49.1038253Z 
2022-06-30T10:06:49.1038933Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:06:51.1657166Z   -  Finished processing: /opt/cypress-tests/cypress/videos/todo.cy.js.mp4               (2 seconds)
2022-06-30T10:06:51.1657762Z 
2022-06-30T10:06:51.1961506Z 
2022-06-30T10:06:51.1963089Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:06:51.1963496Z                                                                                                     
2022-06-30T10:06:51.1963882Z   Running:  viewport.cy.js                                                                  (5 of 7)
2022-06-30T10:06:51.2549408Z [31:0630/100651.232696:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 761: Permission denied (13)
2022-06-30T10:06:53.0819576Z 
2022-06-30T10:06:53.0820790Z 
2022-06-30T10:06:53.1103154Z   Viewport
2022-06-30T10:06:58.9877392Z     ✓ cy.viewport() - set the viewport size and dimension (3710ms)
2022-06-30T10:06:59.0800511Z 
2022-06-30T10:06:59.0809772Z 
2022-06-30T10:06:59.0810825Z   1 passing (6s)
2022-06-30T10:06:59.0811027Z 
2022-06-30T10:07:00.4032629Z 
2022-06-30T10:07:00.4033506Z   (Results)
2022-06-30T10:07:00.4033626Z 
2022-06-30T10:07:00.4043621Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:07:00.4044209Z   │ Tests:        1                                                                                │
2022-06-30T10:07:00.4044774Z   │ Passing:      1                                                                                │
2022-06-30T10:07:00.4045278Z   │ Failing:      0                                                                                │
2022-06-30T10:07:00.4045814Z   │ Pending:      0                                                                                │
2022-06-30T10:07:00.4046304Z   │ Skipped:      0                                                                                │
2022-06-30T10:07:00.4047077Z   │ Screenshots:  0                                                                                │
2022-06-30T10:07:00.4047598Z   │ Video:        true                                                                             │
2022-06-30T10:07:00.4048104Z   │ Duration:     5 seconds                                                                        │
2022-06-30T10:07:00.4048627Z   │ Spec Ran:     viewport.cy.js                                                                   │
2022-06-30T10:07:00.4049171Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:07:00.4049323Z 
2022-06-30T10:07:00.4088296Z 
2022-06-30T10:07:00.4148827Z   (Video)
2022-06-30T10:07:00.4149237Z 
2022-06-30T10:07:00.4149907Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:07:02.3649307Z   -  Finished processing: /opt/cypress-tests/cypress/videos/viewport.cy.js.mp4            (1 second)
2022-06-30T10:07:02.3649670Z 
2022-06-30T10:07:02.4017267Z 
2022-06-30T10:07:02.4018532Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:07:02.4019377Z                                                                                                     
2022-06-30T10:07:02.4019877Z   Running:  waiting.cy.js                                                                   (6 of 7)
2022-06-30T10:07:02.4297973Z [31:0630/100702.426375:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 848: Permission denied (13)
2022-06-30T10:07:04.3826348Z 
2022-06-30T10:07:04.3838275Z 
2022-06-30T10:07:04.4597376Z   Waiting
2022-06-30T10:07:12.6846495Z     ✓ cy.wait() - wait for a specific amount of time (6032ms)
2022-06-30T10:07:13.8546287Z     ✓ cy.wait() - wait for a specific route (1034ms)
2022-06-30T10:07:13.8645439Z 
2022-06-30T10:07:13.8654233Z 
2022-06-30T10:07:13.8656026Z   2 passing (9s)
2022-06-30T10:07:13.8667410Z 
2022-06-30T10:07:14.9604405Z 
2022-06-30T10:07:14.9605485Z   (Results)
2022-06-30T10:07:14.9612978Z 
2022-06-30T10:07:14.9631367Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:07:14.9642713Z   │ Tests:        2                                                                                │
2022-06-30T10:07:14.9649319Z   │ Passing:      2                                                                                │
2022-06-30T10:07:14.9650412Z   │ Failing:      0                                                                                │
2022-06-30T10:07:14.9651432Z   │ Pending:      0                                                                                │
2022-06-30T10:07:14.9652499Z   │ Skipped:      0                                                                                │
2022-06-30T10:07:14.9653157Z   │ Screenshots:  0                                                                                │
2022-06-30T10:07:14.9653674Z   │ Video:        true                                                                             │
2022-06-30T10:07:14.9654185Z   │ Duration:     9 seconds                                                                        │
2022-06-30T10:07:14.9654714Z   │ Spec Ran:     waiting.cy.js                                                                    │
2022-06-30T10:07:14.9655260Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:07:14.9655403Z 
2022-06-30T10:07:14.9674957Z 
2022-06-30T10:07:14.9687369Z   (Video)
2022-06-30T10:07:14.9687591Z 
2022-06-30T10:07:14.9688157Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:07:17.5189618Z   -  Finished processing: /opt/cypress-tests/cypress/videos/waiting.cy.js.mp4            (2 seconds)
2022-06-30T10:07:17.5199882Z 
2022-06-30T10:07:17.5588260Z 
2022-06-30T10:07:17.5627375Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-06-30T10:07:17.5634288Z                                                                                                     
2022-06-30T10:07:17.5634805Z   Running:  window.cy.js                                                                    (7 of 7)
2022-06-30T10:07:17.6218875Z [31:0630/100717.599736:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 935: Permission denied (13)
2022-06-30T10:07:19.5385772Z 
2022-06-30T10:07:19.5393099Z 
2022-06-30T10:07:19.5844072Z   Window
2022-06-30T10:07:22.3792030Z     ✓ cy.window() - get the global window object (552ms)
2022-06-30T10:07:22.6570898Z     ✓ cy.document() - get the document object (221ms)
2022-06-30T10:07:22.8928532Z     ✓ cy.title() - get the title (220ms)
2022-06-30T10:07:22.9051169Z 
2022-06-30T10:07:22.9500276Z 
2022-06-30T10:07:22.9520305Z   3 passing (3s)
2022-06-30T10:07:22.9520598Z 
2022-06-30T10:07:24.7580955Z 
2022-06-30T10:07:24.7581947Z   (Results)
2022-06-30T10:07:24.7582247Z 
2022-06-30T10:07:24.7583949Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:07:24.7585936Z   │ Tests:        3                                                                                │
2022-06-30T10:07:24.7587510Z   │ Passing:      3                                                                                │
2022-06-30T10:07:24.7588596Z   │ Failing:      0                                                                                │
2022-06-30T10:07:24.7589801Z   │ Pending:      0                                                                                │
2022-06-30T10:07:24.7590850Z   │ Skipped:      0                                                                                │
2022-06-30T10:07:24.7591509Z   │ Screenshots:  0                                                                                │
2022-06-30T10:07:24.7592042Z   │ Video:        true                                                                             │
2022-06-30T10:07:24.7592571Z   │ Duration:     3 seconds                                                                        │
2022-06-30T10:07:24.7593100Z   │ Spec Ran:     window.cy.js                                                                     │
2022-06-30T10:07:24.7593659Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:07:24.7593801Z 
2022-06-30T10:07:24.7644587Z 
2022-06-30T10:07:24.7652539Z   (Video)
2022-06-30T10:07:24.7652841Z 
2022-06-30T10:07:24.7653761Z   -  Started processing:  Compressing to 32 CRF                                                     
2022-06-30T10:07:26.1243380Z   -  Finished processing: /opt/cypress-tests/cypress/videos/window.cy.js.mp4              (1 second)
2022-06-30T10:07:26.1243847Z 
2022-06-30T10:07:26.1623405Z 
2022-06-30T10:07:26.2120041Z ================================================================================
2022-06-30T10:07:26.2129155Z 
2022-06-30T10:07:26.2129801Z   (Run Finished)
2022-06-30T10:07:26.2140495Z 
2022-06-30T10:07:26.2150003Z 
2022-06-30T10:07:26.2197899Z        Spec                                              Tests  Passing  Failing  Pending  Skipped  
2022-06-30T10:07:26.2213576Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-06-30T10:07:26.2214689Z   │ ✔  actions.cy.js                            00:29       14       14        -        -        - │
2022-06-30T10:07:26.2215801Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2216832Z   │ ✔  aliasing.cy.js                           00:04        2        2        -        -        - │
2022-06-30T10:07:26.2217914Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2218861Z   │ ✔  assertions.cy.js                         00:08        9        9        -        -        - │
2022-06-30T10:07:26.2219981Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2220759Z   │ ✔  todo.cy.js                               00:06        6        6        -        -        - │
2022-06-30T10:07:26.2221322Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2221856Z   │ ✔  viewport.cy.js                           00:05        1        1        -        -        - │
2022-06-30T10:07:26.2222420Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2222950Z   │ ✔  waiting.cy.js                            00:09        2        2        -        -        - │
2022-06-30T10:07:26.2223547Z   ├────────────────────────────────────────────────────────────────────────────────────────────────┤
2022-06-30T10:07:26.2224060Z   │ ✔  window.cy.js                             00:03        3        3        -        -        - │
2022-06-30T10:07:26.2224796Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-06-30T10:07:26.2225323Z     ✔  All specs passed!                        01:07       37       37        -        -        -  
2022-06-30T10:07:26.2225517Z 
2022-06-30T10:07:27.4776010Z Succeeded

There is definitely some problem

2022-06-30T10:05:29.6297968Z [31:0630/100529.624757:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 202: Permission denied (13)
2022-06-30T10:05:29.6660227Z [202:0630/100529.661267:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
2022-06-30T10:05:29.6766845Z [202:0630/100529.667628:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

But despite that is seems to be working so I guess there is some problem with my current setup after the migration to v10 as fresh setup works. I will try to divide and conquer the setup and see if I can find something

stychu commented 2 years ago

@lmiller1990 Here is docker image im using

FROM cypress/base:14.17.0

ARG TESTS_FOLDER=/opt/cypress-tests

ENV NODE_PATH=/opt:/usr/lib/node_modules:$TESTS_FOLDER/node_modules

WORKDIR $TESTS_FOLDER

RUN apt-get update && \
  apt-get install --no-install-recommends -y \
  mongo-tools \
  # clean up
  && rm -rf /var/lib/apt/lists/* \
  && apt-get clean

COPY package.json ./package.json

RUN npm install && npm run cy:verify

COPY cypress.config.ts ./cypress.config.ts
COPY cypress ./cypress

ENTRYPOINT ["npm", "run", "cy:integration"]

Maybe this is the problem with the image itself or some codecs/drivers are missing ?

lmiller1990 commented 2 years ago

@stychu potentially... just to clarify, your original message:

After upgrading from version 8.1 to 10.3.0 Cypress doesn't work under Azure pipeline.

Is that your main production project hangs, but the basic one you tried does not? Also - you mentioned going from 8.x to 10.x - in line with your divide and conquer strategy, what if you go to 9.7.0 (latest version of 9.x). I wonder if that will work? At least, it'll minimize the surface area for the code we need to audit to find what's changed.

[31:0630/100615.299047:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 495: Permission denied (13)

Looks like the smoking gun. We have this issue: https://github.com/cypress-io/cypress/issues/22631 which is around how Cypress will sometimes silently ignore errors from browsers (like an OOM error) and just hang. I suspect:

  1. chromium is trying to adjust memory
  2. does not have permission
  3. just continues running anyway, since it does have permission to run, just not to adjust memory limits
  4. runs out of memory, silently hangs

This issue has a similar description (puppeteer, using chromium internally, too): https://github.com/puppeteer/puppeteer/issues/3698

We already handle this here, though: https://github.com/cypress-io/cypress/blob/e6b2466f7b219a86da46c1ac720432ef75193ca4/packages/electron/lib/electron.js#L47

There is some other info in that thread, around dependencies, that might be useful.

I'll need to create an Azure account to continue debugging. I'm out next week :( so I probably won't be able to do this until the week after (11th of July). I do suspect it's a dependency/configuration issue, and something that will be fixed on that end, as opposed to in the main Cypress core repo.

stychu commented 2 years ago

Tried version 9.7 and same issue. It just hangs Basically this starts from 8.2 coz im running 8.1 and all is fine

nagash77 commented 2 years ago

@stychu have you tried to up the resources on the build agents themselves? I'm hoping that can unblock you, since replication on our side is not easy and most likely won't happen in the immediate future.

stychu commented 2 years ago

@nagash77 Hmm not sure if resources are the problem here.

> npx cypress info && npx cypress run --spec "cypress/tests/integration/schema.cy.ts"

[30:0719/170818.309745:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 201: Permission denied (13)
[201:0719/170818.342389:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[201:0719/170818.358282:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Displaying Cypress info...

Detected no known browsers installed

Proxy Settings: none detected
Environment Variables:
.....

Application Data: /root/.config/cypress/cy/development
Browser Profiles: /root/.config/cypress/cy/development/browsers
Binary Caches: /root/.cache/Cypress

Cypress Version: 10.3.0 (stable)
System Platform: linux (Debian - 10.9)
System Memory: 33.7 GB free 22.4 GB
[257:0719/170820.769976:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 427: Permission denied (13)
[427:0719/170820.803118:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[427:0719/170820.807035:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Couldn't find tsconfig.json. tsconfig-paths will be skipped

================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.3.0                                                                         │
  │ Browser:        Electron 100 (headless)                                                        │
  │ Node Version:   v14.17.0 (/usr/local/bin/node)                                                 │
  │ Specs:          1 found (schema.cy.ts)                                                         │
  │ Searched:       cypress/tests/integration/schema.cy.ts                                         │
  │ Experiments:    experimentalSessionAndOrigin=true                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  schema.cy.ts                                                                    (1 of 1)
[257:0719/170825.856938:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 507: Permission denied (13)

  Schemas
#schema.cy.ts

const login = (user = 'admin') => {
  cy.session([user], () => {
    cy.visit('/')
    cy.get('#username').type(user)
    cy.get('#password').type(user)
    cy.get('#user_submit').click()
  })
  cy.visit('/')
  cy.get('.uuid-cell').should('have.length.gte', 6)
}

describe('Schemas', () => {
  it('should admin', () => {
    login()
  })

  it('should 2', () => {
    login('user')
    cy.get('#dataSubscriptions').click()
    cy.contains('Subscribe').should('contain.text', 'Subscribe')
  })

  it('should admin 2', () => {
    login()
    cy.contains('1841e0').click()
    cy.contains('Edit').should('contain.text', 'arabeska')
  })
})

I created new cypress folder.

stychu commented 2 years ago

I found something interesting but dunno if this helps in anything.

So:

Cypress:        10.3.1                                                                        
Browser:        Electron 100 (headless)                                                      
Node Version:   v14.17.0

1. cy.visit('/unknown') - (404: Not Found) kinda works as pipeline executes successfully as cypress finishes the process
2. cy.visit('/') - doesn't work cypress process hangs pipeline timeouts
marktnoonan commented 2 years ago

Hi @stychu just reading through here and catching up. I've taken a look at the changelog for 8.2.0 since you've identified something changed at that point. Nothing sticks out to me but maybe you'd like to review: https://github.com/cypress-io/cypress/releases/tag/v8.2.0. This is the release that introduced some experimental session stuff, and proxy logging, for example. But it's hard to picture a change that would break only your Azure pipeline 🤔.

I'm curious, if we were to try to reproduce this:

1. cy.visit('/unknown') - (404: Not Found) kinda works as pipeline executes successfully as cypress finishes the process
2. cy.visit('/') - doesn't work cypress process hangs pipeline timeouts

What do you current see if you visit a known good URL that's not a part of your application at all, does Cypress work normally? Eg cy.visit('https://developer.mozilla.org/en-US/') or whatever. Does it hang the same way?

And relating to your earlier comment:

But despite that is seems to be working so I guess there is some problem with my current setup after the migration to v10 as fresh setup works

Honestly I think if a fresh setup is working it's going to be hard to track this down to a bug in Cypress. Not going to close the issue just yet but it seems like to reproduce we'd need your whole exact project and setup, and we'll probably be doing same thing you're doing of trying to compare those two and isolate what's different, and then with that information look at what changed in Cy 8.2.0.

If you are able to identify what causes your "fresh" setup to break in the same way as your application it will be a big help.

stychu commented 2 years ago

What do you current see if you visit a known good URL that's not a part of your application at all, does Cypress work normally? Eg cy.visit('https://developer.mozilla.org/en-US/') or whatever. Does it hang the same way?

No it doesn't hang. Reaching https://developer.mozilla.org/en-US/ works.

P.S.

It seems there is some issue with the routing or something. I've checked simple example on different cypress versions:

const login = (user = 'admin') => {
  cy.visit('/')
  cy.url().should('contain', '/auth')
  cy.get('#username').type(user)
  cy.get('#password').type(user)
  cy.get('#user_submit').click()
  cy.get('.uuid-cell').should('have.length.above', 5)
}

describe('Schemas', () => {
  it('should admin', () => {
    login()
  })

  it('should 2', () => {
    login('user')
    cy.get('#dataSubscriptions').click()
    cy.contains('xyz').should('contain.text', 'xyz')
  })

  it('should admin 2', () => {
    login()
    cy.contains('1841e0').click()
    cy.contains('xyz').should('contain.text', 'xyz')
  })
})

I did just change the cypress version and respective cypress.config.ts file respectively to the cypress version and nothing more.

marktnoonan commented 2 years ago

Thanks @stychu this is very helpful. Going to give it some thought. I wonder what variables are different in CI for you around like ... the base URL of the application, the auth URL, things like that. Wonder if some work around multi-domain support has affected your setup in CI only due to running in a different location.

It's really good to know what changes you saw when.

I've checked simple example on different cypress versions:

Is the simple example something you can share? It sounds like, if set up an Azure account, we should be able to reproduce, at which point I can route this to the team to work on.

stychu commented 2 years ago

Is the simple example something you can share?

I was referring to the cypress setup. The azure pipeline is not so simple and I believe I wont be able to share configuration for that.

I have a meeting with DevOps guys to verify all setup with networking is fine on azure. Will ask if I can share configuration.

stychu commented 2 years ago

Seems like this is the same case as mine. Forgot to mention anything about kubernetes 😵‍💫 https://github.com/cypress-io/cypress/issues/22954#issue-1319659256

stychu commented 2 years ago

This does seem work tho. BUt the version I run here is 10.3.1 his is running 9.7.0

    app-integration-tests > app-tests@1.0.0 cy:integration /opt/cypress-tests                                                                                                                                                 │
│ app-integration-tests > DEBUG=* DEBUG_DEPTH=3 npx cypress verify                                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:58.928Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/opt/cypress-tests/node_modules/.bin/cypress","verify"]                                                  │
│ app-integration-tests 2022-07-28T14:32:58.929Z cypress:cli NODE_OPTIONS is not set                                                                                                                                        │
│ app-integration-tests 2022-07-28T14:32:58.930Z cypress:cli:cli program parsing arguments                                                                                                                                  │
│ app-integration-tests 2022-07-28T14:32:58.932Z cypress:cli parsed cli options {}                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:59.060Z cypress:cli verifying Cypress app                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:59.061Z cypress:cli checking environment variables                                                                                                                                 │
│ app-integration-tests 2022-07-28T14:32:59.064Z cypress:cli checking if executable exists /root/.cache/Cypress/10.3.1/Cypress/Cypress                                                                                      │
│ app-integration-tests 2022-07-28T14:32:59.065Z cypress:cli Binary is executable? : true                                                                                                                                   │
│ app-integration-tests 2022-07-28T14:32:59.066Z cypress:cli binaryDir is  /root/.cache/Cypress/10.3.1/Cypress                                                                                                              │
│ app-integration-tests 2022-07-28T14:32:59.066Z cypress:cli Reading binary package.json from: /root/.cache/Cypress/10.3.1/Cypress/resources/app/package.json                                                               │
│ app-integration-tests 2022-07-28T14:32:59.071Z cypress:cli Found binary version 10.3.1 installed in: /root/.cache/Cypress/10.3.1/Cypress                                                                                  │
│ app-integration-tests 2022-07-28T14:32:59.072Z cypress:cli { verified: true }                                                                                                                                             │
│ app-integration-tests 2022-07-28T14:32:59.073Z cypress:cli is Verified ? true                                                                                                                                             │
│ app-integration-tests 2022-07-28T14:32:59.073Z cypress:cli force verify                                                                                                                                                   │
│ app-integration-tests 2022-07-28T14:32:59.073Z cypress:cli running binary verification check 10.3.1                                                                                                                       │
│ app-integration-tests [STARTED] Task without title.                                                                                                                                                                       │
│ app-integration-tests 2022-07-28T14:32:59.077Z cypress:cli clearing out the verified version                                                                                                                              │
│ app-integration-tests 2022-07-28T14:32:59.079Z cypress:cli undefined DISPLAY environment variable                                                                                                                         │
│ app-integration-tests 2022-07-28T14:32:59.079Z cypress:cli Cypress will spawn its own Xvfb                                                                                                                                │
│ app-integration-tests 2022-07-28T14:32:59.079Z cypress:cli needs Xvfb? true                                                                                                                                               │
│ app-integration-tests 2022-07-28T14:32:59.079Z cypress:cli Starting Xvfb                                                                                                                                                  │
│ app-integration-tests 2022-07-28T14:32:59.080Z xvfb lock filename /tmp/.X99-lock                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:59.080Z xvfb lock filename /tmp/.X99-lock                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:59.080Z xvfb setting DISPLAY :99                                                                                                                                                   │
│ app-integration-tests 2022-07-28T14:32:59.082Z xvfb all Xvfb arguments [ ':99', '-screen', '0', '1280x1024x24' ]                                                                                                          │
│ app-integration-tests 2022-07-28T14:32:59.090Z xvfb checking if started by looking for the lock file /tmp/.X99-lock                                                                                                       │
│ app-integration-tests 2022-07-28T14:32:59.101Z xvfb checking if started by looking for the lock file /tmp/.X99-lock                                                                                                       │
│ app-integration-tests 2022-07-28T14:32:59.101Z xvfb lock file /tmp/.X99-lock found after 10 ms                                                                                                                            │
│ app-integration-tests 2022-07-28T14:32:59.102Z cypress:cli disabling Electron sandbox                                                                                                                                     │
│ app-integration-tests 2022-07-28T14:32:59.102Z cypress:cli running smoke test                                                                                                                                             │
│ app-integration-tests 2022-07-28T14:32:59.102Z cypress:cli using Cypress executable /root/.cache/Cypress/10.3.1/Cypress/Cypress                                                                                           │
│ app-integration-tests 2022-07-28T14:32:59.102Z cypress:cli smoke test command: /root/.cache/Cypress/10.3.1/Cypress/Cypress --no-sandbox --smoke-test --ping=351                                                           │
│ app-integration-tests 2022-07-28T14:32:59.102Z cypress:cli smoke test timeout 30000 ms                                                                                                                                    │
│ app-integration-tests 2022-07-28T14:33:01.689Z cypress:cli smoke test stdout "It looks like you are running the Cypress binary directly.                                                                                  │
│ app-integration-tests This is not the recommended approach, and Cypress may not work correctly.                                                                                                                           │
│ app-integration-tests Please install the cypress NPM package and follow the instructions here:
│ app-integration-tests https://on.cypress.io/installing-cypress                                                                                                                                                            │
│ app-integration-tests 351"                                                                                                                                                                                                │
│ app-integration-tests 2022-07-28T14:33:01.690Z cypress:cli Stopping Xvfb                                                                                                                                                  │
│ app-integration-tests 2022-07-28T14:33:01.690Z xvfb restoring process.env.DISPLAY variable                                                                                                                                │
│ app-integration-tests 2022-07-28T14:33:01.690Z xvfb lock filename /tmp/.X99-lock                                                                                                                                          │
│ app-integration-tests 2022-07-28T14:33:01.690Z xvfb lock file /tmp/.X99-lock                                                                                                                                              │
│ app-integration-tests 2022-07-28T14:33:01.722Z xvfb lock file /tmp/.X99-lock not found when stopping                                                                                                                      │
│ app-integration-tests 2022-07-28T14:33:01.722Z cypress:cli write verified: true                                                                                                                                           │
│ app-integration-tests 2022-07-28T14:33:01.723Z cypress:cli could not read binary_state.json file at "/root/.cache/Cypress/10.3.1/binary_state.json"                                                                       │
│ app-integration-tests [TITLE]  Verified Cypress!       /root/.cache/Cypress/10.3.1/Cypress                                                                                                                                │
│ app-integration-tests [SUCCESS]  Verified Cypress!       /root/.cache/Cypress/10.3.1/Cypress
stychu commented 2 years ago

I've played a bit more with DEBUG "DEBUG=cypress:server:* npx cypress run", and it seems for some reason on azure kubernetes cypress entersinfinite loop. Logs are just spamming all the time infinitely they never stop where as locally in docker it finishes without a problem

stychu commented 2 years ago

I can see it hits /login successfully but thats it and it repeats infinitely

│ [redacted]-integration-tests 2022-07-28T15:45:04.277Z cypress:server:automation:cookies getting:cookies { domain: '[redacted]' }                                                                                                        │
│ [redacted]-integration-tests 2022-07-28T15:45:04.278Z cypress:server:automation:cookies received get:cookies []                                                                                                                  │
│ [redacted]-integration-tests 2022-07-28T15:45:04.278Z cypress:server:server-e2e setting details resolving url { isOkStatusCode: true, contentType: 'text/html', url: 'http://[redacted]/login', status: 200, cookies: [] │
│ , statusText: 'OK', redirects: [], originalUrl: 'http://[redacted]/login' }                                                                                                                                       │
│ [redacted]-integration-tests 2022-07-28T15:45:04.278Z cypress:server:server-e2e resolve:url response ended, setting buffer { newUrl: 'http://[redacted]/login', details: { isOkStatusCode: true, contentType: 'text/html │
│ ', url: 'http://[redacted]/login', status: 200, cookies: [], statusText: 'OK', redirects: [], originalUrl: 'http://[redacted]/login', isHtml: true } }                                                    │
│ [redacted]-integration-tests 2022-07-28T15:45:04.278Z cypress:server:remote-states setting remote state { auth: null, origin: 'http://[redacted]', strategy: 'http', fileServer: null, domainName: '[redacted]', props: { port: '80', tld: 'ap │
│ p', domain: '' } } for http://[redacted]                                                                                                                                                                                         │
│ [redacted]-integration-tests 2022-07-28T15:45:04.278Z cypress:server:remote-states getting remote state: { auth: null, origin: 'http://[redacted]', strategy: 'http', fileServer: null, domainName: '[redacted]', props: { port: '80', tld: 'a │
│ pp', domain: '' } } for: http://[redacted]                                                                                                                                                                                       │
│ [redacted]-integration-tests 2022-07-28T15:45:04.281Z cypress:server:socket-base backend:request { eventName: 'preserve:run:state', args: [ { currentId: 'r3', tests: {}, startTime: '2022-07-28T15:21:16.506Z', emissions: [Obj │
│ ct[], passed: 0, failed: 0, pending: 0, numLogs: 0, autoScrollingEnabled: true, scrollTop: 0, studio: [Object] } ] }                                                                                                      │
│ [redacted]-integration-tests 2022-07-28T15:45:04.283Z cypress:server:util:socket_allowed allowed socket closed, removing { localPort: 34500 }                                                                                    │
| [redacted]-integration-tests 2022-07-28T15:45:04.285Z cypress:server:socket-base socket-disconnecting transport close                                                                                                            │
│ [redacted]-integration-tests 2022-07-28T15:45:04.285Z cypress:server:socket-base socket-disconnect transport close                                                                                                               |
mjhenkes commented 2 years ago

@stychu, here is the pre-release you could try: https://github.com/cypress-io/cypress/commit/f147ebbcc63dcb8199472a9ae6a0b78a189ba428#commitcomment-79743572

stychu commented 2 years ago

@stychu, here is the pre-release you could try: f147ebb#commitcomment-79743572

Ahh I was hoping so badly this will resolve the issue but it seems this is not the case. 😭 Process still enters an infinite loop

https://user-images.githubusercontent.com/9383657/181879002-d01306f2-cd58-48dc-b34a-24cd25955da9.mov

stychu commented 2 years ago

I did make a quick check with freshly released v10.4 and as I observed before with debug logs, cypress indeed enters an infinite loop as soon as it hits my localhost it immediately repeats the test.

Example tests that come with fresh cypress setup are all working fine. It just happens whenever I hit localhost on Azure kubernetes.

cypress.config.ts
...
e2e: {
    setupNodeEvents(on) {
      // implement node event listeners here

      on('task', {
        logMe(value) {
          console.log('-----------------------START-----------------------')
          console.log(value)
          console.log('-----------------------END-----------------------')

          return value
        },
      })
    },
  },
check.cy.js

/// <reference types="cypress" />

context('Assertions', () => {
  beforeEach(() => {
    cy.task('logMe', 'CHECK')
  })

  describe('LOCATION', () => {
    it('see page', () => {
      cy.task('logMe', 'BEFORE VISIT')
      cy.visit('http://app/.../login')          // 'http://app' is equivalent to locahlost on kubernetes 
      cy.task('logMe', 'AFTER VISIT')
    })
  })
})

Test outputs

2022-08-03T10:15:44.1673694Z > npx cypress run
2022-08-03T10:15:44.1674306Z 
2022-08-03T10:15:45.5446021Z [30:0803/101545.534836:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 200: Permission denied (13)
2022-08-03T10:15:45.5799446Z [200:0803/101545.575026:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
2022-08-03T10:15:47.2079652Z Couldn't find tsconfig.json. tsconfig-paths will be skipped
2022-08-03T10:15:48.4912824Z 
2022-08-03T10:15:48.4929659Z ================================================================================
2022-08-03T10:15:48.4930200Z 
2022-08-03T10:15:48.4935109Z   (Run Starting)
2022-08-03T10:15:48.4935834Z 
2022-08-03T10:15:48.5077879Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-08-03T10:15:48.5085044Z   │ Cypress:        10.4.0                                                                         │
2022-08-03T10:15:48.5086338Z   │ Browser:        Electron 102 (headless)                                                        │
2022-08-03T10:15:48.5087557Z   │ Node Version:   v14.17.0 (/usr/local/bin/node)                                                 │
2022-08-03T10:15:48.5088815Z   │ Specs:          4 found (todo.cy.js, actions.cy.js, assertions.cy.js, check.cy.js)             │
2022-08-03T10:15:48.5089836Z   │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
2022-08-03T10:15:48.5090877Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-08-03T10:15:48.5091478Z 
2022-08-03T10:15:48.5091683Z 
2022-08-03T10:15:48.5136224Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-08-03T10:15:48.5136841Z                                                                                                     
2022-08-03T10:15:48.5137252Z   Running:  todo.cy.js                                                                      (1 of 4)
2022-08-03T10:15:48.6235487Z [30:0803/101548.610295:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 279: Permission denied (13)
2022-08-03T10:15:51.8197157Z 
2022-08-03T10:15:51.8198348Z 
2022-08-03T10:15:51.8402368Z   example to-do app
2022-08-03T10:15:54.7555542Z     ✓ displays two todo items by default (870ms)
2022-08-03T10:15:55.2233087Z     ✓ can add new todo items (476ms)
2022-08-03T10:15:55.4896136Z     ✓ can check off an item as completed (250ms)
2022-08-03T10:15:55.4938605Z     with a checked task
2022-08-03T10:15:55.8420175Z       ✓ can filter for uncompleted tasks (344ms)
2022-08-03T10:15:56.1827281Z       ✓ can filter for completed tasks (349ms)
2022-08-03T10:15:56.5264335Z       ✓ can delete all completed tasks (331ms)
2022-08-03T10:15:56.5295289Z 
2022-08-03T10:15:56.5295847Z 
2022-08-03T10:15:56.5296397Z   6 passing (5s)
2022-08-03T10:15:56.5296591Z 
2022-08-03T10:15:57.9916112Z 
2022-08-03T10:15:57.9917831Z   (Results)
2022-08-03T10:15:57.9918358Z 
2022-08-03T10:15:57.9920221Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-08-03T10:15:57.9921365Z   │ Tests:        6                                                                                │
2022-08-03T10:15:57.9922252Z   │ Passing:      6                                                                                │
2022-08-03T10:15:57.9923174Z   │ Failing:      0                                                                                │
2022-08-03T10:15:57.9924028Z   │ Pending:      0                                                                                │
2022-08-03T10:15:57.9925067Z   │ Skipped:      0                                                                                │
2022-08-03T10:15:57.9925988Z   │ Screenshots:  0                                                                                │
2022-08-03T10:15:57.9926853Z   │ Video:        true                                                                             │
2022-08-03T10:15:57.9927739Z   │ Duration:     4 seconds                                                                        │
2022-08-03T10:15:57.9928618Z   │ Spec Ran:     todo.cy.js                                                                       │
2022-08-03T10:15:57.9929575Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-08-03T10:15:57.9929906Z 
2022-08-03T10:15:57.9930065Z 
2022-08-03T10:15:57.9930819Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-08-03T10:15:57.9931872Z                                                                                                     
2022-08-03T10:15:57.9932735Z   Running:  actions.cy.js                                                                   (2 of 4)
2022-08-03T10:15:58.0236540Z [30:0803/101558.017702:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 451: Permission denied (13)
2022-08-03T10:15:59.8504906Z 
2022-08-03T10:15:59.8647409Z 
2022-08-03T10:15:59.8886959Z   Actions
2022-08-03T10:16:05.7705079Z     ✓ .type() - type into a DOM element (4050ms)
2022-08-03T10:16:06.0213018Z     ✓ .focus() - focus on a DOM element (218ms)
2022-08-03T10:16:06.8095947Z     ✓ .blur() - blur off a DOM element (784ms)
2022-08-03T10:16:07.7699349Z     ✓ .clear() - clears an input or textarea element (953ms)
2022-08-03T10:16:08.2478028Z     ✓ .submit() - submit a form (472ms)
2022-08-03T10:16:11.2196287Z     ✓ .click() - click on a DOM element (2966ms)
2022-08-03T10:16:11.5578608Z     ✓ .dblclick() - double click on a DOM element (332ms)
2022-08-03T10:16:11.8784732Z     ✓ .rightclick() - right click on a DOM element (314ms)
2022-08-03T10:16:13.1035948Z     ✓ .check() - check a checkbox or radio element (1218ms)
2022-08-03T10:16:14.3182997Z     ✓ .uncheck() - uncheck a checkbox element (1207ms)
2022-08-03T10:16:15.4568897Z     ✓ .select() - select an option in a <select> element (1130ms)
2022-08-03T10:16:15.6791336Z     ✓ .scrollIntoView() - scroll an element into view (202ms)
2022-08-03T10:16:15.9039779Z     ✓ .trigger() - trigger an event on a DOM element (221ms)
2022-08-03T10:16:18.1243479Z     ✓ cy.scrollTo() - scroll the window or element to a position (2170ms)
2022-08-03T10:16:18.4113810Z 
2022-08-03T10:16:18.4156981Z 
2022-08-03T10:16:18.4159643Z   14 passing (19s)
2022-08-03T10:16:18.4196889Z 
2022-08-03T10:16:19.5256804Z 
2022-08-03T10:16:19.5265414Z   (Results)
2022-08-03T10:16:19.5282509Z 
2022-08-03T10:16:19.5463946Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-08-03T10:16:19.5476772Z   │ Tests:        14                                                                               │
2022-08-03T10:16:19.5477702Z   │ Passing:      14                                                                               │
2022-08-03T10:16:19.5478462Z   │ Failing:      0                                                                                │
2022-08-03T10:16:19.5495540Z   │ Pending:      0                                                                                │
2022-08-03T10:16:19.5497195Z   │ Skipped:      0                                                                                │
2022-08-03T10:16:19.5498094Z   │ Screenshots:  0                                                                                │
2022-08-03T10:16:19.5499326Z   │ Video:        true                                                                             │
2022-08-03T10:16:19.5500783Z   │ Duration:     18 seconds                                                                       │
2022-08-03T10:16:19.5502144Z   │ Spec Ran:     actions.cy.js                                                                    │
2022-08-03T10:16:19.5504126Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-08-03T10:16:19.5504344Z 
2022-08-03T10:16:19.5593671Z 
2022-08-03T10:16:19.5610737Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-08-03T10:16:19.5611216Z                                                                                                     
2022-08-03T10:16:19.5611626Z   Running:  assertions.cy.js                                                                (3 of 4)
2022-08-03T10:16:19.7466822Z [30:0803/101619.742753:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 495: Permission denied (13)
2022-08-03T10:16:29.7901169Z 
2022-08-03T10:16:29.8947458Z 
2022-08-03T10:16:30.0363246Z   Assertions
2022-08-03T10:16:30.0374239Z     Implicit Assertions
2022-08-03T10:16:48.2227878Z       ✓ .should() - make an assertion about the current subject (5098ms)
2022-08-03T10:16:50.2375300Z       ✓ .and() - chain multiple assertions together (1799ms)
2022-08-03T10:16:50.5239433Z     Explicit Assertions
2022-08-03T10:16:51.7555170Z       ✓ expect - make an assertion about a specified subject (1454ms)
2022-08-03T10:16:53.0911312Z       ✓ pass your own callback function to should() (1347ms)
2022-08-03T10:16:54.8143358Z       ✓ finds element by class name regex (1582ms)
2022-08-03T10:16:56.3352063Z       ✓ can throw any error (1396ms)
2022-08-03T10:16:57.4176315Z       ✓ matches unknown text between two elements (1095ms)
2022-08-03T10:16:58.6732950Z       ✓ assert - assert shape of an object (1175ms)
2022-08-03T10:17:01.7798345Z       ✓ retries the should callback until assertions pass (2976ms)
2022-08-03T10:17:01.9910707Z 
2022-08-03T10:17:02.0314932Z 
2022-08-03T10:17:02.0895172Z   9 passing (32s)
2022-08-03T10:17:02.0905296Z 
2022-08-03T10:17:18.9959459Z 
2022-08-03T10:17:18.9969122Z   (Results)
2022-08-03T10:17:18.9969586Z 
2022-08-03T10:17:19.0052075Z   ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
2022-08-03T10:17:19.0065720Z   │ Tests:        9                                                                                │
2022-08-03T10:17:19.0067205Z   │ Passing:      9                                                                                │
2022-08-03T10:17:19.0068517Z   │ Failing:      0                                                                                │
2022-08-03T10:17:19.0072314Z   │ Pending:      0                                                                                │
2022-08-03T10:17:19.0074346Z   │ Skipped:      0                                                                                │
2022-08-03T10:17:19.0075549Z   │ Screenshots:  0                                                                                │
2022-08-03T10:17:19.0076704Z   │ Video:        true                                                                             │
2022-08-03T10:17:19.0078253Z   │ Duration:     32 seconds                                                                       │
2022-08-03T10:17:19.0079073Z   │ Spec Ran:     assertions.cy.js                                                                 │
2022-08-03T10:17:19.0079926Z   └────────────────────────────────────────────────────────────────────────────────────────────────┘
2022-08-03T10:17:19.0080133Z 
2022-08-03T10:17:19.0719006Z 
2022-08-03T10:17:19.0729427Z ────────────────────────────────────────────────────────────────────────────────────────────────────
2022-08-03T10:17:19.0730073Z                                                                                                     
2022-08-03T10:17:19.0730624Z   Running:  check.cy.js                                                                     (4 of 4)
2022-08-03T10:17:19.2311589Z [30:0803/101719.217788:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 538: Permission denied (13)
2022-08-03T10:17:29.8884364Z 
2022-08-03T10:17:29.8950496Z 
2022-08-03T10:17:30.1037573Z   Assertions
2022-08-03T10:17:30.1129066Z     LOCATION
2022-08-03T10:17:30.2570182Z -----------------------START-----------------------
2022-08-03T10:17:30.2613986Z CHECK
2022-08-03T10:17:30.2626346Z -----------------------END-----------------------
2022-08-03T10:17:30.6181223Z -----------------------START-----------------------
2022-08-03T10:17:30.6754939Z BEFORE VISIT
2022-08-03T10:17:30.6756402Z -----------------------END-----------------------
2022-08-03T10:17:36.8893461Z -----------------------START-----------------------
2022-08-03T10:17:36.8904196Z CHECK
2022-08-03T10:17:36.8940714Z -----------------------END-----------------------
2022-08-03T10:17:37.0836694Z -----------------------START-----------------------
2022-08-03T10:17:37.0854607Z BEFORE VISIT
2022-08-03T10:17:37.0855656Z -----------------------END-----------------------
2022-08-03T10:17:41.2906968Z -----------------------START-----------------------
2022-08-03T10:17:41.2907759Z CHECK
2022-08-03T10:17:41.2909096Z -----------------------END-----------------------
2022-08-03T10:17:41.6269283Z -----------------------START-----------------------
2022-08-03T10:17:41.6278971Z BEFORE VISIT
2022-08-03T10:17:41.6280403Z -----------------------END-----------------------
2022-08-03T10:17:45.9559532Z -----------------------START-----------------------
2022-08-03T10:17:45.9563387Z CHECK
2022-08-03T10:17:45.9565033Z -----------------------END-----------------------
2022-08-03T10:17:46.1669880Z -----------------------START-----------------------
2022-08-03T10:17:46.1687399Z BEFORE VISIT
2022-08-03T10:17:46.1688780Z -----------------------END-----------------------
2022-08-03T10:17:55.5351045Z -----------------------START-----------------------
2022-08-03T10:17:55.5477489Z CHECK
2022-08-03T10:17:55.5482823Z -----------------------END-----------------------
2022-08-03T10:17:55.7519935Z -----------------------START-----------------------
2022-08-03T10:17:55.7520607Z BEFORE VISIT
2022-08-03T10:17:55.7521284Z -----------------------END-----------------------
2022-08-03T10:18:05.2159724Z -----------------------START-----------------------
2022-08-03T10:18:05.2160720Z CHECK
2022-08-03T10:18:05.2161519Z -----------------------END-----------------------
2022-08-03T10:18:05.4724560Z -----------------------START-----------------------
2022-08-03T10:18:05.4745482Z BEFORE VISIT
2022-08-03T10:18:05.4746558Z -----------------------END-----------------------
2022-08-03T10:18:14.6674737Z -----------------------START-----------------------
2022-08-03T10:18:14.6675579Z CHECK
2022-08-03T10:18:14.6676449Z -----------------------END-----------------------
2022-08-03T10:18:14.9435527Z -----------------------START-----------------------
2022-08-03T10:18:14.9450351Z BEFORE VISIT
2022-08-03T10:18:14.9451983Z -----------------------END-----------------------
2022-08-03T10:18:25.6464773Z -----------------------START-----------------------
2022-08-03T10:18:25.6543757Z CHECK
2022-08-03T10:18:25.6544955Z -----------------------END-----------------------
2022-08-03T10:18:25.8540102Z -----------------------START-----------------------
2022-08-03T10:18:25.8540723Z BEFORE VISIT
2022-08-03T10:18:25.8541400Z -----------------------END-----------------------

Hmmm might it happen that the 'http://app' has some conflict with cypress internals and thus making it break ??

AtofStryker commented 2 years ago

Hey @stychu . I am a not entirely sure what is going on here, but have you tried upgrading the base image you are using based on node 14 to something node 16 based, such as 16.14.2 for v10 or 16.5.0 for v9? Cypress 9 released a change where system node is used over the packaged node version, and we internally upgraded to 16.5.0, which had a few changes to the http stream. It might be unrelated and my guess is it shouldn't matter, but it might be good to rule out.

stychu commented 2 years ago

I believe I excluded the case with node at the beginning. Anyway I checked with cypress/base:16 and got same results. Additionally I checked accessing application via cy.request and it was able to get the html. The problem arises when cypress tries to cy.visit application

it('should call api', () => {
      cy.request({ url: 'http://core/....', failOnStatusCode: false }).its('status').should('equal', 401) // WORKS
    })
    it('should return app html', () => {
      cy.request({ url: 'http://app/.../login' }).its('body').should('contain', '<title>....</title>').and('contain', 'Sign in with ....').and('contain', '__INITIAL_STATE__') /// WORKS
    })
    it('see page', () => {
      cy.task('logMe', 'BEFORE VISIT')
      cy.visit('http://app/.../login')  // DOESNT WORK
      cy.task('logMe', 'AFTER VISIT')
    })
stychu commented 2 years ago

I've forwarded connection to the azure cluster so I could reach it from local and try cypress and this is what happens.

https://user-images.githubusercontent.com/9383657/182830253-5bb98015-fafc-443f-95b5-1ca3eec1fbdc.mp4

stychu commented 2 years ago

I did make a quick check with freshly released v10.4 and as I observed before with debug logs, cypress indeed enters an ...

Hmmm might it happen that the 'http://app' has some conflict with cypress internals and thus making it break ??

OMGGG I was right... We changed the domain that we expose our application under something other than app and IT WORKS!!!

Finally I can consume v10...

I would suggest to also scope cypress to something other thenapp to avoid such problems in the future. It might be edge case but still happened 🗡️ 🩸

@mjhenkes @AtofStryker @marktnoonan @lmiller1990 @jennifer-shehane Not sure if you want me to report this in a separate ticket as a bug. If no feel free to close the ticket. Otherwise let me know 👍

AtofStryker commented 2 years ago

@stychu now that's interesting. Out of curiosity, I tried setting 127.0.0.1 to app in my /etc/hosts and I also experienced similar behavior (chrome, edge, etc) in the browser external to Cypress. Any time I tried to visit http://app I was 307 redirected (which might be why you saw the infinite redirect behavior you did). I tried setting the host to other known TLD/hosts, like com and www, and had no issues. It almost feels like app is a reserved word, but I cannot find anything to confirm this believe. I was looking through this RFC, but nothing stood out.

The good news is I don't think this is an issue with Cypress, so I am likely going to close this issue. I'm glad you figured it out 😃 !

gogoid88 commented 1 year ago

I did make a quick check with freshly released v10.4 and as I observed before with debug logs, cypress indeed enters an ...

Hmmm might it happen that the 'http://app' has some conflict with cypress internals and thus making it break ??

OMGGG I was right... We changed the domain that we expose our application under something other than app and IT WORKS!!!

Finally I can consume v10...

I would suggest to also scope cypress to something other thenapp to avoid such problems in the future. It might be edge case but still happened 🗡️ 🩸

@mjhenkes @AtofStryker @marktnoonan @lmiller1990 @jennifer-shehane Not sure if you want me to report this in a separate ticket as a bug. If no feel free to close the ticket. Otherwise let me know 👍

Hi @stychu , how do you expose the application domain ? I dont see how this could solve the cypress issue on docker when cypress needs nothing to be fixed.

burnettk commented 5 months ago

adding DEBUG=* DEBUG_DEPTH=3 helped lead me to my issue (thanks, stychu). i had specified args: ["-c", "specPattern=/**/*.cy.js"] and the fact that it was looking in the root directory was making it very unhappy. what i actually wanted was "*/.cy.js"