Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress fails on the 8th test in CI #2265

Closed
kristiehowboutdat opened this issue Aug 2, 2018 · 19 comments
Closed

Cypress fails on the 8th test in CI #2265

kristiehowboutdat opened this issue Aug 2, 2018 · 19 comments

Comments

@kristiehowboutdat
Copy link

kristiehowboutdat commented Aug 2, 2018

Current behavior:

Our cypress tests intermittently fail to open / execute a file, only on version 3.0.x.

When they do fail, it is always the 8th test. I even created a very simple test file as the 8th one to confirm this suspicion.

Sample failure:

Running: 08_empty_test_should_pass.js...                            (8 of 14)
--
  | 🚨 Error: The command exited with status -1

Contents of 08_empty_test_should_pass.js:

describe('empty test', () => {});

Desired behavior:

Tests do not hang when opening the 8th (or any other) test file.

Steps to reproduce:

I'm not really sure what to put here since I can't repro it reliably, but here's the environment.

Buildkite with a docker container (cypress/base:8)

Set up more than 8 tests.
Run the tests a bunch of times.
If the tests fail, notice that it's always the 8th test, no matter what is in that file.

// cypress.json
{
  "video": true,
  "videoUploadOnPasses": false
}

Versions

Cypress: 3.0.3. We've been experiencing this issue on every 3.0.x version. We've had to revert to 2.x where this issue has never happened.

  | │ Cypress: 3.0.3 │
  | │ Browser: Electron 59 (headless) │
  | │ Specs: 14 found │

@jennifer-shehane

This comment has been minimized.

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Aug 2, 2018
@brian-mann
Copy link
Member

brian-mann commented Aug 2, 2018

@kristiehowboutdat this is unfortunately now a known issue. We've spent a lot trying to debug it and understand why it's happening. We issued a PR in 3.0.3 after being able to reproduce similar conditions locally that we were hopeful that it fixed it.

Unfortunately, it did not. The challenge here is that it's extremely difficult to reproduce and seems to only happen on various CI providers. The only way we can gain an understanding is with the Cypress DEBUG logs.

To clarify, you haven't done anything wrong on your end, it's an issue with Cypress - however it's only an issue with Electron and if you switched to Chrome in CI, it would just work. Our docker containers have Chrome built in.

If you can reliably recreate this problem, then by enabling the DEBUG logs it will help us track it down.

To enable those run: DEBUG=cypress:* cypress run ...

You can check these other issues as they are all users with the same problem:

@kristiehowboutdat
Copy link
Author

Thanks for your feedback. I've switched to use --browser chrome and turned on the debug logs for 3.0.3.

Will report back if there are any updates!

@jbpallingayan
Copy link

jbpallingayan commented Feb 8, 2019

hello any updates on this bug, were currently experiencing this on our third test. we try to change hierarchy of the file but it always failed on third. were using cypress 3.1.5

@brian-mann can you please help us. my test always hang on the 3rd test.

@jennifer-shehane
Copy link
Member

jennifer-shehane commented Feb 14, 2019

@jbpallingayan We cannot begin to look at this issue until someone provides us with a reproducible example, so no, there are no updates on this bug. Can anyone provide an example of test code + app code we can run to see this bug?

@jbpallingayan
Copy link

jbpallingayan commented Feb 14, 2019

here is my temporary solution on this bug, i created two spec file that has no assertions it only runs a test my test will pass and it will not get sa same error again. i run with debug mode but i get the same error code waiting for response but when i try to run in gui electron i catch the bug and our keeps hanging on the same line of code.
screenshot from 2019-02-14 16-32-30

@jennifer-shehane update on this we experience this only on electron 59, is there a way that we can run our test on ci headless? or any recommendations that we can use chrome to run at our ci?

@jennifer-shehane
Copy link
Member

@jbpallingayan You can pass a --browser flag to cypress run to run the tests within Chrome. You will no longer get recording of videos however.

@jbpallingayan
Copy link

we cannot move to our project because of random hang of cypress we cannot find any issues on both it will just hang randomly, even on headless chrome and electron.

we cannot share our app code or i can share my screen to you if you have time. @jennifer-shehane

@jennifer-shehane
Copy link
Member

@jbpallingayan Is this during cypress run or cypress open that this is happening?

@jbpallingayan
Copy link

sigh.. @jennifer-shehane we fix it and its only our fault. thank you for helping me on this. :)

@jennifer-shehane
Copy link
Member

@jbpallingayan Great! Any updates on how you fixed the issue would be helpful to add here - as I'm sure someone else will run into the same issue.

@jbpallingayan
Copy link

its on our app, error message is hidden when the user spam login on our app. im very sorry for this. its not a bug on cypress. @jennifer-shehane

@jennifer-shehane
Copy link
Member

