Closed MikeMcC399 closed 7 months ago
still annoying
I am also facing a similar issue, I am trying to build a ci/cd pipeline, in which I also have added step to run e2e tests with cypress.
I am not using typescript for this project, and the tests are passing on my local machine (although there also I am getting this warning, but still tests are passing).
For the reference, this is my pipeline.yml file, in which I have also tried using ubuntu-latest -
name: Deployment pipeline
on:
push:
branches:
- main
jobs:
simple_deployment_pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Check style
run: npm run eslint
- name: Build the app
run: npm run build
- name: Run tests
run: npm run test
- name: e2e tests
uses: cypress-io/github-action@v5
with:
command: npm run test:e2e
start: npm run start-prod
wait-on: http://localhost:5000
The workflow just gets stuck after the error shown in first screenshot, and I have to cancel it, if someone is having any idea how to solve it then kindly respond.
For the complete code, refer this - https://github.com/harshitBhardwaj97/Full-Stack-Open-Pokedex-CICD
@harshitBhardwaj97
Your problems are not due to the message
ERROR:object_proxy.cc(590) Failed to call method: org.freedesktop.portal.Settings.Read
I suggest you remove the line
command: npm run test:e2e
and the action will automatically run your tests. Since this is not a product bug, but a workflow error, this issue list is not the right place to request assistance.
You can get support from the Cypress technical community on Discord
Also, you should probably be using the current action version cypress-io/github-action@v6
Thanks a ton @MikeMcC399, kindly excuse if I asked a very basic question, I am self taught aspiring engineer, and I was following the instructions that were told to me. Once again thanks, now the CI pipeline is executing e2e tests as well -
So I guess the key takeaway here is, that cypress-io/github-action@v6 internally is responsible executing the tests.
@harshitBhardwaj97
Your problem was that you were trying to run Cypress in open (interactive) mode through
"test:e2e": "cypress open"
so the workflow was waiting for user input and could not progress.
This issue no longer occurs after updating to cypress@13.3.5 (released Feb 20, 2024).
Confirming that we can no longer reproduce this on Cypress 13.6.6 in CI
@MikeMcC399 Oh, interesting. I must have missed a backport of this because I thought it was only in Electron 28. Great!!
@jennifer-shehane
Oh, interesting. I must have missed a backport of this because I thought it was only in Electron 28. Great!!
I was not able to find any reference to this issue on https://github.com/electron/electron and so I can't name any relevant Electron PR. If you happen to know which PR might have been responsible, you're welcome to add a reference to it here. If not, don't worry!
@rajishanmugi
I am trying to run cypress tests. It is all running fine in my local. But in github actions execution, the web page is not loading. I tried adding below.
- chromewebsecurity as false
- testIsolation false
- retries with 2
- changed my cypress version to be 13.3.0
- My node version is v20.10.0
- System Platform: linux (Debian - 11.5)
[Am getting a blank page on cy.visit(baseUrl) ]
Did you ever resolve this issue?
Current behavior
When Cypress is run in a CI environment where there is no physical GPU available, an error message similar to the following is output:
This is new in Cypress 13.3.1 and is a regression from Cypress 13.3.0.
It affects for instance:
22.04
/ Node.js20.8.0
22.04
in Docker / Node.js20.6.1
The error message occurs in CI where it uses
Xvfb
(X virtual framebuffer) when there is no other X11 server available due to missing hardware graphic.Desired behavior
The only message output when starting Cypress in CI should be similar to the following:
There should be no message with the following text output:
Test code to reproduce
Workflows from Cypress repos show the issue since the update to Cypress
13.3.1
:Cypress Version
First reported on version:
13.3.1
Reproducible also on version:13.6.4
Node version
20.8.0
/20.6.1
Operating System
Ubuntu
22.04
Debug Logs
Other
Error history
Cypress
13.0.0
/13.1.0
showed (see also https://github.com/cypress-io/cypress/issues/25357):Cypress
13.2.0
and13.3.0
were free from ERROR codes on startingCypress
13.3.1
->13.6.0
show: