Closed faileon closed 4 months ago
Also attaching the other error message we get when it decides to find the cypress binary every now and then:
> NX Successfully ran target build for project absint-app and 91 tasks it depends on
Nx read the output from the cache instead of running the command for 92 out of 92 tasks.
It looks like this is your first time using Cypress: 13.6.4
[STARTED] Task without title.
Starting up http-server, serving dist/apps/absint-app
http-server version: 14.1.1
http-server settings:
CORS: true
Cache: -1 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://localhost:4200
Unhandled requests will be served from: http://localhost:4200?. Options: {"secure":false,"prependPath":true}
Hit CTRL-C to stop the server
[SUCCESS] Task without title.
Opening Cypress...
[2509:0210/022218.329213:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 2663: Permission denied (13)
DevTools listening on ws://127.0.0.1:37619/devtools/browser/b9d51b09-dfd7-4150-9c15-f4724633591f
[2509:0210/022218.339423:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
tput: No value for $TERM and no -T specified
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 13.6.4 │
│ Browser: Electron 114 (headless) │
│ Node Version: v20.9.0 (/usr/local/bin/node) │
│ Specs: 4 found (app.cy.ts, auth/login.cy.ts, settings/design/_confirm-html-elements.c │
│ y.ts, settings/design/ui-scheme.cy.ts) │
│ Searched: src/**/*.cy.{js,jsx,ts,tsx} │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: app.cy.ts (1 of 4)
[2509:0210/022219.777337:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 2798: Permission denied (13)
Timed out waiting for the browser to connect. Retrying...
[2509:0210/022422.767520:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 2815: Permission denied (13)
Cannot read properties of null (reading 'getWebSocketDebuggerUrl')
TypeError: Cannot read properties of null (reading 'getWebSocketDebuggerUrl')
at Object.open (<embedded>:4432:117536)
at async Object.open (<embedded>:4438:27363)
at async v.relaunchBrowser (<embedded>:4504:37915)
This does not happen when using Github runners. But it happens on the nx-agents runners.
I am running into the same issue as well; it becomes difficult to pinpoint why our agents are cancelling but this is the current suspect
A fix for nx agents fixed the detection of cypress.
https://github.com/nrwl/nx-cloud-workflows/commit/ef8aeeffabcf8a5df4fa3bd4e9845649d0aefd00
Can you please open a separate issue for the OOM issues?
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
Hi, I am trying to run e2e tests with nx-cloud and nx-agents, I have run into some issues previously with OOM:
Failed to adjust OOM score of renderer with pid 1350
I tried switching to
linux-large-plus-js
and upgrading Cypress to latest version13.6.4
Now the cloud reports:
Before the update it used to be unzipping cypress etc. My workflow.yaml:
I am not sure what could be wrong, I was following the official docs and just made a few minor tweaks.
Expected Behavior
Cypress should work
GitHub Repo
No response
Steps to Reproduce
1.
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response