cypress
cypress copied to clipboard
SIGILL when cypress is run via an EXEC in NESTJS in DOCKER
Current behavior
If my NestJS server run cypress ('./node_modules/.bin/cypress run') via an child_process.exec/spawn/fork/ command in a docker it cause a an exit event of cypress with the signal SIGILL,
if i simply exec cypress from a simple js file, there is not this issue this issue also dosen't appear if i'm running the back and cypress directly on a machine, it only happen in docker (on any machine)
Desired behavior
in ideal case cypress should run like any other program with an exec (and i've tested, i can exec any other programs without issues)
Test code to reproduce
import { Injectable } from '@nestjs/common';
import { exec, execSync, spawn, fork } from "child_process";
@Injectable()
export class CypressService {
launchTest(): void {
exec('./node_modules/.bin/cypress run', { cwd: "path-to-cypress"}, ((error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
}
if (stderr) {
console.log(`stderr: ${stderr}`);
}
console.log(`stdout: ${stdout}`);
}));
}
}
Cypress Version
10.4.0
Node version
18.9.0
Operating System
Ubuntu 22.04 x64
Debug Logs
2022-09-16T15:34:13.293Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/app/cypress-runtime/node_modules/.bin/cypress","run"]
2022-09-16T15:34:13.294Z cypress:cli NODE_OPTIONS is not set
2022-09-16T15:34:13.294Z cypress:cli:cli program parsing arguments
2022-09-16T15:34:13.298Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 22, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/app/cypress-runtime/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } ]
2022-09-16T15:34:13.364Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/app/cypress-runtime/node_modules/.bin/cypress', 'run' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 22, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/app/cypress-runtime/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } }
2022-09-16T15:34:13.366Z cypress:cli parsed cli options {}
2022-09-16T15:34:13.366Z cypress:cli verifying Cypress app
2022-09-16T15:34:13.366Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.366Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.366Z cypress:cli using environment variable CYPRESS_CACHE_FOLDER /cypress/.cache
2022-09-16T15:34:13.367Z cypress:cli checking environment variables
2022-09-16T15:34:13.369Z cypress:cli checking if executable exists /cypress/.cache/10.4.0/Cypress/Cypress
2022-09-16T15:34:13.370Z cypress:cli Binary is executable? : true
2022-09-16T15:34:13.370Z cypress:cli binaryDir is /cypress/.cache/10.4.0/Cypress
2022-09-16T15:34:13.370Z cypress:cli Reading binary package.json from: /cypress/.cache/10.4.0/Cypress/resources/app/package.json
2022-09-16T15:34:13.373Z cypress:cli Found binary version 10.4.0 installed in: /cypress/.cache/10.4.0/Cypress
2022-09-16T15:34:13.373Z cypress:cli { verified: true }
2022-09-16T15:34:13.373Z cypress:cli is Verified ? true
2022-09-16T15:34:13.374Z cypress:cli:run processing run options { key: null, spec: null, reporter: null, reporterOptions: null, project: '/app/cypress-runtime' }
2022-09-16T15:34:13.374Z cypress:cli:run --key is not set, looking up environment variable CYPRESS_RECORD_KEY
2022-09-16T15:34:13.374Z cypress:cli:run run to spawn.start args ["--run-project","/app/cypress-runtime"]
2022-09-16T15:34:13.374Z cypress:cli undefined DISPLAY environment variable
2022-09-16T15:34:13.374Z cypress:cli Cypress will spawn its own Xvfb
2022-09-16T15:34:13.374Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.374Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.374Z cypress:cli using environment variable CYPRESS_CACHE_FOLDER /cypress/.cache
2022-09-16T15:34:13.374Z cypress:cli needs to start own Xvfb? true
2022-09-16T15:34:13.374Z cypress:cli Starting Xvfb
2022-09-16T15:34:13.393Z cypress:cli spawning, should retry on display problem? false
2022-09-16T15:34:13.398Z cypress:cli passing DISPLAY :99
2022-09-16T15:34:13.399Z cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] }
2022-09-16T15:34:13.399Z cypress:cli spawning Cypress with executable: /cypress/.cache/10.4.0/Cypress/Cypress
2022-09-16T15:34:13.401Z cypress:cli piping child STDERR to process STDERR
2022-09-16T15:34:13.525Z cypress:ts registering ts-node on directory undefined
2022-09-16T15:34:13.572Z cypress:ts Running without ts-node hook in environment "production"
2022-09-16T15:34:14.146Z cypress:server:appdata path: /root/.config/Cypress/cy/production/cache
2022-09-16T15:34:14.179Z cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers
2022-09-16T15:34:14.185Z cypress:server:cypress starting cypress with argv [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ]
2022-09-16T15:34:14.185Z cypress:server:args argv array: [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ]
2022-09-16T15:34:14.186Z cypress:server:args parsed argv options { options: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, 'run-project': '/app/cypress-runtime', runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0' } }
2022-09-16T15:34:14.187Z cypress:server:args argv parsed: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true }
2022-09-16T15:34:14.187Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' }
2022-09-16T15:34:14.188Z cypress:server:args options { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {} }
2022-09-16T15:34:14.188Z cypress:server:args argv options: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {}, projectRoot: '/app/cypress-runtime' }
2022-09-16T15:34:14.188Z cypress:server:cypress from argv [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ] got options { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {}, projectRoot: '/app/cypress-runtime' }
2022-09-16T15:34:14.188Z cypress:server:cypress scaling electron app in headless mode
2022-09-16T15:34:14.265Z cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGILL' }
2022-09-16T15:34:14.265Z cypress:cli detecting arch { osPlatform: 'linux', osArch: 'x64' }
2022-09-16T15:34:14.272Z cypress:cli arm uname -m result: { stdout: 'x86_64' }
2022-09-16T15:34:14.272Z cypress:cli child event fired { event: 'close', code: null, signal: 'SIGILL' }
2022-09-16T15:34:14.274Z cypress:cli Stopping Xvfb
stderr: 2022-09-16T15:34:13.293Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/app/cypress-runtime/node_modules/.bin/cypress","run"]
2022-09-16T15:34:13.294Z cypress:cli NODE_OPTIONS is not set
2022-09-16T15:34:13.294Z cypress:cli:cli program parsing arguments
2022-09-16T15:34:13.298Z cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 22, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/app/cypress-runtime/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } ]
2022-09-16T15:34:13.364Z cypress:cli:cli variable-length opts parsed { args: [ '/usr/local/bin/node', '/app/cypress-runtime/node_modules/.bin/cypress', 'run' ], opts: Command { _events: [Object: null prototype] { 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 22, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/app/cypress-runtime/node_modules/.bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _hidden: false, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } }
2022-09-16T15:34:13.366Z cypress:cli parsed cli options {}
2022-09-16T15:34:13.366Z cypress:cli verifying Cypress app
2022-09-16T15:34:13.366Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.366Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.366Z cypress:cli using environment variable CYPRESS_CACHE_FOLDER /cypress/.cache
2022-09-16T15:34:13.367Z cypress:cli checking environment variables
2022-09-16T15:34:13.369Z cypress:cli checking if executable exists /cypress/.cache/10.4.0/Cypress/Cypress
2022-09-16T15:34:13.370Z cypress:cli Binary is executable? : true
2022-09-16T15:34:13.370Z cypress:cli binaryDir is /cypress/.cache/10.4.0/Cypress
2022-09-16T15:34:13.370Z cypress:cli Reading binary package.json from: /cypress/.cache/10.4.0/Cypress/resources/app/package.json
2022-09-16T15:34:13.373Z cypress:cli Found binary version 10.4.0 installed in: /cypress/.cache/10.4.0/Cypress
2022-09-16T15:34:13.373Z cypress:cli { verified: true }
2022-09-16T15:34:13.373Z cypress:cli is Verified ? true
2022-09-16T15:34:13.374Z cypress:cli:run processing run options { key: null, spec: null, reporter: null, reporterOptions: null, project: '/app/cypress-runtime' }
2022-09-16T15:34:13.374Z cypress:cli:run --key is not set, looking up environment variable CYPRESS_RECORD_KEY
2022-09-16T15:34:13.374Z cypress:cli:run run to spawn.start args ["--run-project","/app/cypress-runtime"]
2022-09-16T15:34:13.374Z cypress:cli undefined DISPLAY environment variable
2022-09-16T15:34:13.374Z cypress:cli Cypress will spawn its own Xvfb
2022-09-16T15:34:13.374Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.374Z cypress:cli Using CYPRESS_CACHE_FOLDER from environment variable
2022-09-16T15:34:13.374Z cypress:cli using environment variable CYPRESS_CACHE_FOLDER /cypress/.cache
2022-09-16T15:34:13.374Z cypress:cli needs to start own Xvfb? true
2022-09-16T15:34:13.374Z cypress:cli Starting Xvfb
2022-09-16T15:34:13.393Z cypress:cli spawning, should retry on display problem? false
2022-09-16T15:34:13.398Z cypress:cli passing DISPLAY :99
2022-09-16T15:34:13.399Z cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] }
2022-09-16T15:34:13.399Z cypress:cli spawning Cypress with executable: /cypress/.cache/10.4.0/Cypress/Cypress
2022-09-16T15:34:13.401Z cypress:cli piping child STDERR to process STDERR
2022-09-16T15:34:13.525Z cypress:ts registering ts-node on directory undefined
2022-09-16T15:34:13.572Z cypress:ts Running without ts-node hook in environment "production"
2022-09-16T15:34:14.146Z cypress:server:appdata path: /root/.config/Cypress/cy/production/cache
2022-09-16T15:34:14.179Z cypress:server:appdata path: /root/.config/Cypress/cy/production/browsers
2022-09-16T15:34:14.185Z cypress:server:cypress starting cypress with argv [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ]
2022-09-16T15:34:14.185Z cypress:server:args argv array: [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ]
2022-09-16T15:34:14.186Z cypress:server:args parsed argv options { options: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, 'run-project': '/app/cypress-runtime', runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0' } }
2022-09-16T15:34:14.187Z cypress:server:args argv parsed: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true }
2022-09-16T15:34:14.187Z cypress:server:util:proxy found proxy environment variables { npm_config_noproxy: '' }
2022-09-16T15:34:14.188Z cypress:server:args options { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {} }
2022-09-16T15:34:14.188Z cypress:server:args argv options: { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {}, projectRoot: '/app/cypress-runtime' }
2022-09-16T15:34:14.188Z cypress:server:cypress from argv [ '/cypress/.cache/10.4.0/Cypress/Cypress', '--no-sandbox', '--run-project', '/app/cypress-runtime', '--cwd', '/app/cypress-runtime', '--userNodePath', '/usr/local/bin/node', '--userNodeVersion', '18.9.0' ] got options { _: [ '/cypress/.cache/10.4.0/Cypress/Cypress' ], sandbox: false, runProject: '/app/cypress-runtime', cwd: '/app/cypress-runtime', userNodePath: '/usr/local/bin/node', userNodeVersion: '18.9.0', invokedFromCli: true, config: {}, projectRoot: '/app/cypress-runtime' }
2022-09-16T15:34:14.188Z cypress:server:cypress scaling electron app in headless mode
2022-09-16T15:34:14.265Z cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGILL' }
2022-09-16T15:34:14.265Z cypress:cli detecting arch { osPlatform: 'linux', osArch: 'x64' }
2022-09-16T15:34:14.272Z cypress:cli arm uname -m result: { stdout: 'x86_64' }
2022-09-16T15:34:14.272Z cypress:cli child event fired { event: 'close', code: null, signal: 'SIGILL' }
2022-09-16T15:34:14.274Z cypress:cli Stopping Xvfb
stdout: The Test Runner unexpectedly exited via a close event with signal SIGILL
Please search Cypress documentation for possible solutions:
https://on.cypress.io
Check if there is a GitHub issue describing this crash:
https://github.com/cypress-io/cypress/issues
Consider opening a new issue.
----------
Platform: linux-x64 (Ubuntu - 22.04)
Cypress Version: 10.4.0
Other
No response
I'm sorry your encountering this issue. Have you tried using the module API for running Cypress programmatically instead of using the CLI with exec
?
While using exec
ideally should work, the module API is tailor-made for your use-case, so it might be a good way to get around this issue.
mmm indeed it seems that you'r right, in the meantime i've build a CGI in docker as a workaround but mayyybe that using it as a module is better thanks for your answer!
Glad to hear you have a workaround. Happy testing!