Unfortunately we'll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this?

@jennifer-shehane jennifer-shehane added type: performance 🏃‍♀️ Performance related and removed stage: needs information Not enough info to reproduce the issue type: performance 🏃‍♀️ Performance related labels May 30, 2019
@strass
Copy link

strass commented Jul 31, 2019

Our tests always fail midway through the spec files, usually between files 8 and 14. I can't see anything helpful in these logs but if you tell me what else I could provide I would help out how I can

without debug mode:


  Running: examples/querying.spec.js...                              (14 of 20) 



  (Results)



  ┌─────────────────────────────────────────┐

  │ Tests:        4                         │

  │ Passing:      4                         │

  │ Failing:      0                         │

  │ Pending:      0                         │

  │ Skipped:      0                         │

  │ Screenshots:  0                         │

  │ Video:        true                      │

  │ Duration:     3 seconds                 │

  │ Spec Ran:     examples/querying.spec.js │

  └─────────────────────────────────────────┘





  (Video)



  - Started processing:   Compressing to 32 CRF

  - Finished processing:  /home/jenkins/agent/workspace/Espresso_master/webapp/react/cypress/videos/examples/querying.spec.js.mp4 (2 seconds)





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

                                                                                

  Running: examples/spies_stubs_clocks.spec.js...                    (15 of 20) 

Sending interrupt signal to process

Killing processes

kill finished with exit code 0

Terminated

script returned exit code 143

with debug mode:

  Running: examples/querying.spec.js...                              (14 of 20) 

