Closed stychu closed 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.
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.
[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 - - -
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
@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 ?
@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:
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.
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
@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.
@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.
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
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.
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.
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.
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.
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
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
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
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 |
@stychu, here is the pre-release you could try: https://github.com/cypress-io/cypress/commit/f147ebbcc63dcb8199472a9ae6a0b78a189ba428#commitcomment-79743572
@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
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')
})
})
})
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-----------------------
'http://app'
has some conflict with cypress internals and thus making it break ??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.
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')
})
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
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 👍
@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 😃 !
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 then
app
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.
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"
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
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
DEBUG=cypress:*,-cypress:server:util:process_profiler npx cypress run
Desired behavior
Should work same as on 8.1 version
Test code to reproduce
N/A
Cypress Version
10.3.0
Other
No response