2019-07-31T19:58:19.979Z cypress:server:run about to run spec { spec: { name: 'examples/querying.spec.js', relative: 'cypress/integration/examples/querying.spec.js', absolute: '/home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js' }, isHeadless: true, browser: { name: 'electron', family: 'electron', displayName: 'Electron', version: '61.0.3163.100', path: '', majorVersion: '61', info: 'Electron is the default browser that comes with Cypress. This is the 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 } }

2019-07-31T19:58:19.999Z cypress:server:video capture started { command: 'ffmpeg -n 20 /root/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer/linux-x64/ffmpeg -f image2pipe -use_wallclock_as_timestamps 1 -i pipe:0 -y -vcodec libx264 -preset ultrafast /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/videos/examples/querying.spec.js.mp4' }

2019-07-31T19:58:20.000Z cypress:server:run waiting for socket connection... { id: 'v95c2' }

2019-07-31T19:58:20.000Z cypress:server:openproject resetting project state, preparing to launch browser

2019-07-31T19:58:20.000Z cypress:server:project resetting project instance /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react

2019-07-31T19:58:20.000Z cypress:server:buffers resetting buffers

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteAuth undefined

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteOrigin http://localhost:43937

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteStrategy file

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteHostAndPort null

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteDocDomain localhost

2019-07-31T19:58:20.000Z cypress:server:server Setting remoteFileServer http://localhost:36051

2019-07-31T19:58:20.000Z cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:43937', strategy: 'file', visiting: false, domainName: 'localhost', fileServer: 'http://localhost:36051' }

2019-07-31T19:58:20.001Z cypress:server:openproject launching browser: { name: 'electron', family: 'electron', displayName: 'Electron', version: '61.0.3163.100', path: '', majorVersion: '61', info: 'Electron is the default browser that comes with Cypress. This is the 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/integration/examples/querying.spec.js

2019-07-31T19:58:20.001Z cypress:server:browsers opening browser { name: 'electron', family: 'electron', displayName: 'Electron', version: '61.0.3163.100', path: '', majorVersion: '61', info: 'Electron is the default browser that comes with Cypress. This is the 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 }

2019-07-31T19:58:20.001Z cypress:server:browsers:electron open { browser: { name: 'electron', family: 'electron', displayName: 'Electron', version: '61.0.3163.100', path: '', majorVersion: '61', info: 'Electron is the default browser that comes with Cypress. This is the 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://localhost:43937/__/#/tests/integration/examples/querying.spec.js' }

2019-07-31T19:58:20.001Z cypress:server:saved_state noop saved state

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: 'ffmpeg version N-47683-g0e8eb07980-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  libavutil      56. 24.101 / 56. 24.101' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  libavcodec     58. 42.100 / 58. 42.100' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  libavformat    58. 24.100 / 58. 24.100' }

2019-07-31T19:58:20.002Z cypress:server:video capture stderr log { message: '  libavdevice    58.  6.101 / 58.  6.101' }

2019-07-31T19:58:20.003Z cypress:server:video capture stderr log { message: '  libavfilter     7. 46.101 /  7. 46.101' }

2019-07-31T19:58:20.003Z cypress:server:video capture stderr log { message: '  libswscale      5.  4.100 /  5.  4.100' }

2019-07-31T19:58:20.003Z cypress:server:video capture stderr log { message: '  libswresample   3.  4.100 /  3.  4.100' }

2019-07-31T19:58:20.003Z cypress:server:video capture stderr log { message: '  libpostproc    55.  4.100 / 55.  4.100' }

2019-07-31T19:58:20.003Z cypress:server:browsers:electron received saved state {}

2019-07-31T19:58:20.004Z cypress:server:browsers:electron browser window options { width: 1280, height: 720, show: false, recordFrameRate: 20, automationMiddleware: { onAfterResponse: [Function] }, projectRoot: '/home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react', browsers: undefined, proxyUrl: 'http://localhost:43937', userAgent: null, proxyServer: 'http://localhost:43937', socketIoRoute: '/__socket.io', chromeWebSecurity: true, url: 'http://localhost:43937/__/#/tests/integration/examples/querying.spec.js', isTextTerminal: true, browser: { name: 'electron', family: 'electron', displayName: 'Electron', version: '61.0.3163.100', path: '', majorVersion: '61', info: 'Electron is the default browser that comes with Cypress. This is the 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 }, x: null, y: null, devTools: false, minWidth: 100, minHeight: 100, contextMenu: true, partition: 'persist:run-266', trackState: { width: 'browserWidth', height: 'browserHeight', x: 'browserX', y: 'browserY', devTools: 'isBrowserDevToolsOpen' }, frame: true, webPreferences: { partition: null, chromeWebSecurity: true, nodeIntegration: false, backgroundThrottling: false } }

2019-07-31T19:58:20.004Z cypress:server:plugins plugin event registered? { event: 'before:browser:launch', isRegistered: false }

2019-07-31T19:58:20.004Z cypress:server:browsers:electron launching browser window to url: http://localhost:43937/__/#/tests/integration/examples/querying.spec.js

2019-07-31T19:58:20.007Z cypress:server:browsers:electron debugger attached

2019-07-31T19:58:20.007Z cypress:server:browsers:electron clearing cache

2019-07-31T19:58:20.016Z cypress:server:browsers browser opened

2019-07-31T19:58:20.054Z cypress:server:routes Serving Cypress front-end by requested URL: /__/

2019-07-31T19:58:20.054Z cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:43937', strategy: 'file', visiting: false, domainName: 'localhost', fileServer: 'http://localhost:36051' }

2019-07-31T19:58:20.055Z cypress:server:runner serving runner index.html with config { version: '3.4.1', platform: 'linux', arch: 'x64', projectName: 'react' }

2019-07-31T19:58:20.103Z cypress:server:video:frames writing video frame

2019-07-31T19:58:20.598Z cypress:server:video:frames writing video frame

2019-07-31T19:58:20.600Z cypress:server:video capture stderr log { message: '[mjpeg @ 0x564cfc0] EOI missing, emulating' }

2019-07-31T19:58:21.210Z cypress:server:server Got CONNECT request from localhost:43937

2019-07-31T19:58:21.210Z cypress:https-proxy Writing browserSocket connection headers { url: 'localhost:43937', headLength: 0, headers: { host: 'localhost:43937', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36' } }

2019-07-31T19:58:21.211Z cypress:https-proxy Got first head bytes { url: 'localhost:43937', head: 'GET /__socket.io/?EIO=3&transport=websocket HTTP/1.1\r\nHost: loca' }

2019-07-31T19:58:21.211Z cypress:server:server HTTPS request does not match URL: https://localhost:43937 with props: null

2019-07-31T19:58:21.211Z cypress:https-proxy Making connection to localhost:43937

2019-07-31T19:58:21.211Z cypress:https-proxy getting proxy URL { port: 43937, serverPort: 43937, sniPort: 42059, url: 'https://localhost:43937' }

2019-07-31T19:58:21.215Z cypress:network:connect successfully connected { opts: { port: '43937', host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }

2019-07-31T19:58:21.215Z cypress:https-proxy received upstreamSocket callback for request { port: '43937', hostname: 'localhost', err: undefined }

2019-07-31T19:58:21.216Z cypress:server:server Got UPGRADE request from /__socket.io/?EIO=3&transport=websocket

2019-07-31T19:58:21.217Z cypress:server:socket socket connected

2019-07-31T19:58:21.347Z cypress:server:run got socket connection { id: 'v95c2' }

2019-07-31T19:58:21.348Z cypress:server:browsers:electron console message: { column: 32, level: 'log', line: 157778, source: 'console-api', text: 'console.clear', url: 'http://localhost:43937/__cypress/runner/cypress_runner.js' }

2019-07-31T19:58:21.401Z cypress:server:socket watch test file 'integration/examples/querying.spec.js'

2019-07-31T19:58:21.402Z cypress:server:socket will watch test file path 'cypress/integration/examples/querying.spec.js'

2019-07-31T19:58:21.402Z cypress:server:preprocessor getFile /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.402Z cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.402Z cypress:server:plugins plugin event registered? { event: 'file:preprocessor', isRegistered: true }

2019-07-31T19:58:21.403Z cypress:server:plugins execute plugin event 'file:preprocessor' with args: EventEmitter { domain: null, _events: { rerun: [Function] }, _eventsCount: 1, _maxListeners: undefined, filePath: '/home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js', shouldWatch: false, outputPath: '/root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js' } undefined undefined

2019-07-31T19:58:21.403Z cypress:browserify get: /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.403Z cypress:browserify input: /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.403Z cypress:browserify output: /root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.404Z cypress:browserify browserifyOptions { extensions: [ '.js', '.jsx', '.coffee', '.cjsx' ], transform: [ [ '/root/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/node_modules/@cypress/browserify-preprocessor/cjsxify.js', [Object] ], [ '/root/.cache/Cypress/3.4.1/Cypress/resources/app/packages/server/node_modules/babelify/index.js', [Object] ] ], plugin: [], cache: {}, packageCache: {}, entries: [ '/home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js' ] }:

2019-07-31T19:58:21.411Z cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:43937', strategy: 'file', visiting: false, domainName: 'localhost', fileServer: 'http://localhost:36051' }

2019-07-31T19:58:21.413Z cypress:browserify making bundle /root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.434Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.434Z cypress:server:video:frames video stream drained

Sending interrupt signal to process

Killing processes

2019-07-31T19:58:21.462Z cypress:server:controllers:spec request for { spec: 'cypress/support/index.js' }

2019-07-31T19:58:21.463Z cypress:server:preprocessor getFile /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/support/index.js

2019-07-31T19:58:21.463Z cypress:server:plugins plugin event registered? { event: 'file:preprocessor', isRegistered: true }

2019-07-31T19:58:21.463Z cypress:server:preprocessor headless and already processed

2019-07-31T19:58:21.463Z cypress:server:controllers:spec request for { spec: 'cypress/integration/examples/querying.spec.js' }

2019-07-31T19:58:21.464Z cypress:server:preprocessor getFile /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.464Z cypress:server:plugins plugin event registered? { event: 'file:preprocessor', isRegistered: true }

2019-07-31T19:58:21.464Z cypress:server:preprocessor headless and already processed

2019-07-31T19:58:21.464Z cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/support/index.js' }

2019-07-31T19:58:21.482Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.482Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.531Z cypress:browserify finished bundling: /root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:21.559Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.559Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.559Z cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js' }

2019-07-31T19:58:21.597Z cypress:server:project received runnables { id: 'r1', title: '', root: true, type: 'suite', tests: [], suites: [ { id: 'r2', title: 'Querying', root: false, type: 'suite', tests: [Array], suites: [] } ] }

2019-07-31T19:58:21.597Z cypress:server:reporter trying to load reporter: junit

2019-07-31T19:58:21.597Z cypress:server:reporter junit is built-in reporter

2019-07-31T19:58:21.635Z cypress:server:project onMocha start

2019-07-31T19:58:21.635Z cypress:server:reporter got mocha event 'start' with args: [ { start: '2019-07-31T19:58:21.600Z' } ]

2019-07-31T19:58:21.639Z cypress:server:project onMocha suite

2019-07-31T19:58:21.639Z cypress:server:reporter got mocha event 'suite' with args: [ { id: 'r1', title: '', root: true, type: 'suite' } ]

2019-07-31T19:58:21.685Z cypress:server:project onMocha suite

2019-07-31T19:58:21.685Z cypress:server:reporter got mocha event 'suite' with args: [ { id: 'r2', title: 'Querying', root: false, type: 'suite' } ]

2019-07-31T19:58:21.710Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.710Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.713Z cypress:server:project onMocha test

2019-07-31T19:58:21.713Z cypress:server:reporter got mocha event 'test' with args: [ { id: 'r3', title: 'cy.get() - query DOM elements', body: 'function () {\n    // https://on.cypress.io/get\n    cy.get(\'#query-btn\').should(\'contain\', \'Button\');\n    cy.get(\'.query-btn\').should(\'contain\', \'Button\');\n    cy.get(\'#querying .well>button:first\').should(\'contain\', \'Button\'); //              ↲\n    // Use CSS selectors just like jQuery\n\n    cy.get(\'[data-test-id="test-example"]\').should(\'have.class\', \'example\'); // \'cy.get()\' yields jQuery object, you can get its attribute\n    // by invoking `.attr()` method\n\n    cy.get(\'[data-test-id="test-example"]\').invoke(\'attr\', \'data-test-id\').should(\'equal\', \'test-example\'); // or you can get element\'s CSS property\n\n    cy.get(\'[data-test-id="test-example"]\').invoke(\'css\', \'position\').should(\'equal\', \'static\'); // or use assertions directly during \'cy.get()\'\n    // https://on.cypress.io/assertions\n\n    cy.get(\'[data-test-id="test-example"]\').should(\'have.attr\', \'data-test-id\', \'test-example\').and(\'have.css\', \'position\', \'static\');\n  }', type: 'test' } ]

2019-07-31T19:58:21.713Z cypress:server:project onMocha hook

2019-07-31T19:58:21.714Z cypress:server:reporter got mocha event 'hook' with args: [ { id: 'r3', title: '"before each" hook', hookName: 'before each', hookId: 'h1', body: 'function () {\n    cy.visit(\'https://example.cypress.io/commands/querying\');\n  }', type: 'hook' } ]

2019-07-31T19:58:21.747Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.747Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.748Z cypress:server:socket automation:request get:cookies { domain: 'localhost' }

2019-07-31T19:58:21.875Z cypress:server:cookies getting:cookies { domain: 'localhost' }

2019-07-31T19:58:21.876Z cypress:server:cookies received get:cookies []

2019-07-31T19:58:21.915Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.916Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.936Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.936Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.941Z cypress:server:socket backend:request { eventName: 'resolve:url', args: [ 'https://example.cypress.io/commands/querying', { auth: null, failOnStatusCode: true, retryOnNetworkFailure: true, retryOnStatusCodeFailure: false, method: 'GET', body: null, headers: {}, timeout: 30000 } ] }

2019-07-31T19:58:21.941Z cypress:server:server resolving visit { url: 'https://example.cypress.io/commands/querying', headers: { host: 'localhost:43937', connection: 'Upgrade', pragma: 'no-cache', 'cache-control': 'no-cache', upgrade: 'websocket', origin: 'http://localhost:43937', 'sec-websocket-version': '13', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36', 'accept-encoding': 'gzip, deflate', 'accept-language': 'en-US', 'sec-websocket-key': 'dXcRwCsUgXi2UhzFHF6q7w==', 'sec-websocket-extensions': 'permessage-deflate; client_max_window_bits' }, options: { auth: null, failOnStatusCode: true, retryOnNetworkFailure: true, retryOnStatusCodeFailure: false, method: 'GET', body: null, headers: {}, timeout: 30000 } }

2019-07-31T19:58:21.941Z cypress:server:server Getting remote state: { auth: undefined, props: null, origin: 'http://localhost:43937', strategy: 'file', visiting: false, domainName: 'localhost', fileServer: 'http://localhost:36051' }

2019-07-31T19:58:21.942Z cypress:server:server sending request with options { auth: null, failOnStatusCode: true, retryOnNetworkFailure: true, retryOnStatusCodeFailure: false, method: 'GET', body: null, headers: { accept: 'text/html,*/*' }, timeout: 30000, gzip: false, url: 'https://example.cypress.io/commands/querying', onBeforeReqInit: [Function: runPhase], followRedirect: [Function: followRedirect] }

2019-07-31T19:58:21.942Z cypress:server:cookies getting:cookies { url: 'https://example.cypress.io/commands/querying' }

2019-07-31T19:58:21.942Z cypress:server:cookies received get:cookies [ { name: '__cfduid', value: 'd53ae6bf174585578c9f3861c51a2b3f61564603092', path: '/', domain: '.cypress.io', secure: true, httpOnly: true, hostOnly: false, expiry: 1596139092.654917 } ]

2019-07-31T19:58:21.946Z cypress:server:request sending request as stream { auth: null, failOnStatusCode: true, retryOnNetworkFailure: true, retryOnStatusCodeFailure: false, method: 'GET', body: null, headers: { accept: 'text/html,*/*', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36' }, timeout: 30000, gzip: false, url: 'https://example.cypress.io/commands/querying', onBeforeReqInit: [Function: runPhase] }

2019-07-31T19:58:21.949Z cypress:network:agent addRequest called { isHttps: true, href: 'https://example.cypress.io/commands/querying' }

2019-07-31T19:58:21.949Z cypress:network:agent got family { family: 4, href: 'https://example.cypress.io/commands/querying' }

2019-07-31T19:58:21.977Z cypress:server:video:frames writing video frame

2019-07-31T19:58:21.977Z cypress:server:video:frames video stream drained

2019-07-31T19:58:21.978Z cypress:server:request received status code on request { requestId: 'request295', statusCode: 200 }

2019-07-31T19:58:21.978Z cypress:server:request successful response received { requestId: 'request295' }

2019-07-31T19:58:21.978Z cypress:server:server resolve:url headers received, buffering response { headers: { date: 'Wed, 31 Jul 2019 19:58:21 GMT', 'content-type': 'text/html; charset=utf-8', 'transfer-encoding': 'chunked', connection: 'keep-alive', 'last-modified': 'Mon, 29 Jul 2019 21:48:41 GMT', 'access-control-allow-origin': '*', expires: 'Wed, 31 Jul 2019 20:05:47 GMT', 'cache-control': 'max-age=600', 'x-proxy-cache': 'MISS', 'x-****hub-request-id': 'EA32:74A9:1B00F1:2786E2:5D41F242', via: '1.1 varnish', age: '0', 'x-served-by': 'cache-bwi5043-BWI', 'x-cache': 'HIT', 'x-cache-hits': '1', 'x-timer': 'S1564603102.956188,VS0,VE5', vary: 'Accept-Encoding', 'x-fastly-request-id': '99a44e0ad9f8149f4205f871a973614ae25a4813', 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', server: 'cloudflare', 'cf-ray': '4ff2258b39989fb8-IAD' }, statusCode: 200 }

2019-07-31T19:58:21.978Z cypress:server:request setting request jar cookies [ { key: '__cfduid', value: 'd53ae6bf174585578c9f3861c51a2b3f61564603092', expires: '2020-07-30T19:58:12.654Z', domain: 'cypress.io', path: '/', secure: true, httpOnly: true, hostOnly: false, creation: '2019-07-31T19:58:21.943Z', lastAccessed: '2019-07-31T19:58:21.948Z', url: 'https://example.cypress.io/commands/querying' } ]

2019-07-31T19:58:21.980Z cypress:server:cookies set:cookie { name: '__cfduid', value: 'd53ae6bf174585578c9f3861c51a2b3f61564603092', path: '/', domain: 'cypress.io', secure: true, httpOnly: true, expirationDate: 1596139092, url: 'https://example.cypress.io/commands/querying' }

2019-07-31T19:58:21.981Z cypress:server:cookies received set:cookie { name: '__cfduid', value: 'd53ae6bf174585578c9f3861c51a2b3f61564603092', path: '/', domain: 'cypress.io', secure: true, httpOnly: true, expiry: 1596139092 }

2019-07-31T19:58:21.982Z cypress:server:server setting details resolving url { isOkStatusCode: true, contentType: 'text/html', url: 'https://example.cypress.io/commands/querying', status: 200, cookies: [ { key: '__cfduid', value: 'd53ae6bf174585578c9f3861c51a2b3f61564603092', expires: '2020-07-30T19:58:12.654Z', domain: 'cypress.io', path: '/', secure: true, httpOnly: true, hostOnly: false, creation: '2019-07-31T19:58:21.943Z', lastAccessed: '2019-07-31T19:58:21.948Z', url: 'https://example.cypress.io/commands/querying', name: '__cfduid', expiry: 1596139092 } ], statusText: 'OK', redirects: [], originalUrl: 'https://example.cypress.io/commands/querying' }

2019-07-31T19:58:21.982Z cypress:server:server resolve:url response ended, setting buffer { newUrl: 'https://example.cypress.io/commands/querying', details: { isOkStatusCode: true, contentType: 'text/html', url: 'https://example.cypress.io/commands/querying', status: 200, cookies: [ [Object] ], statusText: 'OK', redirects: [], originalUrl: 'https://example.cypress.io/commands/querying', isHtml: true } }

2019-07-31T19:58:21.982Z cypress:server:server Setting remoteAuth null

2019-07-31T19:58:21.982Z cypress:server:cors Parsed URL { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:21.982Z cypress:server:server Setting remoteOrigin https://example.cypress.io

2019-07-31T19:58:21.982Z cypress:server:server Setting remoteHostAndPort { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:21.983Z cypress:server:server Setting remoteDocDomain cypress.io

2019-07-31T19:58:21.983Z cypress:server:server Getting remote state: { auth: null, props: { port: '443', tld: 'io', domain: 'cypress' }, origin: 'https://example.cypress.io', strategy: 'http', visiting: false, domainName: 'cypress.io', fileServer: null }

2019-07-31T19:58:21.989Z cypress:server:socket backend:request { eventName: 'preserve:run:state', args: [ { currentId: 'r3', tests: {}, startTime: '2019-07-31T19:58:21.598Z', emissions: [Object], passed: 0, failed: 0, pending: 0, numLogs: 0, autoScrollingEnabled: true, scrollTop: 0 } ] }

2019-07-31T19:58:22.031Z cypress:server:video:frames writing video frame

2019-07-31T19:58:22.031Z cypress:server:video:frames video stream drained

2019-07-31T19:58:22.139Z cypress:server:server Got CONNECT request from example.cypress.io:443

2019-07-31T19:58:22.140Z cypress:https-proxy Writing browserSocket connection headers { url: 'example.cypress.io:443', headLength: 0, headers: { host: 'example.cypress.io:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36' } }

2019-07-31T19:58:22.157Z cypress:https-proxy Got first head bytes { url: 'example.cypress.io:443', head: '\u0016\u0003\u0001\u0000�\u0001\u0000\u0000�\u0003\u0003\u0007�K{fZ�cV)\u001eN���6Q[��l��s��\u000bm�\\\u0000\u0000\u001c\n\n�+�/�,�0̨̩�\u0013�\u0014\u0000�\u0000�' }

2019-07-31T19:58:22.157Z cypress:server:cors Parsed URL { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:22.158Z cypress:server:server HTTPS request does match URL: https://example.cypress.io:443 with props: { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:22.158Z cypress:https-proxy Not making direct connection { url: 'example.cypress.io:443' }

2019-07-31T19:58:22.158Z cypress:https-proxy Making intercepted connection to 42059

2019-07-31T19:58:22.158Z cypress:https-proxy getting proxy URL { port: 42059, serverPort: 43937, sniPort: 42059, url: 'https://localhost:42059' }

2019-07-31T19:58:22.168Z cypress:server:video:frames writing video frame

2019-07-31T19:58:22.168Z cypress:server:video:frames video stream drained

2019-07-31T19:58:22.169Z cypress:network:connect successfully connected { opts: { port: 42059, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }

2019-07-31T19:58:22.169Z cypress:https-proxy received upstreamSocket callback for request { port: 42059, hostname: 'localhost', err: undefined }

2019-07-31T19:58:22.174Z cypress:server:routes Serving Cypress front-end by requested URL: /__/

2019-07-31T19:58:22.174Z cypress:server:server Getting remote state: { auth: null, props: { port: '443', tld: 'io', domain: 'cypress' }, origin: 'https://example.cypress.io', strategy: 'http', visiting: false, domainName: 'cypress.io', fileServer: null }

2019-07-31T19:58:22.174Z cypress:server:runner serving runner index.html with config { version: '3.4.1', platform: 'linux', arch: 'x64', projectName: 'react' }

2019-07-31T19:58:22.223Z cypress:server:video:frames writing video frame

2019-07-31T19:58:22.223Z cypress:server:video:frames video stream drained

2019-07-31T19:58:22.378Z cypress:server:server Got CONNECT request from example.cypress.io:443

2019-07-31T19:58:22.378Z cypress:https-proxy Writing browserSocket connection headers { url: 'example.cypress.io:443', headLength: 0, headers: { host: 'example.cypress.io:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36' } }

2019-07-31T19:58:22.379Z cypress:https-proxy Got first head bytes { url: 'example.cypress.io:443', head: '\u0016\u0003\u0001\u0000�\u0001\u0000\u0000�\u0003\u0003ǹ�G�����Ե��\rO38�[6\f\b�ǯ�8}�u�\u0000\u0000\u001c���+�/�,�0̨̩�\u0013�\u0014\u0000�\u0000�\u0000/' }

2019-07-31T19:58:22.379Z cypress:server:cors Parsed URL { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:22.380Z cypress:server:server HTTPS request does match URL: https://example.cypress.io:443 with props: { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:22.380Z cypress:https-proxy Not making direct connection { url: 'example.cypress.io:443' }

2019-07-31T19:58:22.380Z cypress:https-proxy Making intercepted connection to 42059

2019-07-31T19:58:22.380Z cypress:https-proxy getting proxy URL { port: 42059, serverPort: 43937, sniPort: 42059, url: 'https://localhost:42059' }

2019-07-31T19:58:22.383Z cypress:network:connect successfully connected { opts: { port: 42059, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }

2019-07-31T19:58:22.383Z cypress:https-proxy received upstreamSocket callback for request { port: 42059, hostname: 'localhost', err: undefined }

2019-07-31T19:58:22.557Z cypress:server:video:frames writing video frame

2019-07-31T19:58:23.340Z cypress:server:server Got CONNECT request from example.cypress.io:443

2019-07-31T19:58:23.340Z cypress:https-proxy Writing browserSocket connection headers { url: 'example.cypress.io:443', headLength: 0, headers: { host: 'example.cypress.io:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/3.4.1 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36' } }

2019-07-31T19:58:23.341Z cypress:https-proxy Got first head bytes { url: 'example.cypress.io:443', head: '\u0016\u0003\u0001\u0000�\u0001\u0000\u0000�\u0003\u0003��\u0002_�.5�\n�zM���h_�[\u001d���*i\u000f�\u0016>�\u0000\u0000\u001c���+�/�,�0̨̩�\u0013�\u0014\u0000�\u0000�' }

2019-07-31T19:58:23.341Z cypress:server:cors Parsed URL { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:23.341Z cypress:server:server HTTPS request does match URL: https://example.cypress.io:443 with props: { port: '443', tld: 'io', domain: 'cypress' }

2019-07-31T19:58:23.341Z cypress:https-proxy Not making direct connection { url: 'example.cypress.io:443' }

2019-07-31T19:58:23.342Z cypress:https-proxy Making intercepted connection to 42059

2019-07-31T19:58:23.342Z cypress:https-proxy getting proxy URL { port: 42059, serverPort: 43937, sniPort: 42059, url: 'https://localhost:42059' }

2019-07-31T19:58:23.343Z cypress:network:connect successfully connected { opts: { port: 42059, host: 'localhost', getDelayMsForRetry: [Function: getDelayForRetry] }, iteration: 0 }

2019-07-31T19:58:23.343Z cypress:https-proxy received upstreamSocket callback for request { port: 42059, hostname: 'localhost', err: undefined }

2019-07-31T19:58:23.349Z cypress:server:server Got UPGRADE request from /__socket.io/?EIO=3&transport=websocket

2019-07-31T19:58:23.350Z cypress:server:socket socket connected

2019-07-31T19:58:23.475Z cypress:server:browsers:electron console message: { column: 32, level: 'log', line: 157778, source: 'console-api', text: 'console.clear', url: 'https://example.cypress.io/__cypress/runner/cypress_runner.js' }

2019-07-31T19:58:23.530Z cypress:server:server Getting remote state: { auth: null, props: { port: '443', tld: 'io', domain: 'cypress' }, origin: 'https://example.cypress.io', strategy: 'http', visiting: false, domainName: 'cypress.io', fileServer: null }

2019-07-31T19:58:23.531Z cypress:server:socket watch test file 'integration/examples/querying.spec.js'

2019-07-31T19:58:23.552Z cypress:server:video:frames writing video frame

2019-07-31T19:58:23.552Z cypress:server:video:frames video stream drained

2019-07-31T19:58:23.579Z cypress:server:video:frames writing video frame

2019-07-31T19:58:23.580Z cypress:server:video:frames video stream drained

2019-07-31T19:58:23.581Z cypress:server:controllers:spec request for { spec: 'cypress/support/index.js' }

2019-07-31T19:58:23.581Z cypress:server:preprocessor getFile /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/support/index.js

2019-07-31T19:58:23.581Z cypress:server:plugins plugin event registered? { event: 'file:preprocessor', isRegistered: true }

2019-07-31T19:58:23.581Z cypress:server:preprocessor headless and already processed

2019-07-31T19:58:23.582Z cypress:server:controllers:spec request for { spec: 'cypress/integration/examples/querying.spec.js' }

2019-07-31T19:58:23.582Z cypress:server:preprocessor getFile /home/jenkins/agent/workspace/Espresso_zs_cypress/webapp/react/cypress/integration/examples/querying.spec.js

2019-07-31T19:58:23.582Z cypress:server:plugins plugin event registered? { event: 'file:preprocessor', isRegistered: true }

2019-07-31T19:58:23.582Z cypress:server:preprocessor headless and already processed

2019-07-31T19:58:23.582Z cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/support/index.js' }

2019-07-31T19:58:23.583Z cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/react-7f8bfa74134421d276745ff4f0f80a05/bundles/cypress/integration/examples/querying.spec.js' }

kill finished with exit code 0

2019-07-31T19:58:23.636Z cypress:server:video:frames writing video frame

2019-07-31T19:58:23.637Z cypress:server:video:frames video stream drained

2019-07-31T19:58:23.637Z cypress:server:project onMocha hook

2019-07-31T19:58:23.638Z cypress:server:reporter got mocha event 'hook' with args: [ { id: 'r3', title: '"before each" hook', hookName: 'before each', hookId: 'h1', body: 'function () {\n    cy.visit(\'https://example.cypress.io/commands/querying\');\n  }', type: 'hook' } ]

Terminated

script returned exit code 143

@oneumyvakin
Copy link

@jennifer-shehane could you please provide what exit code 143 means?

@strass
Copy link

strass commented Feb 21, 2020

https://www.google.com/search?q=exit+code+143

Exit Code 143: Indicates failure as container received SIGTERM.

@AnushaAshokReddy
Copy link

AnushaAshokReddy commented Aug 1, 2023

We also have this issue on every pipeline, it send interrupt signal and aborts the execution. Can someone help if you have find solution for this?
Its the same as shown here :
#2265 (comment)

@AnushaAshokReddy
Copy link

Any help from cypress team could be really helpful since we are basically stuck with every single pipeline in ci.

@nagash77
Copy link
Contributor

nagash77 commented Aug 2, 2023

Hi @AnushaAshokReddy This issue is quite old and I am guessing you have a different setup than OP. please open a new issue with a reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants