Code Monkey home page Code Monkey logo

cy2's Introduction

Update Dockerhub Images Update Dockerhub Images Join slack VScodespaces

banner dark

Open-source, free drop-in replacement for Cypress Dashboard

https://sorry-cypress.dev | https://currents.dev

Sorry Cypress is open-source, free alternative to Cypress Dashboard that unlocks unlimited parallelization, test recordings, integration with GitHub, Slack and more.

Currents.dev - is an enhanced version of Sorry Cypress. It is a managed cloud service that hundreds of companies around the globe use to run millions of Cypress tests without breaking the bank. It offers a better security, performance, analytics, integrations and support.

Table of contents

Features

  • run cypress tests in parallel with no limitations
  • upload screenshots and videos to your own storage
  • browse test results, screenshots and video recordings
  • see all your projects test results in one page
  • self-hosted - use your own infrastructure, own your data
  • integrate with GitHub, Slack or anything else via webhooks
  • works on popular cloud platforms and your data center:
    • Docker images
    • Docker compose files
    • Kubernetes Helm Charts
    • AWS
    • Heroku
    • Google Cloud
    • Azure

Quickstart

It takes just 5 minutes to setup sorry-cypress πŸš€

Follow our Guide.

FAQ

Is it production-ready?

Yes. Have been used by dozens of companies of different sizes around the globe.

I need help, what do I do?

Thanks, here are our Support Options

I want to help, how?

Awesome, head to Contribution Options

Changelog

Changelog

Developers

The easiest way to start contributing is using GitHub Codespaces

License

MIT

Donate

Contributors

Thanks goes to these wonderful people (emoji key):

Jeff Hicken
Jeff Hicken

πŸ’» πŸ€”
Janine
Janine

πŸ’» πŸ“–
Meet Shah
Meet Shah

πŸ’» πŸ“–
Abhi D
Abhi D

πŸ’»
TomaszG
TomaszG

πŸ’» πŸ“–
Corey Shirk
Corey Shirk

πŸ“–
nickcox
nickcox

πŸ“–
MeStrak
MeStrak

πŸ“– πŸ’»
mlsad3
mlsad3

πŸ“– πŸ’»
Kyle Then
Kyle Then

πŸ“–
Henry Ruhs
Henry Ruhs

πŸ€”
Aditya Trivedi
Aditya Trivedi

πŸ–‹
Stefan Schulte-Ortbeck
Stefan Schulte-Ortbeck

πŸ’» πŸ’‘ πŸ“– πŸ€”
Tim Collins
Tim Collins

πŸ–‹ πŸ’‘
Bram Plessers
Bram Plessers

πŸ’»
Nils Martel
Nils Martel

πŸ“–
dlavrenuek
dlavrenuek

πŸ’»
Kacper
Kacper

πŸ’» πŸ“–
Denis
Denis

πŸ’»
Lucas Tinoco
Lucas Tinoco

πŸ“–
JuanJose Perez
JuanJose Perez

πŸ’»
Sven Linstaedt
Sven Linstaedt

πŸ’» πŸš‡
Fernando Maia
Fernando Maia

πŸ’»
Peter Beckham
Peter Beckham

πŸ’»
Mathieu Paquette
Mathieu Paquette

πŸ’» πŸ“–
Anish Kargaonkar
Anish Kargaonkar

πŸ’»
Bart Riepe
Bart Riepe

πŸ’»
Iman Mahmoudinasab
Iman Mahmoudinasab

πŸ’»
Jovan Ilić
Jovan Ilić

πŸ’»
Scott
Scott

πŸ’»
Karim Ould Mahieddine
Karim Ould Mahieddine

πŸ’»
pitthecat
pitthecat

πŸš‡
Dmitriy Loshakov
Dmitriy Loshakov

πŸ’»
Edouard Benauw
Edouard Benauw

πŸ’»
joaoduartepinto
joaoduartepinto

πŸ’»
Alyssa
Alyssa

πŸ’»
Bjartur Þórhallsson
Bjartur Þórhallsson

πŸ’»
Matteo Vivona
Matteo Vivona

πŸ’»
Rich Rauenzahn
Rich Rauenzahn

πŸ’»
Niclas Mietz
Niclas Mietz

πŸš‡
Martin Parsiegla
Martin Parsiegla

πŸ’»
Amit Oren
Amit Oren

πŸ’»
Blake R
Blake R

πŸ’»
NicolΓ‘s
NicolΓ‘s

πŸ’»
Pavlos-Petros Tournaris
Pavlos-Petros Tournaris

πŸ’»
Mauricio Villalobos
Mauricio Villalobos

πŸ’» πŸ“–
crux-capacitor
crux-capacitor

πŸš‡ πŸ“–
samixchoumi
samixchoumi

πŸ’»
Erik Martino
Erik Martino

πŸ’»
Roman
Roman

πŸ’»
EstefanΓ­a Fdez
EstefanΓ­a Fdez

πŸ’»
DavidFontalba
DavidFontalba

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

cy2's People

Contributors

agoldis avatar capocaccia avatar mogusbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cy2's Issues

Cannot use CYPRESS_API_URL to define director url

Since cypress version 10, I cannot use CYPRESS_API_URL to target to my sorry-cypress dashboard

reproduction

  1. create image cypress10-cy2:1.0
FROM cypress/included:10.1.0

RUN npm install -g cy2 cypress && npm cache clean --force
  1. pull cypress sample project https://github.com/nooota/reproduce-cy2
  2. run this command in root project
    docker run --rm -v ${PWD}:/workspace -w /workspace cypress10-cy2:1.0 /bin/sh -c 'CYPRESS_API_URL="my_sorry_cypress_director_url" cy2 run --record --key ens-nota15-dev-nota15-cypress --parallel --ci-build-id 3 --spec "cypress/e2e/**/*.cy.js"'
  3. i will got this warning and project does not appear in sorry-cypress dashboard
The following configuration option is invalid:

 - CYPRESS_API_URL

https://on.cypress.io/configuration

Unable to detect Cypress when using Yarn Berry

When trying to run cy2 after installing using Yarn v2 (Berry) and running it from a workspace, I get the following error Error: Cannot detect cypress.

I did some digging and I've noticed npm-which is returning a completely bogus path inside of the /private/var/ folder.

If you swap const which = require('npm-which')(process.cwd()); to const which = require('npm-which')(__dirname); on line 4 in patch.js it seems to fix the issue for me. I wanted to make the changes and raise a PR but I can't get any of the tests to run so I left it

Another alternative would be maybe using something like https://www.npmjs.com/package/find-yarn-workspace-root to try and detect if it's using Yarn workspaces and use the value returned from that rather than process.cwd()

[email protected] failed to run [email protected]

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line
System:
    OS: Linux 3.10 CentOS Linux 7 (Core)
    CPU: (32) x64 Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
    Memory: 91.42 GB / 124.34 GB
    Container: Yes
    Shell: 4.2.46 - /bin/bash
  Binaries:
    Node: 16.13.1 - ~/soft/node-v16.13.1-linux-x64/bin/node
    npm: 9.2.0 - ~/soft/node-v16.13.1-linux-x64/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
  npmPackages:
    ...
    cy2: ^4.0.6 => 4.0.6
    cypress: 12.6.0 => 12.6.0 
    ...

Describe the bug

Expected behavior

Command and Setup

Full log and debug output

// Put your logs below this line

  VITE v4.1.1  ready in 2364 ms

  ➜  Local:   http://localhost:5174/xxx/
  ➜  press h to show help
 [cy2]  Using cloud orchestration service: http://10.252.33.180:8089/
It looks like this is your first time using Cypress: 12.6.0

βœ”  Verified Cypress! /home/work/.cache/Cypress/12.6.0/Cypress

Opening Cypress...
[654:0216/102122.022379:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
We encountered an unexpected error talking to our servers.

We will retry 3 more times in 30 seconds...

The server's response was:

RequestError: Error: A connection to the upstream proxy could not be established: ERR_EMPTY_RESPONSE: The upstream proxy closed the socket after connecting but before sending a response.
We encountered an unexpected error talking to our servers.

We will retry 2 more times in 1 minute...

The server's response was:

RequestError: Error: A connection to the upstream proxy could not be established: ERR_EMPTY_RESPONSE: The upstream proxy closed the socket after connecting but before sending a response.
We encountered an unexpected error talking to our servers.

We will retry 1 more time in 2 minutes...

The server's response was:

RequestError: Error: A connection to the upstream proxy could not be established: ERR_EMPTY_RESPONSE: The upstream proxy closed the socket after connecting but before sending a response.
We encountered an unexpected error talking to our servers.

We will retry 0 more times in ...

The server's response was:

RequestError: Error: A connection to the upstream proxy could not be established: ERR_EMPTY_RESPONSE: The upstream proxy closed the socket after connecting but before sending a response.
We encountered an unexpected error talking to our servers.

Because you passed the --parallel flag, this run cannot proceed because it requires a valid response from our servers.

The --ciBuildId flag you passed was: xxx/xxx_a71d4a9fff145432f8eac6d65daa6e466f7846b4

The server's response was:

RequestError: Error: A connection to the upstream proxy could not be established: ERR_EMPTY_RESPONSE: The upstream proxy closed the socket after connecting but before sending a response.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
ERROR: "cy2:run-page" exited with 1.
 ELIFECYCLE  Command failed with exit code 1.

Cannot read property 'production' of undefined using cy2

Summary

Cannot read property 'production' of undefined using cy2 on CI

How to reproduce

Relevant logs / screenshots

TypeError: Cannot read property 'production' of undefined
    at Object.exports.patch (/app/tests/Cypress/node_modules/cy2/lib/patch.js:23:7)
    at async Object.exports.run (/app/tests/Cypress/node_modules/cy2/index.js:8:3)

Environment

  • sorry-cypress version: <1.3.0>
  • cypress version: <8.4.1>
  • platform: docker | Git Lab
  • service: director

I have a problem with the parallelization: --parallel doesn't work.

I have a problem with the parallelization.
In the second Test remains pending.

image

The keywork --parallel doesn't seems working.
My script -> set CYPRESS_API_URL=http://localhost:1234/ && .\\node_modules\\.bin\\cy2 run --spec cypress/e2e/clients/mw_censimento* --record --parallel --key somekey --ci-build-id testProva

cannot find module 'node_modules\.bin\node_modules\cypress\lib\tasks\state'

Hello, I'm having the following issue trying to run it in Windows: seems similar to #2

cannot find module 'C:\dev\QATesting\node_modules\.bin\node_modules\cypress\lib\tasks\state'
Require stack:
- C:\dev\QATesting\node_modules\cy2\lib\patch.js
- C:\dev\QATesting\node_modules\cy2\index.js
- C:\dev\QATesting\node_modules\cy2\bin\cy2
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at getConfigFilesPaths (C:\dev\QATesting\node_modules\cy2\lib\patch.js:56:17)
    at async Object.exports.patch (C:\dev\QATesting\node_modules\cy2\lib\patch.js:11:52)
    at async Object.exports.run (C:\dev\QATesting\node_modules\cy2\index.js:8:3) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\dev\\QATesting\\node_modules\\cy2\\lib\\patch.js',
    'C:\\dev\\QATesting\\node_modules\\cy2\\index.js',
    'C:\\dev\\QATesting\\node_modules\\cy2\\bin\\cy2'
  ]
}

Cannot copy app.yml

When I am running this in GitHub Actions the app.yml file does not exist yet. How can I create this file in order to make cy2 run?

Run npx cy2 run --record --key *** --ci-build-id 738732867-20210411170557
node:internal/fs/utils:323
    throw err;
    ^

Error: ENOENT: no such file or directory, copyfile '/home/runner/.cache/Cypress/7.0.1/Cypress/resources/app/packages/server/config/app.yml' -> '/home/runner/.cache/Cypress/7.0.1/Cypress/resources/app/packages/server/config/_app.yml'
    at Object.copyFileSync (node:fs:2068:3)
    at /home/runner/work/SOPROJ7/SOPROJ7/node_modules/cy2/lib/patch.js:33:10
    at /home/runner/work/SOPROJ7/SOPROJ7/node_modules/npm-which/index.js:35:9
    at /home/runner/work/SOPROJ7/SOPROJ7/node_modules/npm-which/node_modules/which/which.js:87:20
    at /home/runner/work/SOPROJ7/SOPROJ7/node_modules/isexe/index.js:42:5
    at /home/runner/work/SOPROJ7/SOPROJ7/node_modules/isexe/mode.js:8:5
    at FSReqCallback.oncomplete (node:fs:194:5) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/home/runner/.cache/Cypress/7.0.1/Cypress/resources/app/packages/server/config/app.yml',
  dest: '/home/runner/.cache/Cypress/7.0.1/Cypress/resources/app/packages/server/config/_app.yml'
}

I think cy2(using v4.0.5) not follow the cypress.config.ts (using cypress 12.3.0)

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line
 System:
    OS: Linux 5.15 Linux Mint 20.2 (Uma)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz
    Memory: 4.80 GB / 30.57 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Firefox: 107.0
  npmPackages:
    eslint-config-prettier: ^8.3.0 => 8.5.0 
    eslint-plugin-prettier: ^4.0.0 => 4.2.1 
    husky: ^4.3.0 => 4.3.8 
    lint-staged: ^11.2.3 => 11.2.6 
    prettier: ^2.4.1 => 2.7.1 
    typescript: ~4.8.4 => 4.8.4 
  npmGlobalPackages:
    @expo/ngrok: 4.1.0
    @vue/cli: 5.0.6
    corepack: 0.10.0
    expo-cli: 5.0.3
    gtop: 1.1.3
    jscodeshift: 0.14.0
    npm: 8.19.2
    svgo: 2.8.0
    vtop: 0.6.1

Describe the bug

Having this error with cy2 (it tries to find tests in the default folder "cypress/intergration")
image

But in the cypress.config.ts, I have this cutomized:
image

So it seems to me that cy2 does not follow correctly the cypress configuration file.

Expected behavior

find tests in my customized directory and follow the other cypress configurations too.

Command and Setup

CYPRESS_PROJECT_ID=foo cy2 run --headless --record --parallel --key bar --ci-build-id $CI_PIPELINE_ID

Full log and debug output

// Put your logs below this line
++ npm run test:e2e
> [email protected] test:e2e
> npm run test:e2e --workspace=@neo1/web
> @neo1/[email protected] test:e2e
> npm run test:e2e:dist
> @neo1/[email protected] test:e2e:dist
> { if [ -z "$VERSION" ]; then export VERSION=$(node -p "require('./package.json').version"); fi } && sed 's@<head>@<head><script>window.Neo={debugMode:true}</script>@' build/*/index.html > build/index.html && node scripts/assetsAndProxyServer/index.js server build & CYPRESS_PROJECT_ID=foo cy2 run --headless --record --parallel --key bar --ci-build-id $CI_PIPELINE_ID
server listening on port 3000 : http://localhost:3000
 [cy2]  Using cloud orchestration service: http://sorry-cypress.itprod.internal.neo1.com:1234
It looks like this is your first time using Cypress: 9.7.0
[STARTED] Task without title.
[SUCCESS] Task without title.
Opening Cypress...
[342:0114/092928.962252:ERROR:node_bindings.cc(276)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[496:0114/092930.384[54](https://gitlab.kdsneo.kds.com/neo1/neo-one-ui/-/jobs/435458#L54)9:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[496:0114/092930.387471:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Can't run because no spec files were found.
We searched for specs inside of this folder:
  > /builds/neo1/neo-one-ui/apps/web/cypress/integration

Set user-agent header for initial request to sorry-cypress director

Hello, I am experiencing an issue where the initial request to the sorry-cypress director is blocked by our firewall because there is no user-agent header set.

I'm not sure if this is the right project for this issue. If it's not I apologize and pointing me to the right place would be greatly appreciated.

Here's what is happening...

npx cy2 run -b chrome --config-file integration/config/cypress.config.ts --record --key unusedKey --parallel --ci-build-id asdf-1234 --config userAgent="asdf"
[cy2] Running cypress with API URL: https://sorry-cypress-backend.example.com

cypress-grep: filtering using tag(s) "-#bug+-#flaky"
We encountered an unexpected error talking to our servers.

Because you passed the --parallel flag, this run cannot proceed because it requires a valid response from our servers.

The --ciBuildId flag you passed was: asdf-1234

The server's response was:

StatusCodeError: 403 - "<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n"

The 403 is coming from an aws waf rule that blocks requests without a user-agent header.

I have tried adding the userAgent config option to the cypress.config.ts file and also on the command line as it is in the command above i.e., --config userAgent="asdf", I've had one of our javascript developers look at this and he couldn't figure out a way to get the header set on this initial request (and possibly subsequent requests to the sorry-cypress director service).

Is there a way to set the user-agent on these requests?

Your Record Key XXX...XXX is not valid with this projectId

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line
System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
    Memory: 1.99 GB / 15.73 GB
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1105.0), Chromium (110.0.1587.41)
    Internet Explorer: 11.0.22621.1
npmPackages:
    cy2: ^4.0.5 => 4.0.5
    cypress: ^12.2.0 => 12.2.0

Describe the bug

On my pipeline I'm using cypress/browsers:node16.18.0-chrome107-ff106-edge and there I'm having error:
Your Record Key XXX...XXX is not valid with this projectId: APARI

Locally when I run npx cy2 run --record --browser chrome --key XXX --parallel --ci-build-id test && set DEBUG=cy2 with provided cy and cy2 version I'm getting error:

C:\Users\usr\Documents\apari\e2e-testing\node_modules\requires-port\index.js:13
  protocol = protocol.split(':')[0];
                      ^
TypeError: Cannot read properties of null (reading 'split')

Expected behavior

Command and Setup

npx cy2 run --record --browser chrome --key XXX --parallel --ci-build-id $BITBUCKET_BUILD_NUMBER

Full log and debug output

// Put your logs below this line
Your Record Key XXX...XXX is not valid with this projectId: _____
It may have been recently revoked by you or another user.
Please log into Cypress Cloud to see the valid Record Keys.

v4.0.5 does not support a local (non-https) proxy

Before opening, please confirm:

Environment information

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 5.84 GB / 31.89 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.17.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 108.0.5359.125
    Edge: Spartan (44.19041.1266.0)

Describe the bug

Since v4.0.5, cy2 does not work with a local proxy (used to add auth headers) getting RequestError: Error: ESOCKETTIMEDOUT. It may be that it is because it is not a proper proxy (just a simple http server that receives requests and makes equivalent requests with axios) - but it was working before and now isn't, so wanted to raise to see if it is expected to work or not?

Expected behavior

Essentially the setup is like running a local director service over http - which I would expect to work?

Command and Setup

const localHttpServerUrl = await startLocalServer();
run(localHttpServerUrl, { ... });

Full log and debug output

We encountered an unexpected error talking to our servers.

We will retry 3 more times in 30 seconds...

The server's response was:

RequestError: Error: ESOCKETTIMEDOUT

Cypress 12.0.2, 12.1.0+ Integrity check failed

UPDATE Jan 09

Release https://github.com/sorry-cypress/cy2/releases/tag/v4.0.0. Please open new issues as the appear. Closing this one.

UPDATE Dec 19

Try out the new beta versions if the original cy2 integration:

npm install cy2@beta

Details


UPDATE Dec 16

We are looking for your feedback and help with testing the new cypress-cloud integration.

It is compatible with Cypress 12.1.0 (actually all 10.0.0+ packages).


UPDATE Dec 12

The new version 12.1.0 has stricter integrity checks and the current integration is not working anymore.

Hold tight, we are working on a new integration. Meanwhile please pin the cypress version to 12.0.2 or below


Cypress.io team has released a few breaking changes that can trigger Integrity check failed when using cy2. The
affected version is 12.0.2+

For the majority of cases, cy2 version 3.4.1 should solve the issue, but depending on your specific use case it may not work.

As an immediate workaround, please downgrade cypress version. We have been working on a fix and an announcement will follow soon.

Unable to modify contents of Cypress configuration file

Hi,

Ever since upgrading my MacOS version to v13 a few days ago the cy2 module has stopped working for me:

CYPRESS_API_URL="https://sorry-cypress-demo-director.herokuapp.com/" npx cy2 run --parallel --record --key somekey --ci-build-id hello-cypress
[cy2] Running cypress with API URL: https://sorry-cypress-demo-director.herokuapp.com/
Error: EPERM: operation not permitted, open '/Users/dragancla/Library/Caches/Cypress/10.11.0/Cypress.app/Contents/Resources/app/index.js'
    at Object.openSync (node:fs:585:3)
    at Object.writeFileSync (node:fs:2170:35)
    at Object.<anonymous> (/Users/dragancla/app_path/node_modules/cy2/dist/patch.js:55:21)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/dragancla/app_path/node_modules/cy2/dist/patch.js:17:28)
    at _next (/Users/dragancla/app_path/node_modules/cy2/dist/patch.js:35:17) {
  errno: -1,
  syscall: 'open',
  code: 'EPERM',
  path: '/Users/dragancla/Library/Caches/Cypress/10.11.0/Cypress.app/Contents/Resources/app/index.js'
}

By the looks of things, it's something related to how the new MacOS Ventura is now handling write permissions in the ~/Library/Caches/ directory, as the code line that fails is basically _fs.default.writeFileSync(serverInitPath, result); which throws an EPERM error. Reinstalling the module or Cypress does not work.

cy2 version: 3.0.0 - 3.1.7 (tried all of them but none work)
Cypress version: 10.11.0
MacOS: Ventura

Run multiple instances of cypress on same machine

I am running 4 parallel processes on the same machine. We have a setup which allows to run multiple tests in paralel with same backend.
I am using the following approach

"scripts": {
    "ci-command": "xvfb-run -a npx cypress run --parallel --record --key XXX --ci-build-id sorry-cypress",
    "ci-run": "concurrently \"npm run ci-command\" \"npm run ci-command\" \"npm run ci-command\" \"npm run ci-command\""
  }

The issue I have is that I cannot "pre-patch" cypress with cy2, I am manually replacing app.yml for now in advance.

Could you provide some working example in Readme explaining how to run multiple instances of cypress(with cy2) on 1 machine ?

Doesn't seem to properly report failures?

Apologies if this is unrelated, but it only started happening when we switched to using cy2 in our github action.

In our integration-tests.yml file:

 - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          start: yarn api, yarn start:test
          wait-on: 'http://localhost:3000, http://localhost:8081/cypress'
          wait-on-timeout: 120
          install: false
          group: 'E2E Tests'
          command: yarn cy2 run --parallel --record'
        env:
          # pass the Dashboard record key as an environment variable
          CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
          # Recommended: pass the GitHub token lets this action correctly
          # determine the unique run id necessary to re-run the checks
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CYPRESS_API_URL: https://<app-name>.herokuapp.com

We have a cypress test that is failing, but in github it says that all checks are passing.
Screen Shot 2021-04-23 at 4 35 00 PM

Screen Shot 2021-04-23 at 4 40 23 PM

GraphQL 400 Bad request on start

Hi everyone I am getting this error

[cy2] Running cypress with API URL: https://*******************
Couldn't find tsconfig.json. tsconfig-paths will be skipped
We encountered an unexpected error talking to our servers.

The --group flag you passed was: a-simple-test-group
The --ciBuildId flag you passed was: 23432

The server's response was:
StatusCodeError: 400

{
  "errors": [
    {
      "message": "GraphQL operations must contain a non-empty `query` or a `persistedQuery` extension.",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

while executing this command

npx cy2 run  --browser chrome --record --ci-build-id 23432 --group a-simple-test-group

May you help me?

I have a custom SorryCypress installation on a VM using docker, I took the docker compose file from
https://raw.githubusercontent.com/sorry-cypress/sorry-cypress/master/docker-compose.minio.yml

May you help me?
Thanks

Suggestion: Allow ability to add custom headers into cy2 proxy

Before opening, please confirm:

Environment information

N/A

Describe the bug

I run a proxy before starting a test run in order to add in an authentication header as part of the request to my sorry cypress director service (which is configured to run behind an OAuth proxy). As cy2 uses a proxy as part of it's solution to reroute requests to an alternative director service, it'd be handy if I could configure custom headers on that proxy service instead of having to run my own additional one.

Expected behavior

N/A

Command and Setup

N/A

Full log and debug output

N/A

Usage of globally installed cy2 and cypress

Hi,

We have sorry-cypress setup and in use with our ci (jenkins) builds.

The tests are getting executed on some AWS EC2 instances, the image thats being used on these has all the necessary dependencies cypress requires.

Up to now we have been installing cypress locally on each EC2 instance when they get spun up and used for the test runs along with other additional dependencies we also need specific to our tests (plugins, reporters, etc).

e.g.

npm i cypress cy2 cypress-mochawesome-reporter cypress-wait-until @bahmutov/cypress-extends typescript

Then when it comes to issuing the test command we use the cy2 approach like so:

sh "CYPRESS_API_URL=\"${CYPRESS_API_URL}:8080\" npx cy2 run --record --key XXX --parallel --ci-build-id ${env.BUILD_ID} --browser chrome --headless --config-file cypress/cypress.ci.json --env $envCredentials || true"

This is all working fine, but we have the overhead of having to install cypress, cy2, locally (if not already installed from a previous run) and so we have been looking into globally installing cypress on the image we are using to save on some setup time.

Having now install cypress globally, we have modified our test command like so

CYPRESS_API_URL=\"${CYPRESS_API_URL}:8080\" /home/jenkins/.npm-global/lib/node_modules/cypress/bin/cypress run --record --parallel --ci-build-id ${env.BUILD_ID} --browser chrome --headless --config-file cypress/cypress.ci.json --env $envCredentials || true

But it bails with an error

Your Record Key XXX...XXX is not valid with this project: bla

It may have been recently revoked by you or another user.

Please log into the Dashboard to see the valid record keys.

I think I see why as in our modified command, we are no longer using cy2 and so the CYPRESS_API_URL arg is being ignored - we are just referencing the global cypress path for the run command

So my question is, if we were to install cy2 globally on our image used by our ec2 instances for our tests, do we need to make it aware of the globally installed version of cypress as well?

Should have an option to skip coverage for other origins while testing

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line
System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
    Memory: 3.51 GB / 15.73 GB
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1105.0), Chromium (110.0.1587.41)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @cypress/angular:  0.0.0-development
    @cypress/code-coverage: ^3.10.0 => 3.10.0
    @cypress/mount-utils:  0.0.0-development
    @cypress/react:  0.0.0-development
    @cypress/react18:  0.0.0-development
    @cypress/svelte:  0.0.0-development
    @cypress/vue:  0.0.0-development
    @cypress/vue2:  0.0.0-development
    @nuintun/qrcode: ^3.3.0 => 3.3.0
    @typescript-eslint/eslint-plugin: ^5.40.1 => 5.48.1
    @typescript-eslint/parser: ^5.40.1 => 5.48.1
    archiver: ^5.3.1 => 5.3.1
    chalk: ^4.1.2 => 4.1.2 (2.4.2)
    cy2: ^3.4.3 => 3.4.3
    cypress: ^12.5.1 => 12.5.1
    cypress-cucumber-preprocessor: ^4.3.1 => 4.3.1
    cypress-file-upload: ^5.0.8 => 5.0.8
    cypress-parallel: ^0.10.0 => 0.10.0
    cypress-recurse: ^1.27.0 => 1.27.0
    dotenv: ^16.0.3 => 16.0.3
    eslint: ^8.22.0 => 8.22.0
    eslint-config-prettier: ^8.5.0 => 8.6.0
    eslint-plugin-prettier: ^4.2.1 => 4.2.1
    eslint-plugin-simple-import-sort: ^9.0.0 => 9.0.0
    form-data: ^4.0.0 => 4.0.0 (2.3.3)
    helper: file:helper => 1.0.0
    expo-cli: 6.2.1
    node-gyp: 9.0.0
    pnpm: 7.26.3
    selenium-side-runner: 3.17.0
    truffle: 5.5.15
    yarn: 1.22.19

Describe the bug

Code coverage works OK in tests that are not causing opening of another origin in same or new tab. But tests that have any link or action that leads us from our application we test will cause this issue.

Expected behavior

Test should pass even when we are opening new origin.

Command and Setup

cypress run
cypress open

Full log and debug output

// Put your logs below this line
Permission denied to access property "coverage" on cross-origin object

> 70 |       const applicationSourceCoverage = win.__coverage__

Error after upgrade to Cypress >= v12.7

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

System:
    OS: Linux 3.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (16) x64 Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz
    Memory: 23.58 GB / 31.42 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 103.0.5060.53
    Firefox: 102.0.1
  npmPackages:
    @ampproject/toolbox-optimizer:  undefined ()
    @apollo/client: 3.7.10 => 3.7.10 
    @apollo/client/cache:  undefined ()
    @apollo/client/core:  undefined ()
    @apollo/client/errors:  undefined ()
    @apollo/client/link/batch:  undefined ()
    @apollo/client/link/batch-http:  undefined ()
    @apollo/client/link/context:  undefined ()
    @apollo/client/link/core:  undefined ()
    @apollo/client/link/error:  undefined ()
    @apollo/client/link/http:  undefined ()
    @apollo/client/link/persisted-queries:  undefined ()
    @apollo/client/link/retry:  undefined ()
    @apollo/client/link/schema:  undefined ()
    @apollo/client/link/subscriptions:  undefined ()
    @apollo/client/link/utils:  undefined ()
    @apollo/client/link/ws:  undefined ()
    @apollo/client/react:  undefined ()
    @apollo/client/react/components:  undefined ()
    @apollo/client/react/context:  undefined ()
    @apollo/client/react/hoc:  undefined ()
    @apollo/client/react/hooks:  undefined ()
    @apollo/client/react/parser:  undefined ()
    @apollo/client/react/ssr:  undefined ()
    @apollo/client/testing:  undefined ()
    @apollo/client/testing/core:  undefined ()
    @apollo/client/utilities:  undefined ()
    @apollo/client/utilities/globals:  undefined ()
    @babel/core:  undefined ()
    @babel/runtime:  7.15.4 
    @cypress-audit/lighthouse: 1.3.1 => 1.3.1 
    @cypress-audit/pa11y: 1.3.1 => 1.3.1 
    @cypress/angular:  0.0.0-development 
    @cypress/code-coverage: 3.10.0 => 3.10.0 
    @cypress/mount-utils:  0.0.0-development 
    @cypress/react:  0.0.0-development 
    @cypress/react18:  0.0.0-development 
    @cypress/svelte:  0.0.0-development 
    @cypress/vue:  0.0.0-development 
    @cypress/vue2:  0.0.0-development 
    @date-io/date-fns: 2.16.0 => 2.16.0 
    @edge-runtime/cookies:  3.0.4 
    @edge-runtime/primitives:  2.0.5 
    @emotion/cache: 11.10.5 => 11.10.5 
    @emotion/is-prop-valid: 1.2.0 => 1.2.0 (0.8.8)
    @emotion/react: 11.10.6 => 11.10.6 
    @emotion/server: 11.10.0 => 11.10.0 
    @emotion/styled: 11.10.6 => 11.10.6 
    @evilmartians/lefthook: 1.3.3 => 1.3.3 
    @faker-js/faker: 7.6.0 => 7.6.0 
    @fortawesome/fontawesome-svg-core: 6.3.0 => 6.3.0 
    @fortawesome/free-brands-svg-icons: 6.3.0 => 6.3.0 
    @fortawesome/free-regular-svg-icons: 6.3.0 => 6.3.0 
    @fortawesome/free-solid-svg-icons: 6.3.0 => 6.3.0 
    @fortawesome/react-fontawesome: 0.2.0 => 0.2.0 
    @graphql-codegen/add: 4.0.1 => 4.0.1 
    @graphql-codegen/cli: 3.2.2 => 3.2.2 
    @graphql-codegen/introspection: 3.0.1 => 3.0.1 
    @graphql-codegen/typescript: 3.0.2 => 3.0.2 
    @graphql-codegen/typescript-operations: 3.0.2 => 3.0.2 
    @graphql-codegen/typescript-react-apollo: 3.3.7 => 3.3.7 
    @hapi/accept:  undefined ()
    @hookform/error-message: 2.0.1 => 2.0.1 
    @hookform/resolvers: 2.9.11 => 2.9.11 
    @hookform/resolvers/ajv:  1.0.0 
    @hookform/resolvers/class-validator:  1.0.0 
    @hookform/resolvers/computed-types:  1.0.0 
    @hookform/resolvers/io-ts:  1.0.0 
    @hookform/resolvers/joi:  1.0.0 
    @hookform/resolvers/nope:  1.0.0 
    @hookform/resolvers/superstruct:  1.0.0 
    @hookform/resolvers/typanion:  1.0.0 
    @hookform/resolvers/vest:  1.0.0 
    @hookform/resolvers/yup:  1.0.0 
    @hookform/resolvers/zod:  1.0.0 
    @ianvs/prettier-plugin-sort-imports: 3.7.1 => 3.7.1 
    @mui/base: 5.0.0-alpha.118 => 5.0.0-alpha.118 
    @mui/lab: 5.0.0-alpha.120 => 5.0.0-alpha.120 
    @mui/material: 5.11.10 => 5.11.10 
    @mui/system: 5.11.9 => 5.11.9 
    @mui/x-date-pickers: 5.0.19 => 5.0.19 
    @n1ru4l/graphql-live-query: 0.10.0 => 0.10.0 
    @napi-rs/triples:  undefined ()
    @next/font:  undefined ()
    @next/react-dev-overlay:  undefined ()
    @opentelemetry/api:  undefined ()
    @segment/ajv-human-errors:  undefined ()
    @sentry/cli: 2.14.4 => 2.14.4 (1.74.6)
    @sentry/nextjs: 7.[43](https://gitlab.intra.regiocom.net/business-self-services/customer-portal/qpo-next/-/jobs/551725#L43).0 => 7.43.0 
    @svgr/webpack: 6.5.1 => 6.5.1 
    @tanstack/react-table: 8.7.9 => 8.7.9 
    @tanstack/react-virtual: 3.0.0-alpha.0 => 3.0.0-alpha.0 
    @testing-library/cypress: 9.0.0 => 9.0.0 
    @total-typescript/ts-reset: 0.4.2 => 0.4.2 
    @types/dotenv-flow: 3.2.0 => 3.2.0 
    @types/lodash: 4.14.191 => 4.14.191 
    @types/node: 18.15.3 => 18.15.3 (18.13.0, 14.18.36)
    @types/prettier: 2.7.2 => 2.7.2 
    @types/react: 18.0.28 => 18.0.28 
    @types/react-dom: 18.0.11 => 18.0.11 
    @types/react-highlight-words: 0.16.4 => 0.16.4 
    @types/react-table: 7.7.14 => 7.7.14 
    @types/react-virtualized: 9.21.21 => 9.21.21 
    @typescript-eslint/eslint-plugin: 5.55.0 => 5.55.0 
    @typescript-eslint/parser: 5.55.0 => 5.55.0 (5.[51](https://gitlab.intra.regiocom.net/business-self-services/customer-portal/qpo-next/-/jobs/551725#L51).0)
    @vercel/nft:  undefined ()
    acorn:  undefined ()
    amphtml-validator:  undefined ()
    anser:  undefined ()
    arg:  undefined ()
    assert:  undefined ()
    async-retry:  undefined ()
    async-sema:  undefined ()
    babel-packages:  undefined ()
    browserify-zlib:  undefined ()
    browserslist:  undefined ()
    buffer:  undefined ()
    bytes:  undefined ()
    chalk: 5.2.0 => undefined (4.1.2, 2.4.2, 3.0.0, 5.2.0, )
    check-code-coverage: 1.10.4 => 1.10.4 
    ci-info:  undefined ()
    cli-select:  undefined ()
    client-only:  0.0.1 
    comment-json:  undefined ()
    compression:  undefined ()
    conf:  undefined ()
    constants-browserify:  undefined ()
    content-disposition:  undefined ()
    content-type:  undefined ()
    cookie:  undefined ()
    cross-env: 7.0.3 => 7.0.3 
    cross-spawn:  undefined ()
    cross-undici-fetch: 0.4.14 => 0.4.14 
    crypto-browserify:  undefined ()
    css.escape:  undefined ()
    cy2: 4.0.6 => 4.0.6 
    cypress: 12.8.0 => 12.8.0 
    cypress-mochawesome-reporter: 3.3.0 => 3.3.0 
    cypress-multi-reporters: 1.6.3 => 1.6.3 
    cypress-real-events: 1.7.6 => 1.7.6 
    cypress-visual-regression: 2.1.1 => 2.1.1 
    cypress-wait-until: 1.7.2 => 1.7.2 
    data-uri-to-buffer:  undefined ()
    date-fns: 2.29.3 => 2.29.3 
    debug:  undefined ()
    deepmerge: 4.3.0 => 4.3.0 (3.3.0)
    devalue:  undefined ()
    domain-browser:  undefined ()
    dotenv-expand: 10.0.0 => 10.0.0 
    dotenv-flow: 3.2.0 => 3.2.0 
    edge-runtime:  undefined ()
    env-var: 7.3.0 => 7.3.0 
    eslint: 8.36.0 => 8.36.0 
    eslint-config-next: 13.2.3 => 13.2.3 
    eslint-config-prettier: 8.7.0 => 8.7.0 
    eslint-plugin-prettier: 4.2.1 => 4.2.1 
    events:  undefined ()
    find-cache-dir:  undefined ()
    find-up:  undefined ()
    framer-motion: 10.3.1 => 10.3.1 
    fresh:  undefined ()
    get-orientation:  undefined ()
    glob:  undefined ()
    graphiql: 2.4.0 => 2.4.0 
    graphql: 16.6.0 => 16.6.0 
    graphql-voyager: 1.0.0-rc.31 => 1.0.0-rc.31 
    graphql-ws: 5.12.0 => 5.12.0 (5.11.3)
    gzip-size:  undefined ()
    http-proxy:  undefined ()
    https-browserify:  undefined ()
    https-proxy-agent: 5.0.1 => 5.0.1 
    icss-utils:  undefined ()
    ignore-loader:  undefined ()
    image-size:  undefined ()
    is-animated:  undefined ()
    is-docker:  undefined ()
    is-wsl:  undefined ()
    iso-datestring-validator: 2.2.2 => 2.2.2 
    jest-worker:  undefined ()
    json5:  undefined ()
    jsonwebtoken:  undefined ()
    loader-runner:  undefined ()
    loader-utils:  undefined ()
    lodash: 4.17.21 => 4.17.21 
    lodash.curry:  undefined ()
    lru-cache:  undefined ()
    material-ui-popup-state: 5.0.5 => 5.0.5 
    merge-partially: 2.0.2 => 2.0.2 
    micromatch:  undefined ()
    mini-css-extract-plugin:  undefined ()
    mocha-junit-reporter: 2.2.0 => 2.2.0 
    nanoid:  undefined ()
    native-url:  undefined ()
    neo-async:  undefined ()
    next: 13.2.3 => 13.2.3 
    next-auth: 4.19.2 => 4.19.2 
    next-build-id: 3.0.0 => 3.0.0 
    next-http-proxy-middleware: 1.2.5 => 1.2.5 
    next-logger: 3.0.1 => 3.0.1 
    next-safe: 3.4.1 => 3.4.1 
    node-fetch: 3.3.1 => 3.3.1 (2.6.9, 2.6.7, , 3.3.0)
    node-html-parser:  undefined ()
    npm-run-all: 4.1.5 => 4.1.5 
    ora:  undefined ()
    os-browserify:  undefined ()
    p-limit:  undefined ()
    path-browserify:  undefined ()
    pathpida: 0.20.1 => 0.20.1 
    pino: 8.11.0 => 8.11.0 (7.11.0)
    platform:  undefined ()
    postcss-flexbugs-fixes:  undefined ()
    postcss-modules-extract-imports:  undefined ()
    postcss-modules-local-by-default:  undefined ()
    postcss-modules-scope:  undefined ()
    postcss-modules-values:  undefined ()
    postcss-preset-env:  undefined ()
    postcss-safe-parser:  undefined ()
    postcss-scss:  undefined ()
    postcss-value-parser:  undefined ()
    prettier: 2.8.4 => 2.8.4 (2.7.1, 2.2.1)
    process:  undefined ()
    punycode:  undefined ()
    querystring-es3:  undefined ()
    raw-body:  undefined ()
    react: 18.2.0 => 18.2.0 (18.3.0-next-bfb9cbd8c-[202](https://gitlab.intra.regiocom.net/business-self-services/customer-portal/qpo-next/-/jobs/551725#L202)30[223](https://gitlab.intra.regiocom.net/business-self-services/customer-portal/qpo-next/-/jobs/551725#L223))
    react-device-detect: 2.2.3 => 2.2.3 
    react-dom: 18.2.0 => 18.2.0 (18.3.0-next-bfb9cbd8c-20[230](https://gitlab.intra.regiocom.net/business-self-services/customer-portal/qpo-next/-/jobs/551725#L230)223)
    react-error-boundary: 3.1.4 => 3.1.4 
    react-highlight-words: 0.20.0 => 0.20.0 
    react-hook-form: 7.43.5 => 7.43.5 
    react-is: 18.2.0 => 18.2.0 (16.13.1, 17.0.2)
    react-markdown: 8.0.5 => 8.0.5 
    react-merge-refs: 2.0.1 => 2.0.1 
    react-number-format: 5.1.4 => 5.1.4 
    react-refresh:  0.12.0 
    react-server-dom-webpack:  18.3.0-next-bfb9cbd8c-20230223 
    react-table: 7.8.0 => 7.8.0 
    react-table-sticky: 1.1.3 => 1.1.3 
    react-use: 17.4.0 => 17.4.0 
    react-virtualized: 9.22.3 => 9.22.3 
    regenerator-runtime:  0.13.4 
    rehype-raw: 6.1.1 => 6.1.1 
    remark-gfm: 3.0.1 => 3.0.1 
    rimraf: 4.4.0 => 4.4.0 (3.0.2, 2.7.1)
    rooks: 7.4.4 => 7.4.4 
    sass-loader:  undefined ()
    scheduler:  undefined ()
    schema-utils:  undefined ()
    semver:  undefined ()
    send:  undefined ()
    server-only:  0.0.1 
    setimmediate:  undefined ()
    shell-quote:  undefined ()
    source-map:  undefined ()
    stacktrace-parser:  undefined ()
    start-server-and-test: 2.0.0 => 2.0.0 
    stream-browserify:  undefined ()
    stream-http:  undefined ()
    string-hash:  undefined ()
    string_decoder:  undefined ()
    strip-ansi:  undefined ()
    swagger-typescript-api: 12.0.3 => 12.0.3 
    swc-plugin-coverage-instrument: 0.0.14 => 0.0.14 
    sync-fetch: 0.4.2 => 0.4.2 
    tar:  undefined ()
    terser:  undefined ()
    text-table:  undefined ()
    timers-browserify:  undefined ()
    transport:  0.0.1 
    ts-essentials: 9.3.1 => 9.3.1 
    ts-expect: 1.3.0 => 1.3.0 
    ts-node: 10.9.1 => 10.9.1 
    ts-to-zod: 3.0.0 => 3.0.0 
    tty-browserify:  undefined ()
    type-fest: 3.6.1 => 3.6.1 (0.20.2, 0.21.3, 0.8.1, 2.19.0, 0.7.1)
    typescript: 4.9.5 => 4.9.5 (4.8.4)
    ua-parser-js:  undefined ()
    undici:  undefined ()
    unistore:  undefined ()
    use-mui: 1.0.6 => 1.0.6 
    util:  undefined ()
    vm-browserify:  undefined ()
    watchpack:  undefined ()
    web-vitals:  undefined ()
    webpack:  undefined ()
    webpack-sources:  undefined ()
    ws:  undefined ()
    zod: 3.21.4 => 3.21.4 (3.20.6)
  npmGlobalPackages:
    corepack: 0.10.0
    npm: 8.5.0
    yarn: 1.22.18

Describe the bug

The following error is thrown with cy2 v4.0.6 and cypress v12.7 or v12.8:

We could not find a Cypress Cloud project with the projectId: clientid

It seems like the same as #69, but this issue was closed without a fix and also the title was about cypress v12.6, although from the logs it appears, he/she was using cypress v12.7.

With cypress v12.6 it works fine.

Expected behavior

Runs without error.

Command and Setup

yarn cy2 run --parallel --record --key clientid --ci-build-id xyz

Using the Director Service
If needed, I can add the detailed configuration.

Full log and debug output

$ yarn cy2 run --parallel --record --key clientid --ci-build-id clientid-${CI_PIPELINE_ID} --browser chrome --env api_url=https://cypress.intra.company.net/
$ /builds/team-name/group-name/project-name/node_modules/.bin/cy2 run --parallel --record --key clientid --ci-build-id clientid-93250 --browser chrome --env api_url=https://cypress.intra.company.net/
 [cy2]  Using cloud orchestration service: https://cypress.intra.company.net/
2023-03-15T11:08:14.616Z cy2 Cypress API URL: https://cypress.intra.company.net/
2023-03-15T11:08:14.616Z cy2 Package version: 4.0.6
2023-03-15T11:08:14.617Z cy2 Cypress binary path: /builds/team-name/group-name/project-name/node_modules/cypress/bin/cypress
2023-03-15T11:08:14.619Z cy2 Running cypress: [ '/builds/team-name/group-name/project-name/node_modules/cypress/bin/cypress', 'run', '--parallel', '--record', '--key', 'clientid', '--ci-build-id', 'clientid-93250', '--browser', 'chrome', '--env', 'api_url=https://cypress.intra.company.net/' ]
2023-03-15T11:08:14.620Z cy2 Original environment variables { NO_PROXY: 'localhost,127.0.0.1,10.0.0.0/8,172.16.57.0/24,172.16.31.48,r.company.net,intra.company.net,nexus3.r.company.net,dockerprivate.r.company.net,dockerregistry.r.company.net,docker,*.intra.company.net,*.r.company.net,172.16.57.17,172.16.57.150', HTTP_PROXY: 'http://rzproxy.company.net:3128', HTTPS_PROXY: 'http://rzproxy.company.net:3128', no_proxy: 'localhost,127.0.0.1,10.0.0.0/8,172.16.57.0/24,172.16.31.48,r.company.net,intra.company.net,nexus3.r.company.net,dockerprivate.r.company.net,dockerregistry.r.company.net,docker,*.intra.company.net,*.r.company.net,172.16.57.17,172.16.57.150', http_proxy: 'http://rzproxy.company.net:3128', https_proxy: 'http://rzproxy.company.net:3128' }
2023-03-15T11:08:14.620Z cy2 Copying lowercase http_proxy to HTTP_PROXY
2023-03-15T11:08:14.620Z cy2 Copying lowercase https_proxy to HTTPS_PROXY
2023-03-15T11:08:14.620Z cy2 Copying lowercase no_proxy to NO_PROXY
2023-03-15T11:08:14.620Z cy2 Sanitized environment variables { https_proxy: undefined, http_proxy: undefined, npm_config_proxy: undefined, npm_config_https_proxy: undefined, NO_PROXY: 'localhost,127.0.0.1,10.0.0.0/8,172.16.57.0/24,172.16.31.48,r.company.net,intra.company.net,nexus3.r.company.net,dockerprivate.r.company.net,dockerregistry.r.company.net,docker,*.intra.company.net,*.r.company.net,172.16.57.17,172.16.57.150', HTTP_PROXY: 'http://rzproxy.company.net:3128', HTTPS_PROXY: 'http://rzproxy.company.net:3128' }
 WARNING  Mismatch between protocol 'http' and env variable HTTPS_PROXY: http://rzproxy.company.net:3128/. Use HTTP_PROXY instead. 
2023-03-15T11:08:14.622Z cy2 Using upstream proxy URL { href: 'http://rzproxy.company.net:3128/', origin: 'http://rzproxy.company.net:3128', protocol: 'http:', username: '', password: '', host: 'rzproxy.company.net:3128', hostname: 'rzproxy.company.net', port: '3128', pathname: '/', search: '', searchParams: URLSearchParams {}, hash: '' }
2023-03-15T11:08:14.624Z cy2-net Proxy is listening on port 44261
2023-03-15T11:08:14.631Z cy2 Resolved proxy environment variables { https_proxy: undefined, http_proxy: undefined, npm_config_proxy: undefined, npm_config_https_proxy: undefined, NO_PROXY: 'localhost,127.0.0.1,10.0.0.0/8,172.16.57.0/24,172.16.31.48,r.company.net,intra.company.net,nexus3.r.company.net,dockerprivate.r.company.net,dockerregistry.r.company.net,docker,*.intra.company.net,*.r.company.net,172.16.57.17,172.16.57.150', HTTP_PROXY: undefined, HTTPS_PROXY: 'http://127.0.0.1:44261', NODE_EXTRA_CA_CERTS: '/tmp/tmp-331-eSLfVrkAFDeQ' }
2023-03-15T11:08:14.835Z cypress:cli:cli cli starts with arguments ["/usr/local/bin/node","/builds/team-name/group-name/project-name/node_modules/cypress/bin/cypress","run","--parallel","--record","--key","clientid","--ci-build-id","clientid-93250","--browser","chrome","--env","api_url=https://cypress.intra.company.net/"]
2023-03-15T11:08:14.836Z cypress:cli NODE_OPTIONS is not set
2023-03-15T11:08:14.836Z cypress:cli:cli program parsing arguments


... stripped due to GitHub comment too long ...




  
2023-03-15T11:08:21.144Z cy2-http-proxy Request: { httpVersion: '1.1', method: 'POST', url: '/preflight', headers: { 'x-route-version': '1', 'x-cypress-request-attempt': '0', 'x-os-name': 'linux', 'x-cypress-version': '12.8.0', 'x-cypress-encrypted': '1', host: 'api.cypress.io', 'accept-encoding': 'gzip, deflate', accept: 'application/json', 'content-type': 'application/json', 'content-length': '741', connection: 'close' }, upgrade: false, aborted: false, complete: false }
We encountered an unexpected error communicating with our servers.
RequestError: Error: ESOCKETTIMEDOUT
We will retry 3 more times in 30 seconds...
  cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
  cypress:server:util:process_profiler β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  cypress:server:util:process_profiler β”‚ (index) β”‚       group       β”‚ processCount β”‚         pids         β”‚ cpuPercent β”‚ meanCpuPercent β”‚ memRssMb β”‚ meanMemRssMb β”‚ maxMemRssMb β”‚
  cypress:server:util:process_profiler β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  cypress:server:util:process_profiler β”‚    0    β”‚     'cypress'     β”‚      1       β”‚        '674'         β”‚    6.28    β”‚      3.14      β”‚  402.13  β”‚    339.78    β”‚   402.13    β”‚
  cypress:server:util:process_profiler β”‚    1    β”‚ 'electron-shared' β”‚      4       β”‚ '714, 901, 715, 968' β”‚     0      β”‚       0        β”‚  116.63  β”‚     88.7     β”‚   116.63    β”‚
  cypress:server:util:process_profiler β”‚    2    β”‚     'plugin'      β”‚      1       β”‚        '951'         β”‚     0      β”‚       0        β”‚  113.75  β”‚    113.75    β”‚   113.75    β”‚
  cypress:server:util:process_profiler β”‚    3    β”‚      'other'      β”‚      2       β”‚     '1246, 1247'     β”‚     0      β”‚       0        β”‚   2.16   β”‚     2.15     β”‚    2.16     β”‚
  cypress:server:util:process_profiler β”‚    4    β”‚      'TOTAL'      β”‚      8       β”‚         '-'          β”‚    6.28    β”‚      3.14      β”‚  634.66  β”‚    487.51    β”‚   634.66    β”‚
  cypress:server:util:process_profiler β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +1m
  cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
  cypress:server:util:process_profiler β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  cypress:server:util:process_profiler β”‚ (index) β”‚       group       β”‚ processCount β”‚         pids         β”‚ cpuPercent β”‚ meanCpuPercent β”‚ memRssMb β”‚ meanMemRssMb β”‚ maxMemRssMb β”‚
  cypress:server:util:process_profiler β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  cypress:server:util:process_profiler β”‚    0    β”‚     'cypress'     β”‚      1       β”‚        '674'         β”‚    0.45    β”‚      2.24      β”‚  321.21  β”‚    333.59    β”‚   402.13    β”‚
  cypress:server:util:process_profiler β”‚    1    β”‚ 'electron-shared' β”‚      4       β”‚ '714, 901, 715, 968' β”‚     0      β”‚       0        β”‚  116.63  β”‚    98.01     β”‚   116.63    β”‚
  cypress:server:util:process_profiler β”‚    2    β”‚     'plugin'      β”‚      1       β”‚        '951'         β”‚     0      β”‚       0        β”‚  113.75  β”‚    113.75    β”‚   113.75    β”‚
  cypress:server:util:process_profiler β”‚    3    β”‚      'other'      β”‚      2       β”‚     '1276, 1277'     β”‚     0      β”‚       0        β”‚   2.16   β”‚     2.16     β”‚    2.16     β”‚
  cypress:server:util:process_profiler β”‚    4    β”‚      'TOTAL'      β”‚      8       β”‚         '-'          β”‚    0.45    β”‚      2.24      β”‚  553.75  β”‚    509.59    β”‚   634.66    β”‚
  cypress:server:util:process_profiler β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +10s
  cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
  cypress:server:util:process_profiler β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  cypress:server:util:process_profiler β”‚ (index) β”‚       group       β”‚ processCount β”‚         pids         β”‚ cpuPercent β”‚ meanCpuPercent β”‚ memRssMb β”‚ meanMemRssMb β”‚ maxMemRssMb β”‚
  cypress:server:util:process_profiler β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  cypress:server:util:process_profiler β”‚    0    β”‚     'cypress'     β”‚      1       β”‚        '674'         β”‚    0.05    β”‚      1.69      β”‚  321.88  β”‚    330.66    β”‚   402.13    β”‚
  cypress:server:util:process_profiler β”‚    1    β”‚ 'electron-shared' β”‚      4       β”‚ '714, 901, 715, 968' β”‚     0      β”‚       0        β”‚  116.63  β”‚    102.66    β”‚   116.63    β”‚
  cypress:server:util:process_profiler β”‚    2    β”‚     'plugin'      β”‚      1       β”‚        '951'         β”‚     0      β”‚       0        β”‚  113.75  β”‚    113.75    β”‚   113.75    β”‚
  cypress:server:util:process_profiler β”‚    3    β”‚      'other'      β”‚      2       β”‚     '1306, 1307'     β”‚     0      β”‚       0        β”‚   2.15   β”‚     2.16     β”‚    2.16     β”‚
  cypress:server:util:process_profiler β”‚    4    β”‚      'TOTAL'      β”‚      8       β”‚         '-'          β”‚    0.05    β”‚      1.69      β”‚  554.42  β”‚    520.8     β”‚   634.66    β”‚
  cypress:server:util:process_profiler β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +10s
  cypress:server:cloud:api retry #1 after 30000ms +2m
  cypress:server:cloud:api request to url: POST https://api-proxy.cypress.io/preflight with params: {"body":{"apiUrl":"https://api.cypress.io/","envUrl":"https://cypress.intra.company.net/","dependencies":{},"errors":[{"dependency":"cy2","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42062)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"},{"dependency":"@deploysentinel/cypress-debugger","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42062)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"},{"dependency":"@currents/cli","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42125)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"}],"projectId":"clientid","ciBuildId":"clientid-93250","testingType":"e2e","parallel":true},"headers":{"x-route-version":"1","x-cypress-request-attempt":1,"x-os-name":"linux","x-cypress-version":"12.8.0"}} and token: undefined +1ms
  cypress:server:cloud:api request to url: POST https://api.cypress.io/preflight with params: {"body":{"apiUrl":"https://api.cypress.io/","envUrl":"https://cypress.intra.company.net/","dependencies":{},"errors":[{"dependency":"cy2","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42062)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"},{"dependency":"@deploysentinel/cypress-debugger","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42062)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"},{"dependency":"@currents/cli","name":"TypeError","message":"Cannot read properties of undefined (reading 'charAt')","stack":"TypeError: Cannot read properties of undefined (reading 'charAt')\n    at y (<embedded>:3160:374216)\n    at <embedded>:4445:41929\n    at Array.forEach (<anonymous>)\n    at p (<embedded>:4445:42125)\n    at <embedded>:4445:51478\n    at <embedded>:4445:47992\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Function.<anonymous> (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29)\n    at s (<embedded>:4445:47986)\n    at <embedded>:4445:48356\n    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:694:18)\n    at Promise._fulfill (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:638:18)\n    at Timeout._onTimeout (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/timers.js:26:46)\n    at listOnTimeout (node:internal/timers:559:17)\n    at process.processTimers (node:internal/timers:502:7)"}],"projectId":"clientid","ciBuildId":"clientid-93250","testingType":"e2e","parallel":true},"headers":{"x-route-version":"1","x-cypress-request-attempt":1,"x-os-name":"linux","x-cypress-version":"12.8.0"}} and token: undefined +8ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://api.cypress.io/preflight' } +2m
  cypress:network:connect beginning getAddress { hostname: 'api.cypress.io', port: 443 } +2m
  cypress:network:connect got addresses { hostname: 'api.cypress.io', port: 443, addresses: [ { address: '172.67.25.250', family: 4 }, { address: '104.22.11.239', family: 4 }, { address: '104.22.10.239', family: 4 }, { address: '2606:4700:10::6816:bef', family: 6 }, { address: '2606:4700:10::ac43:19fa', family: 6 }, { address: '2606:4700:10::6816:aef', family: 6 } ] } +1ms
  cypress:network:agent got family { family: undefined, href: 'https://api.cypress.io/preflight' } +3ms
  cypress:network:agent Creating proxied socket for https://api.cypress.io/preflight through http://127.0.0.1:44261 +1ms
  cypress:network:connect successfully connected { opts: { port: 44261, host: '127.0.0.1', useTls: false, getDelayMsForRetry: [Function (anonymous)] }, iteration: 0 } +2ms
2023-03-15T11:10:00.272Z cy2-net Connection request: api.cypress.io:443
2023-03-15T11:10:00.274Z cy2-net Should "cypress.intra.company.net" use upstream proxy with NO_PROXY [
  'localhost',
  '127.0.0.1',
  '10.0.0.0/8',
  '172.16.57.0/24',
  '172.16.31.48',
  'r.company.net',
  'intra.company.net',
  'nexus3.r.company.net',
  'dockerprivate.r.company.net',
  'dockerregistry.r.company.net',
  'docker',
  '*.intra.company.net',
  '*.r.company.net',
  '172.16.57.17',
  '172.16.57.150'
]: false
2023-03-15T11:10:00.274Z cy2-net Using interceptor with direct routing
2023-03-15T11:10:00.274Z cy2-net Intercepting request to "api.cypress.io" via port: 40847
  cypress:network:agent Proxy socket for https://api.cypress.io/preflight established +4ms
2023-03-15T11:10:00.284Z cy2-http-proxy applying passes, proxy type: web, request options: { target: Url { protocol: 'https:', slashes: true, auth: null, host: 'cypress.intra.company.net', port: null, hostname: 'cypress.intra.company.net', hash: null, search: null, query: null, pathname: '/', path: '/', href: 'https://cypress.intra.company.net/' }, changeOrigin: true, followRedirects: true, agent: undefined, prependPath: true }
2023-03-15T11:10:00.284Z cy2-http-proxy Request: { httpVersion: '1.1', method: 'POST', url: '/preflight', headers: { 'x-route-version': '1', 'x-cypress-request-attempt': '1', 'x-os-name': 'linux', 'x-cypress-version': '12.8.0', 'x-cypress-encrypted': '1', host: 'api.cypress.io', 'accept-encoding': 'gzip, deflate', accept: 'application/json', 'content-type': 'application/json', 'content-length': '1435', connection: 'close' }, upgrade: false, aborted: false, complete: false }
  cypress:server:record failed creating run with status { name: 'StatusCodeError', message: '404 - "Not Found"', statusCode: 404, stack: 'StatusCodeError: 404 - "Not Found"\n' + '    at new a (<embedded>:1737:499409)\n' + '    at a (<embedded>:4445:47390)\n' + '    at e.transform (<embedded>:4445:47566)\n' + '    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)' } +0ms
  cypress:server:cypress exiting with err Error: We could not find a Cypress Cloud project with the projectId: clientid
This projectId came from your cypress.config.ts file or an environment variable.
Please log into Cypress Cloud and find your project.
We will list the correct projectId in the 'Settings' tab.
Alternatively, you can create a new project directly from within the Cypress app.
https://on.cypress.io/cloud
    at <embedded>:4721:477856
    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:690:18)
    at _drainQueueStep (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate._onImmediate (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:17:14)
    at process.processImmediate (node:internal/timers:466:21) {
  isCypressErr: true,
  type: 'CLOUD_PROJECT_NOT_FOUND',
  details: undefined,
  messageMarkdown: 'We could not find a Cypress Cloud project with the projectId: `clientid`\n' +
    '\n' +
    'This `projectId` came from your `cypress.config.ts` file or an environment variable.\n' +
    '\n' +
    'Please log into Cypress Cloud and find your project.\n' +
    '\n' +
    "We will list the correct projectId in the 'Settings' tab.\n" +
    '\n' +
    'Alternatively, you can create a new project directly from within the Cypress app.\n' +
    '\n' +
    'https://on.cypress.io/cloud',
  originalError: undefined,
  stackWithoutMessage: '    at <embedded>:4721:477856\n' +
    '    at tryCatcher (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23)\n' +
    '    at Promise._settlePromiseFromHandler (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:512:31)\n' +
    '    at Promise._settlePromise (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:569:18)\n' +
    '    at Promise._settlePromise0 (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:614:10)\n' +
    '    at Promise._settlePromises (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/promise.js:690:18)\n' +
    '    at _drainQueueStep (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:138:12)\n' +
    '    at _drainQueue (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:131:9)\n' +
    '    at Async._drainQueues (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:147:5)\n' +
    '    at Immediate._onImmediate (/builds/team-name/group-name/project-name/.cypress/cache/12.8.0/Cypress/resources/app/node_modules/bluebird/js/release/async.js:17:14)\n' +
    '    at process.processImmediate (node:internal/timers:466:21)'
} +2m
We could not find a Cypress Cloud project with the projectId: clientid
This projectId came from your cypress.config.ts file or an environment variable.
Please log into Cypress Cloud and find your project.
We will list the correct projectId in the 'Settings' tab.
Alternatively, you can create a new project directly from within the Cypress app.
https://on.cypress.io/cloud
  cypress:server:cypress calling exit 1 +3ms
  cypress:server:cypress about to exit with code 1 +0ms
  cypress:server:browsers browsers.kill called with no active instance +0ms
  cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 0, proxyRequestsReceived: 0, immediatelyMatchedRequests: 0, unmatchedRequests: 0, unmatchedPreRequests: 0 } +0ms
2023-03-15T11:10:00.373Z cypress:cli child event fired { event: 'exit', code: 1, signal: null }
2023-03-15T11:10:00.373Z cypress:cli Stopping Xvfb
2023-03-15T11:10:00.375Z cypress:cli child event fired { event: 'close', code: 1, signal: null }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 1: yarn ci:cy2:run
    at makeError (/builds/team-name/group-name/project-name/node_modules/start-server-and-test/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/builds/team-name/group-name/project-name/node_modules/start-server-and-test/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 1: yarn ci:cy2:run',
  command: 'yarn ci:cy2:run',
  escapedCommand: '"yarn ci:cy2:run"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: coverage-reports/*: no matching files. Ensure that the artifact path is relative to the working directory 
WARNING: cypress/screenshots/*: no matching files. Ensure that the artifact path is relative to the working directory 
WARNING: cypress/videos/*: no matching files. Ensure that the artifact path is relative to the working directory 
WARNING: cypress/reports/junit/*: no matching files. Ensure that the artifact path is relative to the working directory 
ERROR: No files to upload                          
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

cy2 is failing to set CYPRESS_API_URL

When I run: CYPRESS_API_URL="http://localhost:1234/" npx cy2 run --parallel --record --key somekey --ci-build-id hello-cypress

I am getting:
[cy2] Running cypress with API URL: http://localhost:1234/ Error: EPERM: operation not permitted, open '/Users/foobar/Library/Caches/Cypress/10.11.0/Cypress.app/Contents/Resources/app/index.js' at Object.openSync (fs.js:498:3) at Object.writeFileSync (fs.js:1524:35) at Object.<anonymous> (/Users/foobar/node_modules/cy2/dist/patch.js:55:21) at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/foobar/node_modules/cy2/dist/patch.js:17:28) at _next (/Users/foobar/node_modules/cy2/dist/patch.js:35:17) { errno: -1, syscall: 'open', code: 'EPERM', path: '/Users/foobar/Library/Caches/Cypress/10.11.0/Cypress.app/Contents/Resources/app/index.js' }

I am on a Mac (Ventura) and Crypress 10.11.0

Thanks!

Unable to use cy.origin command with parallelization on Cypress 12.3

Before opening, please confirm:

Environment information

Running parallelization on GitLab pipeline: Running with gitlab-runner 14.8.3

 System:
    OS: Linux 5.4 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (48) x64 Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
    Memory: 112.47 GB / 125.53 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.6.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.13.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 105.0.5195.102
    Firefox: 104.0.1
  npmPackages:
    @badeball/cypress-cucumber-preprocessor: ^15.0.0 => 15.0.0 
    @bahmutov/cypress-esbuild-preprocessor: ^2.1.5 => 2.1.5 
    @cypress/angular:  0.0.0-development 
    @cypress/mount-utils:  0.0.0-development 
    @cypress/react:  0.0.0-development 
    @cypress/react18:  0.0.0-development 
    @cypress/svelte:  0.0.0-development 
    @cypress/vue:  0.0.0-development 
    @cypress/vue2:  0.0.0-development 
    @shelex/cypress-allure-plugin: ^2.28.5 => 2.34.0 
    @types/fs-extra: ^11.0.0 => 11.0.0 
    @typescript-eslint/eslint-plugin: ^5.48.0 => 5.48.0 
    @typescript-eslint/parser: ^5.48.0 => 5.48.0 
    allure-js-commons: ^2.0.0-beta.19 => 2.0.0-beta.23 
    cy2: ^4.0.3 => 4.0.3 
    cypress: ^12.3.0 => 12.3.0 
    cypress-file-upload: ^5.0.8 => 5.0.8 
    cypress-iframe: latest => 1.0.1 
    cypress-multi-reporters: ^1.6.2 => 1.6.2 
    cypress-recurse: ^1.27.0 => 1.27.0 
    cypress-slack-reporter: ^1.5.2 => 1.5.2 
    envinfo: ^7.8.1 => 7.8.1 
    esbuild: ^0.16.14 => 0.16.16 (0.14.54)
    eslint: ^8.31.0 => 8.31.0 
    eslint-plugin-cypress: ^2.12.1 => 2.12.1 
    mocha: ^10.2.0 => 10.2.0 
    mochawesome: ^7.1.3 => 7.1.3 
    mochawesome-merge: ^4.2.2 => 4.2.2 
    mochawesome-report-generator: ^6.2.0 => 6.2.0 
    npm-run-all: ^4.1.5 => 4.1.5 
    typescript: latest => 4.9.4 
    uid: ^2.0.1 => 2.0.1 
  npmGlobalPackages:
    allure-commandline: 2.20.1
    corepack: 0.12.0
    npm: 8.13.2
    yarn: 1.22.19

Describe the bug

I have a test where I'm running the app on the x page and then I'm going to the second domain with cy.origin command.

  • When I'm using it on a single run (without parallelization) the test is passing.

  • When I'm using parallelization I'm getting the error below:
    Error: The following error originated from your test code, not from Cypress. It was caused by an unhandled promise rejection.

    backend:request failed to receive a response from the primary Cypress spec bridge within 4 second.
    When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Expected behavior

Open the second domain using cy.origin command as on a single run.

Command and Setup

"test": "npx cy2 run --record --key XXX --parallel --ci-build-id $CI_PIPELINE_ID"

Full log and debug output

// Put your logs below this line


Unable to use CY2 with a https baseUrl

Before opening, please confirm:

Environment information

  System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 8.24 GB / 31.89 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.17.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 108.0.5359.125
    Edge: Spartan (44.19041.1266.0)

Describe the bug

Using cy2 4.0.1 and Cypress 12.3.0 I am unable to use the new run command with an https baseUrl in my config (see logs below). This was working a few days ago as I was just having trouble then with the command not returning the promise (#38 (comment)).

Expected behavior

To be able to use an https baseUrl.

Log and debug output

  cypress:server:ensure-url checking that baseUrl is available {
  baseUrl: 'https://www.example.com',
  delaysRemaining: [ 3000, 3000, 4000 ],
  retryIntervals: [ 3000, 3000, 4000 ]
} +0ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://www.example.com/' } +0ms
  cypress:network:agent got family { family: undefined, href: 'https://www.example.com/' } +4ms
  cypress:network:agent Creating proxied socket for https://www.example.com/ through https://undefined +8ms
  cypress:network:connect retries exhausted, bubbling up error { iteration: 0, err: Error: getaddrinfo ENOTFOUND undefined     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'undefined' } } +0ms
Cypress could not verify that this server is running:

  > https://www.example.com

We are verifying this server because it has been configured as your baseUrl.

Additional information and screenshots

Self hosted Sorry Cypress instance

Not working with Cypress 12.5.1

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information


  System:
    OS: macOS 13.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 81.31 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.0/bin/yarn
    npm: 9.4.1 - ~/.nvm/versions/node/v16.19.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.119
    Safari: 16.3
  npmPackages:
    @rushstack/eslint-patch: ^1.1.4 => 1.2.0 
    @types/node: ^18.11.12 => 18.11.19 
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0 
    @vue/eslint-config-prettier: ^7.0.0 => 7.0.0 
    @vue/eslint-config-typescript: ^11.0.0 => 11.0.2 
    @vue/tsconfig: ^0.1.3 => 0.1.3 
    cy2: ^4.0.6 => 4.0.6 
    cypress: ^12.0.2 => 12.5.1 
    eslint: ^8.22.0 => 8.33.0 
    eslint-plugin-cypress: ^2.12.1 => 2.12.1 
    eslint-plugin-vue: ^9.3.0 => 9.9.0 
    npm-run-all: ^4.1.5 => 4.1.5 
    prettier: ^2.7.1 => 2.8.3 
    start-server-and-test: ^1.15.2 => 1.15.3 
    typescript: ~4.7.4 => 4.7.4 
    vite: ^4.0.0 => 4.1.1 
    vue: ^3.2.45 => 3.2.47 
    vue-tsc: ^1.0.12 => 1.0.24 
  npmGlobalPackages:
    @vue/cli: 5.0.8
    corepack: 0.15.3
    fastify-cli: 5.7.1
    firebase-tools: 11.22.0
    generator-code: 1.7.3
    gulp-cli: 2.3.0
    npm: 9.4.1
    ts-node: 10.9.1
    tsx: 3.12.2
    vsce: 2.15.0
    yo: 4.3.1


Also using pnpm 7.26.3 as package manager

Describe the bug

Getting an error trying to use cy2:

You passed the --record flag but this project has not been setup to record.

This project is missing the projectId inside of: cypress.config.ts

We cannot uniquely identify this project without this id.

You need to setup this project to record. This will generate a unique projectId.

Alternatively if you omit the --record flag this project will run without recording.

https://on.cypress.io/recording-project-runs

Expected behavior

It works as documented.

Command and Setup

CYPRESS_API_URL="https://sorry-cypress-demo-director.herokuapp.com" pnpm start-server-and-test preview :4173 'cy2 run --parallel --record --key segev-test --ci-build-id hello-cypress'

In a bare bones pnpm create vue@3 project with TypeScript, ESLint, Prettier & Cypress enabled. Installing cy2 and running this command.

Full log and debug output

log.txt

cy2 patches global cypress on first run

Hi, toady I spent 3 hours debugging why after I first ran npx current --record I could not use cypress-dashboard in any of my projects on my machine getting error message

We encountered an unexpected error talking to our servers.
There is likely something wrong with the request.
The --tag flag you passed was: 
The server's response was:
StatusCodeError: 422
{
  "message": "Record key is invalid. Please visit https://app.currents.dev to see the valid record keys.",
  "errors": []
}

In the end I discovered that somehow cy2 patches cypress file ~/Library/Caches/Cypress/9.2.0/Cypress.app/Contents/Resources/app/packages/server/config/app.yml

and setting up this

 production:
-  api_url: "https://api.cypress.io/"
-  on_url: "https://on.cypress.io/"
+  api_url: https://cy.currents.dev
+  on_url: https://on.cypress.io/

and the only way how I can fix it – reinstall Cypress completely on my machine
Not cool at all :(

Limit node engine to 14.17+

Description

Versions below 14.17 throw:

  rootSchemaId = schema.$id || randomUUID()
                               ^
TypeError: randomUUID is not a function
    at build (/Users/agoldis/currents-demo/node_modules/fast-json-stringify/index.js:83:32)
    at Object.<anonymous> (/Users/agoldis/currents-demo/node_modules/roarr/dist/src/Roarr.js:15:57)

Example usage

Restrict node engine to 14.17+

Windows support?

When using cy2 on Windows I get an error:

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'D:\project\src\lib\tasks\state'
Require stack:
- D:\project\src\node_modules\cy2\lib\patch.js
- D:\project\src\node_modules\cy2\bin\cy2
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at D:\project\src\node_modules\cy2\lib\patch.js:19:19
    at D:\project\src\node_modules\npm-which\index.js:35:9
    at D:\project\src\node_modules\which\which.js:87:20
    at D:\project\src\node_modules\isexe\index.js:42:5
    at D:\project\src\node_modules\isexe\windows.js:36:5
    at FSReqCallback.oncomplete (fs.js:184:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'D:\\project\\src\\node_modules\\cy2\\lib\\patch.js',
    'D:\\project\\src\\node_modules\\cy2\\bin\\cy2'
  ]
}

Cy2 doesnt respect configuration files not found in the application root

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line
  System:
    OS: macOS 13.2.1
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Memory: 20.01 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.12.0 - ~/.nvm/versions/node/v16.12.0/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 8.6.0 - ~/.nvm/versions/node/v16.12.0/bin/npm
  Browsers:
    Chrome: 110.0.5481.100
    Firefox: 109.0
    Safari: 16.3
  npmPackages:
    @ampproject/toolbox-optimizer:  undefined ()
    @babel/core:  undefined ()
    @babel/runtime:  7.15.4 
    @cypress/angular:  0.0.0-development 
    @cypress/mount-utils:  0.0.0-development 
    @cypress/react:  0.0.0-development 
    @cypress/react18:  0.0.0-development 
    @cypress/svelte:  0.0.0-development 
    @cypress/vue:  0.0.0-development 
    @cypress/vue2:  0.0.0-development 
    @cypress/webpack-preprocessor: 5.15.6 => 5.15.6 
    @dynatrace/dtrum-api-types: 1.223.5 => 1.223.5 
    @edge-runtime/primitives:  1.1.0-beta.31 
    @faker-js/faker: 7.6.0 => 7.6.0 
    @gitbeaker/node: 35.8.0 => 35.8.0 
    @googlemaps/markerclustererplus: 1.2.10 => 1.2.10 
    @graphql-codegen/add: 3.2.1 => 3.2.1 (3.2.3)
    @graphql-codegen/cli: 2.12.0 => 2.12.0 
    @graphql-codegen/import-types-preset: 2.2.3 => 2.2.3 
    @graphql-codegen/near-operation-file-preset: 2.4.1 => 2.4.1 
    @graphql-codegen/plugin-helpers: 1.18.4 => 1.18.4 (2.7.2, 3.1.2, 1.17.7, 1.18.8)
    @graphql-codegen/schema-ast: 2.5.1 => 2.5.1 
    @graphql-codegen/testing: 1.17.7 => 1.17.7 
    @graphql-codegen/typescript: 1.23.0 => 1.23.0 
    @graphql-codegen/typescript-compatibility: 2.1.5 => 2.1.5 
    @graphql-codegen/typescript-document-nodes: 2.3.3 => 2.3.3 
    @graphql-codegen/typescript-operations: 1.18.4 => 1.18.4 
    @graphql-codegen/typescript-react-query: 1.3.0 => 1.3.0 
    @graphql-codegen/visitor-plugin-common: 1.19.1 => 1.19.1 (2.12.1, 1.22.0)
    @graphql-tools/optimize: 1.3.1 => 1.3.1 
    @hapi/accept:  undefined ()
    @napi-rs/triples:  undefined ()
    @neuralegion/cypress-har-generator: 5.2.3 => 5.2.3 
    @next/react-dev-overlay:  undefined ()
    @nrwl/cli: 15.6.0 => 15.6.0 
    @nrwl/cypress: 15.6.0 => 15.6.0 
    @nrwl/devkit: 15.6.0 => 15.6.0 
    @nrwl/eslint-plugin-nx: 15.6.0 => 15.6.0 
    @nrwl/express: 15.6.0 => 15.6.0 
    @nrwl/jest: 15.6.0 => 15.6.0 
    @nrwl/js: 15.6.0 => 15.6.0 
    @nrwl/linter: 15.6.0 => 15.6.0 
    @nrwl/next: 15.6.0 => 15.6.0 
    @nrwl/node: 15.6.0 => 15.6.0 
    @nrwl/nx-plugin: 15.6.0 => 15.6.0 
    @nrwl/react: 15.6.0 => 15.6.0 
    @nrwl/storybook: 15.6.0 => 15.6.0 
    @nrwl/tao: 15.6.0 => 15.6.0 
    @nrwl/web: 15.6.0 => 15.6.0 
    @nrwl/workspace: 15.6.0 => 15.6.0 
    @reach/combobox: 0.16.5 => 0.16.5 
    @reach/dialog: 0.16.2 => 0.16.2 
    @reach/menu-button: 0.16.2 => 0.16.2 
    @reach/rect: 0.16.0 => 0.16.0 
    @reach/slider: 0.18.0 => 0.18.0 
    @reach/tabs: 0.16.4 => 0.16.4 
    @reach/utils: 0.16.0 => 0.16.0 (0.18.0)
    @segment/ajv-human-errors:  undefined ()
    @storybook/addon-a11y: 6.5.14 => 6.5.14 
    @storybook/addon-cssresources: 6.2.9 => 6.2.9 
    @storybook/addon-docs: 6.5.14 => 6.5.14 (6.5.16)
    @storybook/addon-essentials: ^6.5.15 => 6.5.16 
    @storybook/addon-links: 6.5.14 => 6.5.14 
    @storybook/addon-postcss: 2.0.0 => 2.0.0 
    @storybook/addon-toolbars: 6.5.14 => 6.5.14 (6.5.16)
    @storybook/addons: 6.5.14 => 6.5.14 (6.5.16, 6.2.9, 6.5.15)
    @storybook/builder-webpack5: ^6.5.15 => 6.5.16 
    @storybook/core: 6.5.14 => 6.5.14 (6.5.16)
    @storybook/core-server: 6.5.15 => 6.5.15 (6.5.14, 6.5.16)
    @storybook/manager-webpack5: ^6.5.15 => 6.5.16 
    @storybook/mdx2-csf: 0.0.3 => 0.0.3 
    @storybook/react: ^6.5.15 => 6.5.16 
    @storybook/types: 7.0.0-alpha.44 => 7.0.0-alpha.44 
    @swc-node/register: ^1.4.2 => 1.5.5 
    @swc/core: 1.3.25 => 1.3.25 
    @tailwindcss/custom-forms: 0.2.1 => 0.2.1 
    @tailwindcss/forms: 0.5.3 => 0.5.3 
    @tailwindcss/typography: 0.5.2 => 0.5.2 
    @testing-library/cypress: 8.0.3 => 8.0.3 
    @testing-library/jest-dom: 5.16.5 => 5.16.5 
    @testing-library/react: 13.4.0 => 13.4.0 
    @testing-library/user-event: 14.4.3 => 14.4.3 
    @types/cors: 2.8.12 => 2.8.12 
    @types/debounce: 1.2.1 => 1.2.1 
    @types/express: 4.17.14 => 4.17.14 (4.17.16, 4.17.15)
    @types/google-map-react: 2.1.3 => 2.1.3 
    @types/google.maps: 3.51.0 => 3.51.0 
    @types/i18next-fs-backend: 1.1.2 => 1.1.2 
    @types/jest: 29.1.2 => 29.1.2 (29.2.5)
    @types/lodash: 4.14.170 => 4.14.170 (4.14.191)
    @types/node: 18.11.9 => 18.11.9 (18.11.18, 16.18.11, 14.18.36, 8.10.66)
    @types/react: 18.0.25 => 18.0.25 (18.0.26)
    @types/react-dom: 18.0.9 => 18.0.9 (18.0.10)
    @types/uuid: 8.3.1 => 8.3.1 
    @types/webpack-bundle-analyzer: 4.6.0 => 4.6.0 
    @types/yup: 0.26.0 => 0.26.0 
    @typescript-eslint/eslint-plugin: 5.48.1 => 5.48.1 
    @vercel/nft:  undefined ()
    acorn:  undefined ()
    amphtml-validator:  undefined ()
    apollo-server-errors: 3.3.1 => 3.3.1 
    arg:  undefined ()
    assert:  undefined ()
    async-retry:  undefined ()
    async-sema:  undefined ()
    auto-bind: 4.0.0 => 4.0.0 
    autoprefixer: 10.4.13 => 10.4.13 (9.8.8)
    axe-core: 4.6.3 => 4.6.3 (4.6.2)
    babel-jest: 28.1.3 => 28.1.3 (29.3.1)
    babel-loader: 8.1.0 => 8.1.0 (9.1.2, 8.3.0)
    babel-packages:  undefined ()
    browserify-zlib:  undefined ()
    browserslist:  undefined ()
    buffer:  undefined ()
    bytes:  undefined ()
    card-validator: 8.1.1 => 8.1.1 
    chalk:  undefined ()
    change-case-all: 1.0.14 => 1.0.14 (1.0.15, 1.0.12)
    ci-info:  undefined ()
    classnames: 2.3.1 => 2.3.1 
    cli-select:  undefined ()
    comment-json:  undefined ()
    compression:  undefined ()
    conf:  undefined ()
    constants-browserify:  undefined ()
    content-disposition:  undefined ()
    content-type:  undefined ()
    cookie:  undefined ()
    copy-webpack-plugin: 11.0.0 => 11.0.0 (10.2.4)
    cors: 2.8.5 => 2.8.5 
    credit-card-type: 9.1.0 => 9.1.0 
    cross-spawn:  undefined ()
    crypto-browserify:  undefined ()
    cssnano-simple:  undefined ()
    cy2: 4.0.6 => 4.0.6 
    cypress: 12.6.0 => 12.6.0 
    cypress-axe: 1.3.0 => 1.3.0 
    cypress-if: 1.10.3 => 1.10.3 
    cypress-iframe: 1.0.1 => 1.0.1 
    cypress-image-snapshot: 4.0.1 => 4.0.1 
    cypress-wait-until: 1.7.2 => 1.7.2 
    date-fns: 2.29.3 => 2.29.3 (2.8.1, 2.14.0)
    debounce: 1.2.0 => 1.2.0 (1.2.1)
    debug:  undefined ()
    devalue:  undefined ()
    devcert: 1.1.3 => 1.1.3 
    domain-browser:  undefined ()
    dotenv: 10.0.0 => 10.0.0 (16.0.3, 8.6.0)
    downshift: 7.0.4 => 7.0.4 
    edge-runtime:  undefined ()
    eslint: 8.15.0 => 8.15.0 
    eslint-config-next: 13.1.1 => 13.1.1 
    eslint-config-prettier: 8.1.0 => 8.1.0 
    eslint-plugin-cypress: ^2.10.3 => 2.12.1 
    eslint-plugin-import: 2.25.2 => 2.25.2 (2.26.0)
    eslint-plugin-jsx-a11y: 6.6.1 => 6.6.1 (6.7.0)
    eslint-plugin-lodash: 7.2.0 => 7.2.0 
    eslint-plugin-mdx: 2.0.5 => 2.0.5 
    eslint-plugin-no-only-tests: 3.1.0 => 3.1.0 
    eslint-plugin-react: 7.31.11 => 7.31.11 (7.32.0)
    eslint-plugin-react-hooks: 4.6.0 => 4.6.0 
    eslint-plugin-security: 1.4.0 => 1.4.0 
    eslint-plugin-storybook: 0.6.8 => 0.6.8 
    events:  undefined ()
    express: 4.18.1 => 4.18.1 (4.18.2)
    fast-memoize: 2.5.2 => 2.5.2 
    fetch-mock: 9.11.0 => 9.11.0 
    find-cache-dir:  undefined ()
    find-up:  undefined ()
    formik: 2.2.9 => 2.2.9 
    fresh:  undefined ()
    fs-extra: 10.0.0 => 10.0.0 (9.1.0, 10.1.0, 8.1.0, 11.1.0, 7.0.1)
    get-orientation:  undefined ()
    glob: 8.0.3 => undefined (7.2.3, 7.1.7, 7.1.4, 7.1.3, 8.0.3, )
    google-map-react: 2.1.10 => 2.1.10 
    got: 11.8.1 => 11.8.1 (11.8.6)
    graphql: 15.5.1 => 15.5.1 (14.7.0, 15.8.0)
    graphql-tag: 2.12.4 => 2.12.4 (2.12.6)
    graphql-tag-transform.macro: 1.1.1 => 1.1.1 
    graphql-tools: 5.0.0 => 5.0.0 
    gzip-size:  undefined ()
    helmet: 4.6.0 => 4.6.0 
    history: 5.3.0 => 5.3.0 
    html-react-parser: 3.0.4 => 3.0.4 
    http-proxy:  undefined ()
    http-proxy-middleware: 2.0.1 => 2.0.1 (2.0.6)
    https-browserify:  undefined ()
    https-proxy-agent: 5.0.0 => 5.0.0 (5.0.1)
    husky: 7.0.1 => 7.0.1 (4.2.5)
    i18next: 22.0.7 => 22.0.7 (21.10.0)
    i18next-chained-backend: 4.2.0 => 4.2.0 
    i18next-fs-backend: 1.1.1 => 1.1.1 (2.1.1)
    i18next-http-backend: 1.2.4 => 1.2.4 
    icss-utils:  undefined ()
    ignore-loader:  undefined ()
    image-size:  undefined ()
    intl-format-cache: 4.3.1 => 4.3.1 
    is-animated:  undefined ()
    is-docker:  undefined ()
    is-wsl:  undefined ()
    jest: 29.3.1 => 29.3.1 
    jest-diff: 29.1.2 => 29.1.2 (28.1.3, 29.3.1)
    jest-environment-jsdom: 29.3.1 => 29.3.1 
    jest-express: 1.12.0 => 1.12.0 
    jest-fetch-mock: 3.0.3 => 3.0.3 
    jest-junit: 14.0.1 => 14.0.1 
    jest-worker:  undefined ()
    json5:  undefined ()
    jsonwebtoken:  undefined ()
    lint-staged: 11.0.0 => 11.0.0 (10.5.4)
    loader-utils:  undefined ()
    lodash: 4.17.21 => 4.17.21 (4.17.15)
    lodash.curry:  undefined ()
    lru-cache:  undefined ()
    markdown-to-jsx: 7.1.5 => 7.1.5 (7.1.8)
    micromatch:  undefined ()
    mini-css-extract-plugin:  undefined ()
    mockdate: 3.0.5 => 3.0.5 
    moment: 2.23.0 => 2.23.0 (2.29.4)
    msw: 0.35.0 => 0.35.0 
    nanoid: 3.3.4 => undefined (3.3.4, )
    native-url:  undefined ()
    neo-async:  undefined ()
    next: 12.3.1 => 12.3.1 
    next-build-id: 3.0.0 => 3.0.0 
    next-i18next: 13.0.1 => 13.0.1 
    next-i18next-create-client:  undefined ()
    node-fetch: 2.6.1 => 2.6.1 (2.6.7, 1.7.3, )
    node-html-parser:  undefined ()
    ora:  undefined ()
    os-browserify:  undefined ()
    p-limit:  undefined ()
    path-browserify:  undefined ()
    postcss: 8.4.19 => 8.4.19 (8.4.21, 7.0.39, 8.4.14)
    postcss-custom-properties: 10.0.0 => 10.0.0 
    postcss-flexbugs-fixes:  undefined ()
    postcss-import: 13.0.0 => 13.0.0 (14.1.0)
    postcss-modules-extract-imports:  undefined ()
    postcss-modules-local-by-default:  undefined ()
    postcss-modules-scope:  undefined ()
    postcss-modules-values:  undefined ()
    postcss-preset-env:  undefined ()
    postcss-safe-parser:  undefined ()
    postcss-scss:  undefined ()
    postcss-value-parser:  undefined ()
    prettier: 2.7.0 => 2.7.0 (2.3.0)
    prettier-plugin-tailwindcss: 0.2.0 => 0.2.0 
    pretty-quick: 3.1.0 => 3.1.0 
    process:  undefined ()
    punycode:  undefined ()
    query-string: 7.1.1 => 7.1.1 (7.1.3)
    querystring: 0.2.1 => 0.2.1 (0.2.0)
    querystring-es3:  undefined ()
    raw-body:  undefined ()
    raw-loader: 4.0.2 => 4.0.2 
    react: 18.2.0 => 18.2.0 
    react-dates: 21.6.0 => 21.6.0 
    react-dom: 18.2.0 => 18.2.0 (16.8.6)
    react-error-boundary: 3.1.4 => 3.1.4 
    react-hook-form: 7.33.0 => 7.33.0 
    react-i18next: 12.0.0 => 12.0.0 
    react-icons: 4.2.0 => 4.2.0 
    react-idle-timer: 5.4.0 => 5.4.0 
    react-intersection-observer: 9.4.1 => 9.4.1 
    react-is:  17.0.2 
    react-json-view: 1.21.3 => 1.21.3 
    react-query: 3.39.2 => 3.39.2 
    react-redux: 8.0.5 => 8.0.5 
    react-refresh:  0.12.0 
    react-responsive: 8.0.1 => 8.0.1 
    react-server-dom-webpack:  undefined ()
    react-svg: 13.0.5 => 13.0.5 
    redux: 4.2.0 => 4.2.0 
    redux-sessionstorage: 0.4.0 => 0.4.0 
    regenerator-runtime:  0.13.4 
    resize-observer-polyfill: 1.5.1 => 1.5.1 
    sass-loader:  undefined ()
    schema-utils:  undefined ()
    semver:  undefined ()
    send:  undefined ()
    setimmediate:  undefined ()
    simple-git: 2.47.0 => 2.47.0 
    source-map:  undefined ()
    stream-browserify:  undefined ()
    stream-http:  undefined ()
    string-hash:  undefined ()
    string_decoder:  undefined ()
    strip-ansi:  undefined ()
    strip-js: 1.2.0 => 1.2.0 
    tailwind-override: 0.0.10 => 0.0.10 
    tailwindcss: 3.2.4 => 3.2.4 
    tar:  undefined ()
    terser:  undefined ()
    text-table:  undefined ()
    timers-browserify:  undefined ()
    ts-jest: 29.0.3 => 29.0.3 
    ts-keycode-enum: 1.0.6 => 1.0.6 
    ts-node: 10.9.1 => 10.9.1 
    tslib: 2.4.1 => 2.4.1 (2.0.3, 2.2.0, 2.1.0, 1.14.1, 2.3.1)
    tty-browserify:  undefined ()
    typescript: 4.8.4 => 4.8.4 
    ua-parser-js:  undefined ()
    unistore:  undefined ()
    universal-cookie: 4.0.4 => 4.0.4 
    util:  undefined ()
    vm-browserify:  undefined ()
    watchpack:  undefined ()
    web-vitals:  undefined ()
    webpack:  undefined ()
    webpack-bundle-analyzer: 4.7.0 => 4.7.0 (4.5.0)
    webpack-sources:  undefined ()
    whatwg-fetch: 3.6.2 => 3.6.2 
    ws:  undefined ()
    yaml: 1.10.2 => 1.10.2 
    yup: 0.24.1 => 0.24.1 
  npmGlobalPackages:
    corepack: 0.10.0
    npm: 8.6.0

Describe the bug

Hey looking for some help on this one. Were using NX 15.6.0, Cypress 12.6.0, and Cy2 4.0.6. Every time we try to run Cypress, we receive the following error message: Could not find a Cypress configuration file in this folder: /Users/ccapocaccia/code/myRepo

Here is our implementation of Cy2

`import { ExecutorContext } from '@nrwl/devkit';
import cypress, { CypressExecutorOptions } from '@nrwl/cypress/src/executors/cypress/cypress.impl';

// @ts-ignore
import { run } from 'cy2';

export default async function cypressExecutor(
options: CypressExecutorOptions & { ciParallelRunners: number },
context: ExecutorContext
) {
try {
await run('https://sorry-cypress-director.myurl.com/', options);
} catch (e) {
console.log('error patching cypress', e);
return { success: false };
}

return cypress(options, context);
}`

And here a copy of the options object referenced above

{ "cypressConfig": "./apps/e2e/cypress.config.ts", "baseUrl": "https://www.myurl.com/", "testingType": "e2e", "record": true, "parallel": true, "ciParallelRunners": 5, "browser": "chrome", "watch": false, "headed": false, "headless": false, "exit": true, "skipServe": false }

Expected behavior

The expected behavior is that cy2 is able to find the configuration file using the path passed in via the options object.

Command and Setup

yarn nx run e2e:e2e

Full log and debug output

2023-03-01T14:33:10.229Z cypress:cli exporting Cypress module interface
2023-03-01T14:33:10.561Z cy2 Cypress API URL: https://sorry-cypress-director.myDomain.com
2023-03-01T14:33:10.561Z cy2 Package version: 4.0.6
2023-03-01T14:33:10.566Z cy2 Original environment variables {}
2023-03-01T14:33:10.566Z cy2 Sanitized environment variables { https_proxy: undefined, http_proxy: undefined, npm_config_proxy: undefined, npm_config_https_proxy: undefined, NO_PROXY: undefined, HTTP_PROXY: undefined, HTTPS_PROXY: undefined }
2023-03-01T14:33:10.569Z cy2-net Proxy is listening on port 52834
2023-03-01T14:33:10.575Z cy2 Resolved proxy environment variables { https_proxy: undefined, http_proxy: undefined, npm_config_proxy: undefined, npm_config_https_proxy: undefined, NO_PROXY: undefined, HTTP_PROXY: undefined, HTTPS_PROXY: 'http://127.0.0.1:52834', NODE_EXTRA_CA_CERTS: '/var/folders/mp/x9cj0g611yjgyzjtmz_wss6mkvn5k4/T/tmp-64651-vrTLUANoQdt1' }
2023-03-01T14:33:10.575Z cy2 Deleting env https_proxy
2023-03-01T14:33:10.575Z cy2 Deleting env http_proxy
2023-03-01T14:33:10.575Z cy2 Deleting env npm_config_proxy
2023-03-01T14:33:10.575Z cy2 Deleting env npm_config_https_proxy
2023-03-01T14:33:10.575Z cy2 Deleting env NO_PROXY
2023-03-01T14:33:10.576Z cy2 Deleting env HTTP_PROXY
2023-03-01T14:33:10.576Z cy2 Setting env HTTPS_PROXY=http://127.0.0.1:52834
2023-03-01T14:33:10.576Z cy2 Setting env NODE_EXTRA_CA_CERTS=/var/folders/mp/x9cj0g611yjgyzjtmz_wss6mkvn5k4/T/tmp-64651-vrTLUANoQdt1
2023-03-01T14:33:10.578Z cypress:cli verifying Cypress app
2023-03-01T14:33:10.579Z cypress:cli checking environment variables
2023-03-01T14:33:10.580Z cypress:cli checking if executable exists /Users/ccapocaccia/Library/Caches/Cypress/12.6.0/Cypress.app/Contents/MacOS/Cypress
2023-03-01T14:33:10.581Z cypress:cli Binary is executable? : true
2023-03-01T14:33:10.581Z cypress:cli binaryDir is /Users/ccapocaccia/Library/Caches/Cypress/12.6.0/Cypress.app
2023-03-01T14:33:10.581Z cypress:cli Reading binary package.json from: /Users/ccapocaccia/Library/Caches/Cypress/12.6.0/Cypress.app/Contents/Resources/app/package.json
2023-03-01T14:33:10.583Z cypress:cli Found binary version 12.6.0 installed in: /Users/ccapocaccia/Library/Caches/Cypress/12.6.0/Cypress.app
2023-03-01T14:33:10.585Z cypress:cli { verified: true }
2023-03-01T14:33:10.585Z cypress:cli is Verified ? true
2023-03-01T14:33:10.585Z cypress:cli:run processing run options { outputPath: '/var/folders/mp/x9cj0g611yjgyzjtmz_wss6mkvn5k4/T/tmp-64651-ZzkyAusu8iKN', key: null, spec: null, reporter: null, reporterOptions: null, project: '/Users/ccapocaccia/code/dx-ui' }
2023-03-01T14:33:10.585Z cypress:cli:run --key is not set, looking up environment variable CYPRESS_RECORD_KEY
2023-03-01T14:33:10.585Z cypress:cli:run run to spawn.start args ["--run-project","/Users/ccapocaccia/code/dx-ui","--output-path","/var/folders/mp/x9cj0g611yjgyzjtmz_wss6mkvn5k4/T/tmp-64651-ZzkyAusu8iKN"]
2023-03-01T14:33:10.585Z cypress:cli needs to start own Xvfb? false
2023-03-01T14:33:10.586Z cypress:cli spawning, should retry on display problem? false
2023-03-01T14:33:10.597Z cypress:cli spawn args [ '--no-sandbox', '--', '--run-project', '/Users/ccapocaccia/code/dx-ui', '--output-path', '/var/folders/mp/x9cj0g611yjgyzjtmz_wss6mkvn5k4/T/tmp-64651-ZzkyAusu8iKN', '--cwd', '/Users/ccapocaccia/code/dx-ui', '--userNodePath', '/Users/ccapocaccia/.nvm/versions/node/v16.12.0/bin/node', '--userNodeVersion', '16.12.0' ] { detached: false, stdio: [ 'inherit', 'inherit', 'pipe' ] }
2023-03-01T14:33:10.597Z cypress:cli spawning Cypress with executable: /Users/ccapocaccia/Library/Caches/Cypress/12.6.0/Cypress.app/Contents/MacOS/Cypress
2023-03-01T14:33:10.601Z cypress:cli piping child STDERR to process STDERR
Could not find a Cypress configuration file in this folder: /Users/ccapocaccia/code/dx-ui

// Put your logs below this line


Unable to upload results over http

Before opening, please confirm:

Environment information

# Put output below this line
System:
    OS: Linux 3.10 CentOS Linux 7 (Core)
    CPU: (32) x64 Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
    Memory: 91.42 GB / 124.34 GB
    Container: Yes
    Shell: 4.2.46 - /bin/bash
  Binaries:
    Node: 16.13.1 - ~/soft/node-v16.13.1-linux-x64/bin/node
    npm: 9.2.0 - ~/soft/node-v16.13.1-linux-x64/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
  npmPackages:
    ...
    cy2: ^4.0.1 => 4.0.1
    cypress: 12.3.0 => 12.3.0 
    ...

Describe the bug

Process is stuck in Uploading Results

Expected behavior

Upload videos normally

Log and debug output

// Put your logs below this line


Additional information and screenshots

No response

Unable to fetch HTTPS in cypress test

Before opening, please confirm:

Environment information

cy2 v4.0.3
cypress v12.3.0

System:
    OS: Linux 3.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (16) x64 Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz
    Memory: 24.69 GB / 31.42 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 100.0.4896.88
    Firefox: 99.0.1
  npmPackages:
    @ampproject/toolbox-optimizer:  undefined ()
    @apollo/client: 3.7.3 => 3.7.3 
    @apollo/client/cache:  undefined ()
    @apollo/client/core:  undefined ()
    @apollo/client/errors:  undefined ()
    @apollo/client/link/batch:  undefined ()
    @apollo/client/link/batch-http:  undefined ()
    @apollo/client/link/context:  undefined ()
    @apollo/client/link/core:  undefined ()
    @apollo/client/link/error:  undefined ()
    @apollo/client/link/http:  undefined ()
    @apollo/client/link/persisted-queries:  undefined ()
    @apollo/client/link/retry:  undefined ()
    @apollo/client/link/schema:  undefined ()
    @apollo/client/link/subscriptions:  undefined ()
    @apollo/client/link/utils:  undefined ()
    @apollo/client/link/ws:  undefined ()
    @apollo/client/react:  undefined ()
    @apollo/client/react/components:  undefined ()
    @apollo/client/react/context:  undefined ()
    @apollo/client/react/hoc:  undefined ()
    @apollo/client/react/hooks:  undefined ()
    @apollo/client/react/parser:  undefined ()
    @apollo/client/react/ssr:  undefined ()
    @apollo/client/testing:  undefined ()
    @apollo/client/testing/core:  undefined ()
    @apollo/client/utilities:  undefined ()
    @apollo/client/utilities/globals:  undefined ()
    @babel/core:  undefined ()
    @babel/runtime:  7.15.4 
    @cypress-audit/lighthouse: 1.3.1 => 1.3.1 
    @cypress-audit/pa11y: 1.3.1 => 1.3.1 
    @cypress/angular:  0.0.0-development 
    @cypress/code-coverage: 3.10.0 => 3.10.0 
    @cypress/mount-utils:  0.0.0-development 
    @cypress/react:  0.0.0-development 
    @cypress/react18:  0.0.0-development 
    @cypress/svelte:  0.0.0-development 
    @cypress/vue:  0.0.0-development 
    @cypress/vue2:  0.0.0-development 
    @date-io/date-fns: 2.16.0 => 2.16.0 
    @edge-runtime/primitives:  2.0.0 
    @emotion/cache: 11.10.5 => 11.10.5 
    @emotion/is-prop-valid: 1.2.0 => 1.2.0 (0.8.8)
    @emotion/react: 11.10.5 => 11.10.5 
    @emotion/server: 11.10.0 => 11.10.0 
    @emotion/styled: 11.10.5 => 11.10.5 
    @evilmartians/lefthook: 1.2.6 => 1.2.6 
    @faker-js/faker: 7.6.0 => 7.6.0 
    @fortawesome/fontawesome-svg-core: 6.2.1 => 6.2.1 
    @fortawesome/free-brands-svg-icons: 6.2.1 => 6.2.1 
    @fortawesome/free-regular-svg-icons: 6.2.1 => 6.2.1 
    @fortawesome/free-solid-svg-icons: 6.2.1 => 6.2.1 
    @fortawesome/react-fontawesome: 0.2.0 => 0.2.0 
    @graphql-codegen/cli: 2.16.3 => 2.16.3 
    @graphql-codegen/introspection: 2.2.3 => 2.2.3 
    @graphql-codegen/typescript: 2.8.7 => 2.8.7 
    @graphql-codegen/typescript-operations: 2.5.12 => 2.5.12 
    @graphql-codegen/typescript-react-apollo: 3.3.7 => 3.3.7 
    @hapi/accept:  undefined ()
    @hookform/error-message: 2.0.1 => 2.0.1 
    @hookform/resolvers: 2.9.10 => 2.9.10 
    @hookform/resolvers/ajv:  1.0.0 
    @hookform/resolvers/class-validator:  1.0.0 
    @hookform/resolvers/computed-types:  1.0.0 
    @hookform/resolvers/io-ts:  1.0.0 
    @hookform/resolvers/joi:  1.0.0 
    @hookform/resolvers/nope:  1.0.0 
    @hookform/resolvers/superstruct:  1.0.0 
    @hookform/resolvers/typanion:  1.0.0 
    @hookform/resolvers/vest:  1.0.0 
    @hookform/resolvers/yup:  1.0.0 
    @hookform/resolvers/zod:  1.0.0 
    @mui/base: 5.0.0-alpha.113 => 5.0.0-alpha.113 
    @mui/lab: 5.0.0-alpha.115 => 5.0.0-alpha.115 
    @mui/material: 5.11.4 => 5.11.4 
    @mui/system: 5.11.4 => 5.11.4 
    @mui/x-date-pickers: 5.0.13 => 5.0.13 
    @n1ru4l/graphql-live-query: 0.10.0 => 0.10.0 
    @napi-rs/triples:  undefined ()
    @next/react-dev-overlay:  undefined ()
    @segment/ajv-human-errors:  undefined ()
    @sentry/cli: 2.11.0 => 2.11.0 (1.74.6)
    @sentry/nextjs: 7.29.0 => 7.29.0 
    @svgr/webpack: 6.5.1 => 6.5.1 
    @tanstack/react-table: 8.7.6 => 8.7.6 
    @tanstack/react-virtual: 3.0.0-alpha.0 => 3.0.0-alpha.0 
    @testing-library/cypress: 9.0.0 => 9.0.0 
    @types/dotenv-flow: 3.2.0 => 3.2.0 
    @types/lodash: 4.14.191 => 4.14.191 
    @types/node: 16.18.11 => 16.18.11 (18.11.9, 14.18.33)
    @types/react: 18.0.26 => 18.0.26 
    @types/react-dom: 18.0.10 => 18.0.10 
    @types/react-highlight-words: 0.16.4 => 0.16.4 
    @types/react-table: 7.7.14 => 7.7.14 
    @types/react-virtualized: 9.21.21 => 9.21.21 
    @typescript-eslint/eslint-plugin: 5.48.1 => 5.48.1 
    @typescript-eslint/parser: 5.48.1 => 5.48.1 (5.44.0)
    @vercel/nft:  undefined ()
    acorn:  undefined ()
    amphtml-validator:  undefined ()
    anser:  undefined ()
    arg:  undefined ()
    assert:  undefined ()
    async-retry:  undefined ()
    async-sema:  undefined ()
    babel-packages:  undefined ()
    browserify-zlib:  undefined ()
    browserslist:  undefined ()
    buffer:  undefined ()
    bytes:  undefined ()
    chalk: 5.2.0 => undefined (4.1.2, 2.4.2, 3.0.0, 5.2.0, )
    check-code-coverage: 1.10.4 => 1.10.4 
    ci-info:  undefined ()
    cli-select:  undefined ()
    comment-json:  undefined ()
    compression:  undefined ()
    conf:  undefined ()
    constants-browserify:  undefined ()
    content-disposition:  undefined ()
    content-type:  undefined ()
    cookie:  undefined ()
    cross-env: 7.0.3 => 7.0.3 
    cross-spawn:  undefined ()
    cross-undici-fetch: 0.4.14 => 0.4.14 
    crypto-browserify:  undefined ()
    css.escape:  undefined ()
    cssnano-simple:  undefined ()
    cy2: 4.0.3 => 4.0.3 
    cypress: 12.3.0 => 12.3.0 
    cypress-mochawesome-reporter: 3.2.3 => 3.2.3 
    cypress-multi-reporters: 1.6.2 => 1.6.2 
    cypress-visual-regression: 2.1.0 => 2.1.0 
    cypress-wait-until: 1.7.2 => 1.7.2 
    data-uri-to-buffer:  undefined ()
    date-fns: 2.29.3 => 2.29.3 
    debug:  undefined ()
    deepmerge: 4.2.2 => 4.2.2 (3.3.0)
    del: 6.1.1 => 6.1.1 
    devalue:  undefined ()
    domain-browser:  undefined ()
    dotenv-expand: 10.0.0 => 10.0.0 
    dotenv-flow: 3.2.0 => 3.2.0 
    edge-runtime:  undefined ()
    env-var: 7.3.0 => 7.3.0 
    eslint: 8.31.0 => 8.31.0 
    eslint-config-next: 13.1.1 => 13.1.1 
    eslint-config-prettier: 8.6.0 => 8.6.0 
    eslint-plugin-prettier: 4.2.1 => 4.2.1 
    events:  undefined ()
    find-cache-dir:  undefined ()
    find-up:  undefined ()
    framer-motion: 8.3.3 => 8.3.3 
    fresh:  undefined ()
    get-orientation:  undefined ()
    glob:  undefined ()
    graphiql: 2.2.0 => 2.2.0 
    graphql: 16.6.0 => 16.6.0 
    graphql-voyager: 1.0.0-rc.31 => 1.0.0-rc.31 
    graphql-ws: 5.11.2 => 5.11.2 
    gzip-size:  undefined ()
    http-proxy:  undefined ()
    https-browserify:  undefined ()
    https-proxy-agent: 5.0.1 => 5.0.1 
    icss-utils:  undefined ()
    ignore-loader:  undefined ()
    image-size:  undefined ()
    is-animated:  undefined ()
    is-docker:  undefined ()
    is-wsl:  undefined ()
    iso-datestring-validator: 2.2.2 => 2.2.2 
    jest-worker:  undefined ()
    json5:  undefined ()
    jsonwebtoken:  undefined ()
    loader-utils:  undefined ()
    lodash: 4.17.21 => 4.17.21 
    lodash.curry:  undefined ()
    lru-cache:  undefined ()
    material-ui-popup-state: 5.0.4 => 5.0.4 
    merge-partially: 2.0.2 => 2.0.2 
    micromatch:  undefined ()
    mini-css-extract-plugin:  undefined ()
    mocha-junit-reporter: 2.2.0 => 2.2.0 
    nanoid:  undefined ()
    native-url:  undefined ()
    neo-async:  undefined ()
    next: 13.1.1 => 13.1.1 
    next-auth: 4.18.8 => 4.18.8 
    next-build-id: 3.0.0 => 3.0.0 
    next-http-proxy-middleware: 1.2.5 => 1.2.5 
    next-logger: 3.0.1 => 3.0.1 
    next-safe: 3.3.0 => 3.3.0 
    node-fetch: 3.3.0 => 3.3.0 (2.6.7, )
    node-html-parser:  undefined ()
    npm-run-all: 4.1.5 => 4.1.5 
    ora:  undefined ()
    os-browserify:  undefined ()
    p-limit:  undefined ()
    path-browserify:  undefined ()
    pathpida: 0.20.1 => 0.20.1 
    pino: 8.8.0 => 8.8.0 (7.11.0)
    platform:  undefined ()
    postcss-flexbugs-fixes:  undefined ()
    postcss-modules-extract-imports:  undefined ()
    postcss-modules-local-by-default:  undefined ()
    postcss-modules-scope:  undefined ()
    postcss-modules-values:  undefined ()
    postcss-preset-env:  undefined ()
    postcss-safe-parser:  undefined ()
    postcss-scss:  undefined ()
    postcss-value-parser:  undefined ()
    prettier: 2.8.2 => 2.8.2 (2.7.1, 2.2.1)
    process:  undefined ()
    punycode:  undefined ()
    querystring-es3:  undefined ()
    raw-body:  undefined ()
    react: 18.2.0 => 18.2.0 (18.3.0-next-3ba7add60-20221201)
    react-device-detect: 2.2.2 => 2.2.2 
    react-dom: 18.2.0 => 18.2.0 (18.3.0-next-3ba7add60-20221201)
    react-error-boundary: 3.1.4 => 3.1.4 
    react-highlight-words: 0.18.0 => 0.18.0 
    react-hook-form: 7.41.5 => 7.41.5 
    react-is: 18.2.0 => 18.2.0 (16.13.1, 17.0.2)
    react-markdown: 8.0.4 => 8.0.4 
    react-merge-refs: 2.0.1 => 2.0.1 
    react-number-format: 5.1.2 => 5.1.2 
    react-refresh:  0.12.0 
    react-server-dom-webpack:  undefined ()
    react-table: 7.8.0 => 7.8.0 
    react-table-sticky: 1.1.3 => 1.1.3 
    react-use: 17.4.0 => 17.4.0 
    react-virtualized: 9.22.3 => 9.22.3 
    regenerator-runtime:  0.13.4 
    rehype-raw: 6.1.1 => 6.1.1 
    remark-gfm: 3.0.1 => 3.0.1 
    rimraf: 3.0.2 => 3.0.2 (2.7.1)
    rooks: 7.4.3 => 7.4.3 
    sass-loader:  undefined ()
    scheduler:  undefined ()
    schema-utils:  undefined ()
    semver:  undefined ()
    send:  undefined ()
    setimmediate:  undefined ()
    shell-quote:  undefined ()
    source-map:  undefined ()
    stacktrace-parser:  undefined ()
    start-server-and-test: 1.15.2 => 1.15.2 
    stream-browserify:  undefined ()
    stream-http:  undefined ()
    string-hash:  undefined ()
    string_decoder:  undefined ()
    strip-ansi:  undefined ()
    swagger-typescript-api: 12.0.2 => 12.0.2 
    swc-plugin-coverage-instrument: 0.0.14 => 0.0.14 
    sync-fetch: 0.4.2 => 0.4.2 
    tar:  undefined ()
    terser:  undefined ()
    text-table:  undefined ()
    timers-browserify:  undefined ()
    transport:  0.0.1 
    ts-expect: 1.3.0 => 1.3.0 
    ts-to-zod: 1.13.1 => 1.13.1 
    tty-browserify:  undefined ()
    type-fest: 3.5.1 => 3.5.1 (0.20.2, 0.21.3, 0.8.1, 2.19.0)
    typescript: 4.9.4 => 4.9.4 (4.8.4, 4.9.3)
    ua-parser-js:  undefined ()
    undici:  undefined ()
    unistore:  undefined ()
    use-mui: 1.0.6 => 1.0.6 
    util:  undefined ()
    vm-browserify:  undefined ()
    watchpack:  undefined ()
    web-vitals:  undefined ()
    webpack:  undefined ()
    webpack-sources:  undefined ()
    ws:  undefined ()
    zod: 3.20.2 => 3.20.2 (3.19.1)
  npmGlobalPackages:
    corepack: 0.10.0
    npm: 8.5.0
    yarn: 1.22.18

Describe the bug

For simulating an image API in a cypress test I want to use https://picsum.photos/200/200 which is used in an cy.intercept to simulate the backend response.

Something like this:

cy.intercept('GET', '/some/api/*', async (req) => {
	const response = await fetch('https://picsum.photos/200/200')
	const blob = await response.blob()
	req.reply({ body: blob })
}).as('image-request')

Without cy2 this works fine, but in cy2 this throws the following error:

TypeError: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:371:5)
    at new ClientRequest (node:_http_client:158:11)
    at Object.request (node:http:96:10)
    at runProxyChain (/builds/team/group/project/node_modules/cy2/src/proxy-chain.ts:13:6)
    at Server.<anonymous> (/builds/team/group/project/node_modules/cy2/src/proxy.ts:93:7)
    at Server.emit (node:events:526:28)
    at onParserExecuteCommon (node:_http_server:727:14)
    at onParserExecute (node:_http_server:641:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
We encountered an unexpected error talking to our servers.
We will retry 3 more times in 30 seconds...
The server's response was:
RequestError: Error: A connection to the upstream proxy could not be established: connect ECONNREFUSED 127.0.0.1:45621
error Command failed with exit code 1.

(Complete logs below)

Expected behavior

Should not throw an error and reply with the fetched data.

Command and Setup

command:
yarn cy2 run --parallel --record --key project --ci-build-id project-${CI_PIPELINE_ID} --browser chrome

provider:
self hosted, used CYPRESS_API_URL and HTTP_PROXY env variables

Full log and debug output

full log exceeds the maximum comment length of 65536 characters. So this is only the last part before the error.

  cypress:network:cors Parsed URL { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } +410ms
  cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } for: http://localhost:3000 +410ms
  cypress:server:remote-states getting primary remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } +1ms
  cypress:server:browsers:cri-client registering CDP on event { eventName: 'Fetch.requestPaused' } +59ms
  cypress:server:browsers:chrome listen for frame tree changes +57ms
  cypress:server:browsers:cri-client registering CDP on event { eventName: 'Page.frameAttached' } +0ms
  cypress:server:browsers:cri-client registering CDP on event { eventName: 'Page.frameDetached' } +0ms
  cypress:server:browsers browser opened +432ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-1.0' } +7ms
  cypress:server:routes proxying static assets /__/assets/polyfills-73db9733.js, params[0] polyfills-73db9733.js +0ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-2.0' } +11ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-3.0' } +1ms
  cypress:server:routes proxying static assets /__/assets/index-cfc4ceaa.js, params[0] index-cfc4ceaa.js +12ms
  cypress:server:routes proxying static assets /__/assets/index-b5d22de5.css, params[0] index-b5d22de5.css +1ms
  cypress:server:server-base Got CONNECT request from localhost:3000 +37s
  cypress:https-proxy Writing browserSocket connection headers { url: 'localhost:3000', headLength: 0, headers: { host: 'localhost:3000', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' } } +1s
  cypress:https-proxy Got first head bytes { url: 'localhost:3000', head: 'GET /__socket/?EIO=4&transport=websocket HTTP/1.1\r\nHost: localho' } +1ms
  cypress:https-proxy Making intercepted connection to 45551 +1ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-4.0' } +348ms
  cypress:network:connect successfully connected { opts: { port: 45551, host: 'localhost', getDelayMsForRetry: [Function: h] }, iteration: 0 } +558ms
  cypress:https-proxy received upstreamSocket callback for request { port: 45551, hostname: 'localhost', err: undefined } +1ms
  cypress:server:util:socket_allowed allowing socket { localPort: 59280 } +0ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-5.0' } +2ms
  cypress:server:server-base Got UPGRADE request from /__socket/?EIO=4&transport=websocket +5ms
  cypress:server:util:socket_allowed is incoming request allowed? { isAllowed: true, reqUrl: '/__socket/?EIO=4&transport=websocket', remotePort: 59280, remoteAddress: '127.0.0.1' } +2ms
  cypress:server:socket-base socket connected +0ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-6.0' } +34ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-7.0' } +1ms
  cypress:server:routes proxying static assets /__/assets/Specs-8ad23024.js, params[0] Specs-8ad23024.js +383ms
  cypress:server:routes proxying static assets /__/assets/Runner-b821bcc9.js, params[0] Runner-b821bcc9.js +1ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-8.0' } +2ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-9.0' } +2ms
  cypress:server:routes proxying static assets /__/assets/CreateSpecModal.vue_vue_type_script_setup_true_lang-707aece2.js, params[0] CreateSpecModal.vue_vue_type_script_setup_true_lang-707aece2.js +3ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-10.0' } +2ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-11.0' } +2ms
  cypress:server:routes proxying static assets /__/assets/SpecPatterns.vue_vue_type_script_setup_true_lang-da08bfb5.js, params[0] SpecPatterns.vue_vue_type_script_setup_true_lang-da08bfb5.js +7ms
  cypress:server:routes proxying static assets /__/assets/CreateSpecModal-3ad38b70.css, params[0] CreateSpecModal-3ad38b70.css +6ms
  cypress:server:routes proxying static assets /__/assets/Switch.vue_vue_type_script_setup_true_lang-c328528d.js, params[0] Switch.vue_vue_type_script_setup_true_lang-c328528d.js +1ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-12.0' } +27ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-13.0' } +1ms
  cypress:server:routes proxying static assets /__/assets/refresh_x16-8f9fa601.js, params[0] refresh_x16-8f9fa601.js +19ms
  cypress:server:routes proxying static assets /__/assets/Runner-598a65fe.css, params[0] Runner-598a65fe.css +1ms
  cypress:server:server-base Got CONNECT request from localhost:3000 +146ms
  cypress:https-proxy Writing browserSocket connection headers { url: 'localhost:3000', headLength: 0, headers: { host: 'localhost:3000', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' } } +148ms
  cypress:https-proxy Got first head bytes { url: 'localhost:3000', head: 'GET /__socket-graphql HTTP/1.1\r\nHost: localhost:3000\r\nConnection' } +1ms
  cypress:https-proxy Making intercepted connection to 45551 +0ms
  cypress:network:connect successfully connected { opts: { port: 45551, host: 'localhost', getDelayMsForRetry: [Function: h] }, iteration: 0 } +150ms
  cypress:https-proxy received upstreamSocket callback for request { port: 45551, hostname: 'localhost', err: undefined } +1ms
  cypress:server:util:socket_allowed allowing socket { localPort: 59290 } +148ms
  cypress:server:server-base Got UPGRADE request from /__socket-graphql +3ms
  cypress:server:util:socket_allowed is incoming request allowed? { isAllowed: true, reqUrl: '/__socket-graphql', remotePort: 59290, remoteAddress: '127.0.0.1' } +1ms
  cypress:server:project project has config { configFile: '/builds/team/group/project-name/cypress.config.ts', env: { codeCoverageTasksRegistered: true, environment: 'development', tenant: 'tenant', keycloak_domain: 'site-dev.intra.company.net', keycloak_secret: '[MASKED]', keycloak_auth_url: 'https://site-dev.intra.company.net/auth', keycloak_realm: 'tenant', keycloak_client_id: 'clientid', admin_user_password: '[MASKED]', customer_user_password: '[MASKED]', account_manager_user_password: '[MASKED]', contract_management_user_password: '[MASKED]', contract_partner_user_password: '[MASKED]', facility_manager_user_password: '[MASKED]', rc_user_password: '[MASKED]', gqlUrl: 'http://localhost:3000/baseurl/api/graphql', documentApi: 'http://localhost:3000/baseurl/api/document', excelApi: 'http://localhost:3000/baseurl/api/excel-export', codeCoverage: { url: '/api/__coverage__' }, type: 'actual', screenshotsFolder: 'cypress/snapshots/actual', SNAPSHOT_BASE_DIRECTORY: 'cypress/snapshots/base', SNAPSHOT_DIFF_DIRECTORY: 'cypress/snapshots/diff', trashAssetsBeforeRuns: true, failSilently: false, API_URL: 'https://cypress.intra.company.net/', CACHE_FOLDER: '.cypress/cache' }, testingType: 'e2e', chromeWebSecurity: false, defaultCommandTimeout: 20000, projectId: 'project', reporter: 'cypress-multi-reporters', reporterOptions: { configFile: 'cypress/reporter-config.json' }, baseUrl: 'http://localhost:3000/baseurl', experimentalRunAllSpecs: true, specPattern: 'cypress/e2e/**/test.cy.ts', retries: { runMode: 2, openMode: 0 }, setupNodeEvents: '[Function setupNodeEvents]', projectRoot: '/builds/team/group/project-name', projectName: 'project-name', repoRoot: '/builds/team/group/project-name', rawJson: { chromeWebSecurity: false, defaultCommandTimeout: 20000, projectId: 'project', env: { codeCoverage: [Object], type: 'actual', screenshotsFolder: 'cypress/snapshots/actual', SNAPSHOT_BASE_DIRECTORY: 'cypress/snapshots/base', SNAPSHOT_DIFF_DIRECTORY: 'cypress/snapshots/diff', trashAssetsBeforeRuns: true, failSilently: false }, reporter: 'cypress-multi-reporters', reporterOptions: { configFile: 'cypress/reporter-config.json' }, e2e: { baseUrl: 'http://localhost:3000/baseurl', experimentalRunAllSpecs: true, specPattern: 'cypress/e2e/**/test.cy.ts', retries: [Object], setupNodeEvents: '[Function setupNodeEvents]' }, baseUrl: 'http://localhost:3000/baseurl', experimentalRunAllSpecs: true, specPattern: 'cypress/e2e/**/test.cy.ts', retries: { runMode: 2, openMode: 0 }, setupNodeEvents: '[Function setupNodeEvents]', envFile: {}, projectRoot: '/builds/team/group/project-name', projectName: 'project-name', repoRoot: '/builds/team/group/project-name' }, morgan: false, isTextTerminal: true, socketId: 'gjccalb09r', report: true, animationDistanceThreshold: 5, arch: 'x64', blockHosts: null, clientCertificates: [], downloadsFolder: '/builds/team/group/project-name/cypress/downloads', execTimeout: 60000, experimentalFetchPolyfill: false, experimentalInteractiveRunEvents: false, experimentalModifyObstructiveThirdPartyCode: false, experimentalOriginDependencies: false, experimentalSourceRewriting: false, experimentalSingleTabRunMode: false, experimentalStudio: false, experimentalWebKitSupport: false, fileServerFolder: '/builds/team/group/project-name', fixturesFolder: '/builds/team/group/project-name/cypress/fixtures', excludeSpecPattern: '*.hot-update.js', includeShadowDom: false, keystrokeDelay: 0, modifyObstructiveCode: true, nodeVersion: undefined, numTestsKeptInMemory: 0, platform: 'linux', pageLoadTimeout: 60000, port: 45551, redirectionLimit: 20, requestTimeout: 5000, resolvedNodePath: '/usr/local/bin/node', resolvedNodeVersion: '16.14.2', responseTimeout: 30000, screenshotOnRunFailure: true, screenshotsFolder: '/builds/team/group/project-name/cypress/screenshots', slowTestThreshold: 10000, scrollBehavior: 'top', supportFile: '/builds/team/group/project-name/cypress/support/e2e.ts', supportFolder: '/builds/team/group/project-name/cypress/support', taskTimeout: 60000, testIsolation: true, trashAssetsBeforeRuns: true, userAgent: null, video: true, videoCompression: 32, videosFolder: '/builds/team/group/project-name/cypress/videos', videoUploadOnPasses: true, viewportHeight: 660, viewportWidth: 1000, waitForAnimations: true, watchForFileChanges: false, additionalIgnorePattern: [], autoOpen: false, browsers: [ { name: 'chrome', family: 'chromium', channel: 'stable', displayName: 'Chrome', version: '100.0.4896.88', path: 'google-chrome', minSupportedVersion: 64, majorVersion: '100' }, { name: 'firefox', family: 'firefox', channel: 'stable', displayName: 'Firefox', version: '99.0.1', path: 'firefox', minSupportedVersion: 86, majorVersion: '99', warning: 'Your project has set the configuration option: `chromeWebSecurity` to `false`.\n' + '\n' + 'This option will not have an effect in Firefox. Tests that rely on web security being disabled will not run as expected.' }, { name: 'edge', family: 'chromium', channel: 'stable', displayName: 'Edge', version: '102.0.1224.0', path: 'edge', minSupportedVersion: 79, majorVersion: '102' }, { name: 'electron', channel: 'stable', family: 'chromium', displayName: 'Electron', version: '106.0.5249.51', path: '', majorVersion: 106 } ], clientRoute: '/__/', cypressBinaryRoot: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app', devServerPublicPathRoute: '/__cypress/src', hosts: null, isInteractive: true, namespace: '__cypress', reporterRoute: '/__cypress/reporter', socketIoCookie: '__socket', socketIoRoute: '/__socket', version: '12.3.0', cypressEnv: 'production', resolved: { animationDistanceThreshold: { value: 5, from: 'default' }, arch: { value: 'x64', from: 'default' }, baseUrl: { value: 'http://localhost:3000/baseurl', from: 'config' }, blockHosts: { value: null, from: 'default' }, chromeWebSecurity: { value: false, from: 'config' }, clientCertificates: { value: [], from: 'default' }, defaultCommandTimeout: { value: 20000, from: 'config' }, downloadsFolder: { value: 'cypress/downloads', from: 'default' }, env: { codeCoverage: [Object], type: [Object], screenshotsFolder: [Object], SNAPSHOT_BASE_DIRECTORY: [Object], SNAPSHOT_DIFF_DIRECTORY: [Object], trashAssetsBeforeRuns: [Object], failSilently: [Object], API_URL: [Object], CACHE_FOLDER: [Object], codeCoverageTasksRegistered: [Object], environment: [Object], tenant: [Object], keycloak_domain: [Object], keycloak_secret: [Object], keycloak_auth_url: [Object], keycloak_realm: [Object], keycloak_client_id: [Object], admin_user_password: [Object], customer_user_password: [Object], account_manager_user_password: [Object], contract_management_user_password: [Object], contract_partner_user_password: [Object], facility_manager_user_password: [Object], rc_user_password: [Object], gqlUrl: [Object], documentApi: [Object], excelApi: [Object] }, execTimeout: { value: 60000, from: 'default' }, experimentalFetchPolyfill: { value: false, from: 'default' }, experimentalInteractiveRunEvents: { value: false, from: 'default' }, experimentalRunAllSpecs: { value: true, from: 'config' }, experimentalModifyObstructiveThirdPartyCode: { value: false, from: 'default' }, experimentalOriginDependencies: { value: false, from: 'default' }, experimentalSourceRewriting: { value: false, from: 'default' }, experimentalSingleTabRunMode: { value: false, from: 'default' }, experimentalStudio: { value: false, from: 'default' }, experimentalWebKitSupport: { value: false, from: 'default' }, fileServerFolder: { value: '', from: 'default' }, fixturesFolder: { value: 'cypress/fixtures', from: 'default' }, excludeSpecPattern: { value: '*.hot-update.js', from: 'default' }, includeShadowDom: { value: false, from: 'default' }, keystrokeDelay: { value: 0, from: 'default' }, modifyObstructiveCode: { value: true, from: 'default' }, nodeVersion: { value: undefined, from: 'default' }, numTestsKeptInMemory: { value: 0, from: 'config' }, platform: { value: 'linux', from: 'default' }, pageLoadTimeout: { value: 60000, from: 'default' }, port: { value: null, from: 'default' }, projectId: { value: 'project', from: 'config' }, redirectionLimit: { value: 20, from: 'default' }, reporter: { value: 'cypress-multi-reporters', from: 'config' }, reporterOptions: { value: [Object], from: 'config' }, requestTimeout: { value: 5000, from: 'default' }, resolvedNodePath: { value: null, from: 'default' }, resolvedNodeVersion: { value: null, from: 'default' }, responseTimeout: { value: 30000, from: 'default' }, retries: { value: [Object], from: 'config' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, slowTestThreshold: { value: 10000, from: 'default' }, scrollBehavior: { value: 'top', from: 'default' }, supportFile: { value: 'cypress/support/e2e.{js,jsx,ts,tsx}', from: 'default' }, supportFolder: { value: false, from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testIsolation: { value: true, from: 'default' }, trashAssetsBeforeRuns: { value: true, from: 'default' }, userAgent: { value: null, from: 'default' }, video: { value: true, from: 'default' }, videoCompression: { value: 32, from: 'default' }, videosFolder: { value: 'cypress/videos', from: 'default' }, videoUploadOnPasses: { value: true, from: 'default' }, viewportHeight: { value: 660, from: 'default' }, viewportWidth: { value: 1000, from: 'default' }, waitForAnimations: { value: true, from: 'default' }, watchForFileChanges: { value: false, from: 'config' }, specPattern: { value: 'cypress/e2e/**/test.cy.ts', from: 'config' }, browsers: { value: [Array], from: 'runtime' }, hosts: { value: null, from: 'default' }, isInteractive: { value: true, from: 'default' }, configFile: { value: '/builds/team/group/project-name/cypress.config.ts', from: 'plugin' }, testingType: { value: 'e2e', from: 'plugin' } }, remote: {}, browser: null, specs: [], proxyUrl: 'http://localhost:45551', browserUrl: 'http://localhost:3000/__/', reporterUrl: 'http://localhost:3000/__cypress/reporter', proxyServer: 'http://localhost:45551', state: {} } +563ms
  cypress:network:cors Parsed URL { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } +563ms
  cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } for: http://localhost:3000 +562ms
  cypress:server:remote-states getting primary remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } +0ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-14.0' } +816ms
  cypress:server:routes proxying static assets /__/assets/chrome-98045c79.svg, params[0] chrome-98045c79.svg +815ms
  cypress:server:browsers:chrome update frame tree for Page.frameAttached +43ms
  cypress:server:browsers:chrome update frame tree for Page.frameAttached +28ms
  cypress:server:browsers:chrome need frame tree +2ms
  cypress:server:browsers:chrome awaiting frame tree +0ms
  cypress:server:browsers:chrome frame tree updated +14ms
  cypress:server:project socket:connected +814ms
  cypress:server:run got socket connection { id: 'gjccalb09r' } +1s
  cypress:server:run socket connected { socketId: 'gjccalb09r' } +0ms
  cypress:server:socket-e2e watch:test:file { fileExtension: '.ts', baseName: 'test.cy.ts', fileName: 'test', specFileExtension: '.cy.ts', relativeToCommonRoot: 'test.cy.ts', specType: 'integration', name: 'test.cy.ts', relative: 'cypress/e2e/test.cy.ts', absolute: '/builds/team/group/project-name/cypress/e2e/test.cy.ts' } +0ms
  cypress:server:socket-e2e watching spec with config { fileExtension: '.ts', baseName: 'test.cy.ts', fileName: 'test', specFileExtension: '.cy.ts', relativeToCommonRoot: 'test.cy.ts', specType: 'integration', name: 'test.cy.ts', relative: 'cypress/e2e/test.cy.ts', absolute: '/builds/team/group/project-name/cypress/e2e/test.cy.ts' } +0ms
  cypress:server:socket-e2e will watch test file path 'cypress/e2e/test.cy.ts' +0ms
  cypress:server:preprocessor getting file cypress/e2e/test.cy.ts +0ms
  cypress:server:preprocessor getFile /builds/team/group/project-name/cypress/e2e/test.cy.ts +0ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts +2s
  cypress:lifecycle:EventRegistrar execute plugin event 'file:preprocessor' Node 'v16.16.0' with args: EventEmitter { _events: [Object: null prototype] { rerun: [Function (anonymous)] }, _eventsCount: 1, _maxListeners: undefined, filePath: '/builds/team/group/project-name/cypress/e2e/test.cy.ts', shouldWatch: false, outputPath: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts', [Symbol(kCapture)]: false } undefined undefined +2s
  cypress:lifecycle:ProjectConfigManager call event file:preprocessor for invocation id inv3 +2s
  cypress:lifecycle:EventRegistrar plugin event registered? { eventName: 'before:spec', isRegistered: false } +1ms
  cypress:lifecycle:child:RunPlugins:802 execute plugin event: file:preprocessor ({ invocationId: 'inv3', eventId: 7 }) +2s
  cypress:server:browsers:chrome frame tree updated +12ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-15.0' } +0ms
  cypress:server:iframes handling iframe for project spec { spec: { fileExtension: '.ts', baseName: 'test.cy.ts', fileName: 'test', specFileExtension: '.cy.ts', relativeToCommonRoot: 'test.cy.ts', specType: 'integration', name: 'cypress/e2e/test.cy.ts', relative: 'cypress/e2e/test.cy.ts', absolute: '/builds/team/group/project-name/cypress/e2e/test.cy.ts' }, extraOptions: { specType: 'integration' } } +0ms
  cypress:server:controllers handle iframe { test: 'cypress/e2e/test.cy.ts', specFilter: undefined } +0ms
  cypress:server:controllers get specs { spec: 'cypress/e2e/test.cy.ts', extraOptions: { specType: 'integration' } } +0ms
  cypress:server:controllers normalizing spec { spec: 'cypress/e2e/test.cy.ts' } +0ms
  cypress:server:controllers converted cypress/e2e/test.cy.ts to /builds/team/group/project-name/cypress/e2e/test.cy.ts +0ms
  cypress:server:controllers test url for file { file: 'cypress/e2e/test.cy.ts', url: '/__cypress/tests?p=cypress/e2e/test.cy.ts' } +0ms
  cypress:server:controllers test url for file { file: 'cypress/support/e2e.ts', url: '/__cypress/tests?p=cypress/support/e2e.ts' } +1ms
  cypress:server:controllers all files to send [ 'cypress/support/e2e.ts', 'cypress/e2e/test.cy.ts' ] +0ms
  cypress:server:remote-states getting primary remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } +820ms
  cypress:server:controllers iframe cypress/e2e/test.cy.ts options { title: 'cypress/e2e/test.cy.ts', domain: 'localhost', scripts: '[{"absolute":"/builds/team/group/project-name/cypress/support/e2e.ts","relative":"cypress/support/e2e.ts","relativeUrl":"/__cypress/tests?p=cypress/support/e2e.ts"},{"absolute":"/builds/team/group/project-name/cypress/e2e/test.cy.ts","relative":"cypress/e2e/test.cy.ts","relativeUrl":"/__cypress/tests?p=cypress/e2e/test.cy.ts"}]' } +0ms
  cypress:webpack user options: { typescript: '/builds/team/group/project-name/node_modules/typescript/lib/typescript.js', webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [Array] }, resolve: { extensions: [Array], alias: [Object], plugins: [Array] } }, __typescriptSupportAdded: true } +0ms
  cypress:webpack get /builds/team/group/project-name/cypress/e2e/test.cy.ts +0ms
  cypress:webpack load default options +0ms
  cypress:webpack setting devtool to inline-source-map +1ms
  cypress:webpack typescript found, overriding typescript.createProgram() +0ms
  cypress:webpack Limiting number of chunks to 1 +0ms
  cypress:webpack webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [ [Object], [Object], [Object], [Object] ] }, resolve: { extensions: [ '.js',     '.json', '.jsx',    '.mjs', '.coffee', '.ts', '.tsx' ], alias: { child_process: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', cluster: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', console: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dgram: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dns: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', fs: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', http2: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', inspector: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', module: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', net: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', perf_hooks: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', readline: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', repl: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', tls: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js' }, plugins: [ [TsconfigPathsPlugin] ] }, entry: [ '/builds/team/group/project-name/cypress/e2e/test.cy.ts' ], output: { publicPath: '', path: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e', filename: 'test.cy.ts.js' }, devtool: 'inline-source-map', plugins: [ LimitChunkCountPlugin { options: [Object] } ] } +4ms
  cypress:webpack watchOptions: {} +2ms
  cypress:webpack typescript: /builds/team/group/project-name/node_modules/typescript/lib/typescript.js +0ms
  cypress:webpack input: /builds/team/group/project-name/cypress/e2e/test.cy.ts +0ms
  cypress:webpack output: /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts.js +0ms
  cypress:server:browsers:chrome add X-Cypress-Is-XHR-Or-Fetch header to: http://localhost:3000/__cypress/tests?p=cypress/support/e2e.ts +38ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-16.0', headers: [ { name: 'Accept', value: '*/*' }, { name: 'Referer', value: 'http://localhost:3000/__cypress/iframes/cypress%2Fe2e%2Ftest.cy.ts' }, { name: 'User-Agent', value: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' }, { name: 'sec-ch-ua', value: '' }, { name: 'sec-ch-ua-mobile', value: '?0' }, { name: 'sec-ch-ua-platform', value: '' }, { name: 'X-Cypress-Is-XHR-Or-Fetch', value: 'xhr' } ] } +0ms
  cypress:server:controllers:spec request for { spec: 'cypress/support/e2e.ts' } +0ms
  cypress:server:preprocessor getting file cypress/support/e2e.ts +44ms
  cypress:server:preprocessor getFile /builds/team/group/project-name/cypress/support/e2e.ts +0ms
  cypress:server:appdata path: /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts +44ms
  cypress:lifecycle:EventRegistrar execute plugin event 'file:preprocessor' Node 'v16.16.0' with args: EventEmitter { _events: [Object: null prototype] { rerun: [Function (anonymous)] }, _eventsCount: 1, _maxListeners: undefined, filePath: '/builds/team/group/project-name/cypress/support/e2e.ts', shouldWatch: false, outputPath: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts', [Symbol(kCapture)]: false } undefined undefined +43ms
  cypress:lifecycle:ProjectConfigManager call event file:preprocessor for invocation id inv4 +43ms
  cypress:server:browsers:chrome add X-Cypress-Is-XHR-Or-Fetch header to: http://localhost:3000/__cypress/tests?p=cypress/e2e/test.cy.ts +5ms
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-17.0', headers: [ { name: 'Accept', value: '*/*' }, { name: 'Referer', value: 'http://localhost:3000/__cypress/iframes/cypress%2Fe2e%2Ftest.cy.ts' }, { name: 'User-Agent', value: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' }, { name: 'sec-ch-ua', value: '' }, { name: 'sec-ch-ua-mobile', value: '?0' }, { name: 'sec-ch-ua-platform', value: '' }, { name: 'X-Cypress-Is-XHR-Or-Fetch', value: 'xhr' } ] } +0ms
  cypress:server:controllers:spec request for { spec: 'cypress/e2e/test.cy.ts' } +3ms
  cypress:server:preprocessor getting file cypress/e2e/test.cy.ts +3ms
  cypress:server:preprocessor getFile /builds/team/group/project-name/cypress/e2e/test.cy.ts +1ms
  cypress:server:preprocessor headless and already processed +0ms
  cypress:lifecycle:child:RunPlugins:802 execute plugin event: file:preprocessor ({ invocationId: 'inv4', eventId: 7 }) +162ms
  cypress:webpack user options: { typescript: '/builds/team/group/project-name/node_modules/typescript/lib/typescript.js', webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [Array] }, resolve: { extensions: [Array], alias: [Object], plugins: [Array] }, entry: [ '/builds/team/group/project-name/cypress/e2e/test.cy.ts' ], output: { publicPath: '', path: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e', filename: 'test.cy.ts.js' }, devtool: 'inline-source-map', plugins: [ [LimitChunkCountPlugin] ] }, __typescriptSupportAdded: true } +131ms
  cypress:webpack get /builds/team/group/project-name/cypress/support/e2e.ts +1ms
  cypress:webpack load default options +0ms
  cypress:webpack setting devtool to inline-source-map +0ms
  cypress:webpack typescript.createProgram() already overridden +138ms
  cypress:webpack Limiting number of chunks to 1 +0ms
  cypress:webpack webpackOptions: { mode: 'development', node: { global: true, __filename: true, __dirname: true }, module: { rules: [ [Object], [Object], [Object], [Object] ] }, resolve: { extensions: [ '.js',     '.json', '.jsx',    '.mjs', '.coffee', '.ts', '.tsx' ], alias: { child_process: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', cluster: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', console: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dgram: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', dns: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', fs: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', http2: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', inspector: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', module: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', net: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', perf_hooks: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', readline: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', repl: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js', tls: '/builds/team/group/project-name/.cypress/cache/12.3.0/Cypress/resources/app/node_modules/@packages/server/node_modules/@cypress/webpack-batteries-included-preprocessor/empty.js' }, plugins: [ [TsconfigPathsPlugin] ] }, entry: [ '/builds/team/group/project-name/cypress/support/e2e.ts' ], output: { publicPath: '', path: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support', filename: 'e2e.ts.js' }, devtool: 'inline-source-map', plugins: [ LimitChunkCountPlugin { options: [Object] }, LimitChunkCountPlugin { options: [Object] } ] } +0ms
  cypress:webpack watchOptions: {} +0ms
  cypress:webpack typescript: /builds/team/group/project-name/node_modules/typescript/lib/typescript.js +1ms
  cypress:webpack input: /builds/team/group/project-name/cypress/support/e2e.ts +1ms
  cypress:webpack output: /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts.js +0ms
  cypress:server:util:process_profiler current & mean memory and CPU usage by process group:
  cypress:server:util:process_profiler β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  cypress:server:util:process_profiler β”‚ (index) β”‚       group       β”‚ processCount β”‚                         pids                          β”‚ cpuPercent β”‚ meanCpuPercent β”‚ memRssMb β”‚ meanMemRssMb β”‚ maxMemRssMb β”‚
  cypress:server:util:process_profiler β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  cypress:server:util:process_profiler β”‚    0    β”‚     'plugin'      β”‚      1       β”‚                         '802'                         β”‚    8.74    β”‚      4.37      β”‚  429.47  β”‚    271.88    β”‚   429.47    β”‚
  cypress:server:util:process_profiler β”‚    1    β”‚     'Chrome'      β”‚      8       β”‚ '1238, 1242, 1243, 1249, 1262, 1250 ... 2 more items' β”‚     0      β”‚       0        β”‚  339.12  β”‚    339.12    β”‚   339.12    β”‚
  cypress:server:util:process_profiler β”‚    2    β”‚     'cypress'     β”‚      1       β”‚                         '524'                         β”‚    1.29    β”‚      2.52      β”‚  316.75  β”‚    317.78    β”‚   364.53    β”‚
  cypress:server:util:process_profiler β”‚    3    β”‚ 'electron-shared' β”‚      4       β”‚                 '564, 752, 565, 822'                  β”‚     0      β”‚       0        β”‚  116.61  β”‚    97.86     β”‚   116.61    β”‚
  cypress:server:util:process_profiler β”‚    4    β”‚     'ffmpeg'      β”‚      1       β”‚                        '1316'                         β”‚     0      β”‚       0        β”‚   4.66   β”‚     4.66     β”‚    4.66     β”‚
  cypress:server:util:process_profiler β”‚    5    β”‚      'other'      β”‚      2       β”‚                     '1332, 1333'                      β”‚     0      β”‚       0        β”‚   2.15   β”‚     2.15     β”‚    2.15     β”‚
  cypress:server:util:process_profiler β”‚    6    β”‚      'TOTAL'      β”‚      17      β”‚                          '-'                          β”‚   10.03    β”‚      5.43      β”‚ 1208.76  β”‚    713.64    β”‚   1208.76   β”‚
  cypress:server:util:process_profiler β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ +10s
  cypress:webpack finished bundling /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts.js +8s
Hash: 5e91430a824716b9ed45
Version: webpack 4.46.0
Time: 7845ms
Built at: 01/10/2023 11:18:05 AM
              Asset    Size  Chunks             Chunk Names
test.cy.ts.js  16 MiB    main  [emitted]  main
Entrypoint main = test.cy.ts.js
[0] multi ./cypress/e2e/test.cy.ts 28 bytes {main} [built]
[./cypress/e2e/test.cy.ts] 5.51 KiB {main} [built]
[./cypress/support/graphql/common/customer-company-name.ts] 833 bytes {main} [built]
[./cypress/support/graphql/dashboard/admin/2-contracts.ts] 7.37 KiB {main} [built]
[./cypress/support/graphql/details/bankData/bank-data.ts] 1.89 KiB {main} [built]
[./cypress/support/graphql/details/detailsInfo/details-info-data.ts] 1.58 KiB {main} [built]
[./cypress/support/graphql/details/documents/documents.ts] 1.54 KiB {main} [built]
[./cypress/support/graphql/details/meter-readings/100-meter-readings.ts] 2.05 KiB {main} [built]
[./cypress/support/graphql/details/poc-title/gas.ts] 442 bytes {main} [built]
[./cypress/support/graphql/details/point-of-consumption/point-of-consumption-admin.ts] 11.3 KiB {main} [built]
[./cypress/support/graphql/details/point-of-consumption/point-of-consumption-contract-partner.ts] 8.94 KiB {main} [built]
[./cypress/support/graphql/details/point-of-consumption/point-of-consumption-customer.ts] 8.86 KiB {main} [built]
[./cypress/support/graphql/news-dialog/1-news.ts] 4.21 KiB {main} [built]
[./cypress/support/graphql/news-dialog/3-news.ts] 4.59 KiB {main} [built]
[./cypress/support/graphql/test-utils.ts] 12.3 KiB {main} [built]
    + 641 hidden modules
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv3' with value /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts.js +8s
  cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/e2e/test.cy.ts.js' } +8s
  cypress:webpack finished bundling /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts.js +2s
Hash: 7a19d8f01afa46ed3791
Version: webpack 4.46.0
Time: 9609ms
Built at: 01/10/2023 11:18:06 AM
    Asset      Size  Chunks             Chunk Names
e2e.ts.js  18.8 MiB    main  [emitted]  main
Entrypoint main = e2e.ts.js
[0] multi ./cypress/support/e2e.ts 28 bytes {main} [built]
[./cypress/support/browser-settings.ts] 74 bytes {main} [built]
[./cypress/support/commands.ts] 1.39 KiB {main} [built]
[./cypress/support/cypress-visual-regression/beforeCompareSnapshotCommand.ts] 5.2 KiB {main} [built]
[./cypress/support/e2e.ts] 1.1 KiB {main} [built]
[./cypress/support/graphql/intercepts.ts] 6.11 KiB {main} [built]
[./cypress/support/graphql/test-utils.ts] 12.3 KiB {main} [built]
[./cypress/support/keycloak/index.ts] 43 bytes {main} [built]
[./cypress/support/rest/download-service/documents.ts] 279 bytes {main} [built]
[./cypress/support/rest/intercepts.ts] 39 bytes {main} [built]
[./cypress/support/scroll-virtualized.ts] 1.51 KiB {main} [built]
[./node_modules/@cypress-audit/lighthouse/commands.js] 130 bytes {main} [built]
[./node_modules/@cypress-audit/pa11y/commands.js] 115 bytes {main} [built]
[./node_modules/@cypress/code-coverage/support.js] 7.26 KiB {main} [built]
[./node_modules/cypress-mochawesome-reporter/register.js] 1.51 KiB {main} [built]
    + 976 hidden modules
  cypress:lifecycle:ProjectConfigManager promise resolved for id 'inv4' with value /root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts.js +2s
  cypress:server:controllers:spec sending spec { filePath: '/root/.config/Cypress/cy/production/projects/project-name-63262f01d3e8f93b98cad42a750d9fad/bundles/cypress/support/e2e.ts.js' } +2s
  cypress:server:video capture codec data: { format: 'image2pipe', audio: '', video: 'mjpeg (Baseline)', duration: 'N/A', video_details: [ 'mjpeg (Baseline)', 'yuvj420p(pc', 'bt470bg/unknown/unknown)', '1920x1080 [SAR 1:1 DAR 16:9]', '25 fps', '25 tbr', '25 tbn', '25 tbc' ] } +16s
  cypress:server:browsers:chrome add X-Cypress-Is-XHR-Or-Fetch header to: https://picsum.photos/seed/er/500/200 +17s
  cypress:server:browsers:chrome continueRequest: { requestId: 'interception-job-18.0', headers: [ { name: 'Accept', value: '*/*' }, { name: 'Referer', value: 'http://localhost:3000/' }, { name: 'User-Agent', value: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' }, { name: 'sec-ch-ua', value: '' }, { name: 'sec-ch-ua-mobile', value: '?0' }, { name: 'sec-ch-ua-platform', value: '' }, { name: 'X-Cypress-Is-XHR-Or-Fetch', value: 'xhr' } ] } +0ms
  cypress:server:server-base Got CONNECT request from picsum.photos:443 +17s
  cypress:https-proxy Writing browserSocket connection headers { url: 'picsum.photos:443', headLength: 0, headers: { host: 'picsum.photos:443', 'proxy-connection': 'keep-alive', 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4896.88 Safari/537.36' } } +17s
  cypress:https-proxy Got first head bytes { url: 'picsum.photos:443', head: '\x16\x03\x01\x02\x00\x01\x00\x01οΏ½\x03\x03>οΏ½οΏ½οΏ½οΏ½NοΏ½*\x04=οΏ½\x06οΏ½οΏ½2\x1EοΏ½|οΏ½\x1F<οΏ½jοΏ½\x05οΏ½οΏ½4οΏ½οΏ½\nK οΏ½UοΏ½οΏ½nοΏ½οΏ½\x1DοΏ½οΏ½DVοΏ½\x02οΏ½οΏ½\x0BοΏ½οΏ½^' } +1ms
  cypress:https-proxy Making intercepted connection to 42898 +137ms
  cypress:network:connect successfully connected { opts: { port: 42898, host: 'localhost', getDelayMsForRetry: [Function: h] }, iteration: 0 } +18s
  cypress:https-proxy received upstreamSocket callback for request { port: 42898, hostname: 'localhost', err: undefined } +1ms
  cypress:server:util:socket_allowed allowing socket { localPort: 53154 } +18s
  cypress:launcher:browsers chrome stderr: [0110/111813.964623:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for picsum.photos failed:
----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=picsum.photos) -----
ERROR: No matching issuer found +18s
  cypress:network:cors Parsed URL { port: '443', protocol: 'https:', subdomain: null, domain: 'picsum', tld: 'photos' } +18s
  cypress:server:remote-states getting remote state: undefined for: https://picsum.photos/seed/er/500/200 +17s
  cypress:network:cors Parsed URL { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } +0ms
  cypress:server:remote-states getting remote state: { auth: undefined, origin: 'http://localhost:3000', strategy: 'http', fileServer: null, domainName: 'localhost', props: { port: '3000', protocol: 'http:', subdomain: null, domain: '', tld: 'localhost' } } for: http://localhost:3000 +0ms
  cypress:server:stream_buffer stream buffer writeable final called +0ms
  cypress:network:agent addRequest called { isHttps: true, href: 'https://picsum.photos/seed/er/500/200' } +19s
  cypress:network:agent got family { family: undefined, href: 'https://picsum.photos/seed/er/500/200' } +1ms
  cypress:network:agent Creating proxied socket for https://picsum.photos/seed/er/500/200 through http://127.0.0.1:42067 +1ms
  cypress:network:connect successfully connected { opts: { port: 42067, host: '127.0.0.1', useTls: false, getDelayMsForRetry: [Function (anonymous)] }, iteration: 0 } +99ms
2023-01-10T11:18:14.023Z cy2-net Connection request: picsum.photos:443
2023-01-10T11:18:14.024Z cy2-net Should "picsum.photos" use upstream proxy with NO_PROXY [
  'localhost',
  '127.0.0.1',
  '10.0.0.0/8',
  '172.16.57.0/24',
  '172.16.31.48',
  'r.company.net',
  'intra.company.net',
  'nexus3.r.company.net',
  'dockerprivate.r.company.net',
  'dockerregistry.r.company.net',
  'docker',
  '*.intra.company.net',
  '*.r.company.net',
  '172.16.57.17',
  '172.16.57.150'
]: true
2023-01-10T11:18:14.024Z cy2-net Proxy chain to upstream for picsum.photos:443
  cypress:server:project received runnables { id: 'r1', title: '', root: true, pending: false, type: 'suite', file: 'cypress/e2e/test.cy.ts', retries: -1, _slow: 10000, hooks: [ { title: '"before all" hook', hookName: 'before all', hookId: 'h1', pending: false, body: '() => {\n' + '    // we need to reset the coverage when running\n' + '    // in the interactive mode, otherwise the counters will\n' + '    // keep increasing every time we rerun the tests\n' + '    const logInstance = Cypress.log({\n' + "      name: 'Coverage',\n" + "      message: ['Reset [@cypress/code-coverage]']\n" + '    })\n' + '\n' + '    cy.task(\n' + "      'resetCoverage',\n" + '      {\n' + '        // @ts-ignore\n' + "        isInteractive: Cypress.config('isInteractive')\n" + '      },\n' + '      { log: false }\n' + '    ).then(() => {\n' + '      logInstance.end()\n' + '    })\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"before each" hook', hookName: 'before each', hookId: 'h2', pending: false, body: '() => {\n' + '    // each object will have the coverage and url pathname\n' + '    // to let the user know the coverage has been collected\n' + '    windowCoverageObjects = []\n' + '\n' + '    const saveCoverageObject = (win) => {\n' + '      // if application code has been instrumented, the app iframe "window" has an object\n' + '      const applicationSourceCoverage = win.__coverage__\n' + '      if (!applicationSourceCoverage) {\n' + '        return\n' + '      }\n' + '\n' + '      if (\n' + '        Cypress._.find(windowCoverageObjects, {\n' + '          coverage: applicationSourceCoverage\n' + '        })\n' + '      ) {\n' + '        // this application code coverage object is already known\n' + '        // which can happen when combining `window:load` and `before` callbacks\n' + '        return\n' + '      }\n' + '\n' + '      windowCoverageObjects.push({\n' + '        coverage: applicationSourceCoverage,\n' + '        pathname: win.location.pathname\n' + '      })\n' + '    }\n' + '\n' + '    // save reference to coverage for each app window loaded in the test\n' + "    cy.on('window:load', saveCoverageObject)\n" + '\n' + '    // save reference if visiting a page inside a before() hook\n' + '    cy.window({ log: false }).then(saveCoverageObject)\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"before each" hook', hookName: 'before each', hookId: 'h3', pending: false, body: "function () {\n    cy.viewport('macbook-13');\n}", type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"before each" hook', hookName: 'before each', hookId: 'h4', pending: false, body: 'function () {\n' + "    cy.intercept('POST', Cypress.env('gqlUrl'), function (req) { return __awaiter(void 0, void 0, void 0, function () {\n" + '        return __generator(this, function (_a) {\n' + '            switch (_a.label) {\n' + '                case 0: \n' + '                // Queries\n' + `                return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'CustomerCompanyName')];\n` + '                case 1:\n' + '                    // Queries\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableAdmin')];\n` + '                case 2:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableContractManagement')];\n` + '                case 3:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableCustomer')];\n` + '                case 4:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableAccountManager')];\n` + '                case 5:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableFacilityManager')];\n` + '                case 6:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionTableContractPartner')];\n` + '                case 7:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'Dashboard')];\n` + '                case 8:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'AllNews')];\n` + '                case 9:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PocTitle')];\n` + '                case 10:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionAdmin')];\n` + '                case 11:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionCustomer')];\n` + '                case 12:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionContractPartner')];\n` + '                case 13:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'PointOfConsumptionFacilityManager')];\n` + '                case 14:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'MeterReadings')];\n` + '                case 15:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'DetailsInfo')];\n` + '                case 16:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'BankData')];\n` + '                case 17:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockQuery"])(req, 'Documents')\n` + '                        // Mutations\n' + '                    ];\n' + '                case 18:\n' + '                    _a.sent();\n' + '                    // Mutations\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockMutation"])(req, 'AnnouncePoCCancellation')];\n` + '                case 19:\n' + '                    // Mutations\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockMutation"])(req, 'SubmitFeedback')];\n` + '                case 20:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockMutation"])(req, 'SetNewsReadingStatus')];\n` + '                case 21:\n' + '                    _a.sent();\n' + `                    return [4 /*yield*/, Object(_test_utils__WEBPACK_IMPORTED_MODULE_0__["mockMutation"])(req, 'SubmitMeterReading')];\n` + '                case 22:\n' + '                    _a.sent();\n' + '                    return [2 /*return*/];\n' + '            }\n' + '        });\n' + "    }); }).as('graphql');\n" + '}', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"before each" hook', hookName: 'before each', hookId: 'h5', pending: false, body: 'function () {\n' + "    cy.intercept('GET', Cypress.env('documentApi') + '/*', function (req) {\n" + '        req.reply(function (res) {\n' + '            // TODO: use a real document as fixture\n' + "            res.body = 'test';\n" + '        });\n' + "    }).as('downloadService');\n" + '}', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"before each" hook', hookName: 'before each', hookId: 'h6', pending: false, body: 'function () {\n' + '    /**\n' + '     * Cypress throws an error on the poc details page, but in a normal browser it works fine.\n' + '     *\n' + '     * @see https://github.com/cypress-io/cypress/issues/20341\n' + '     */\n' + "    Cypress.on('uncaught:exception', function (err) { return !err.message.includes('ResizeObserver loop limit exceeded'); });\n" + '}', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"after all" hook: collectBackendCoverage', hookName: 'after all', hookId: 'h7', pending: false, body: 'function collectBackendCoverage() {\n' + '    // I wish I could fail the tests if there is no code coverage information\n' + '    // but throwing an error here does not fail the test run due to\n' + '    // https://github.com/cypress-io/cypress/issues/2296\n' + '\n' + '    // there might be server-side code coverage information\n' + '    // we should grab it once after all tests finish\n' + '    // @ts-ignore\n' + "    const baseUrl = Cypress.config('baseUrl') || cy.state('window').origin\n" + '    // @ts-ignore\n' + "    const runningEndToEndTests = baseUrl !== Cypress.config('proxyUrl')\n" + "    const specType = Cypress._.get(Cypress.spec, 'specType', 'integration')\n" + "    const isIntegrationSpec = specType === 'integration'\n" + '\n' + '    if (runningEndToEndTests && isIntegrationSpec) {\n' + '      // we can only request server-side code coverage\n' + '      // if we are running end-to-end tests,\n' + '      // otherwise where do we send the request?\n' + '      const url = Cypress._.get(\n' + "        Cypress.env('codeCoverage'),\n" + "        'url',\n" + "        '/__coverage__'\n" + '      )\n' + '      cy.request({\n' + '        url,\n' + '        log: false,\n' + '        failOnStatusCode: false\n' + '      })\n' + '        .then((r) => {\n' + "          return Cypress._.get(r, 'body.coverage', null)\n" + '        })\n' + '        .then((coverage) => {\n' + '          if (!coverage) {\n' + '            // we did not get code coverage - this is the\n' + '            // original failed request\n' + '            const expectBackendCoverageOnly = Cypress._.get(\n' + "              Cypress.env('codeCoverage'),\n" + "              'expectBackendCoverageOnly',\n" + '              false\n' + '            )\n' + '            if (expectBackendCoverageOnly) {\n' + '              throw new Error(\n' + '                `Expected to collect backend code coverage from ${url}`\n' + '              )\n' + '            } else {\n' + '              // we did not really expect to collect the backend code coverage\n' + '              return\n' + '            }\n' + '          }\n' + "          sendCoverage(coverage, 'backend')\n" + '        })\n' + '    }\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"after all" hook: mergeUnitTestCoverage', hookName: 'after all', hookId: 'h8', pending: false, body: 'function mergeUnitTestCoverage() {\n' + '    // collect and merge frontend coverage\n' + '\n' + '    // if spec bundle has been instrumented (using Cypress preprocessor)\n' + '    // then we will have unit test coverage\n' + '    // NOTE: spec iframe is NOT reset between the tests, so we can grab\n' + '    // the coverage information only once after all tests have finished\n' + '    // @ts-ignore\n' + '    const unitTestCoverage = window.__coverage__\n' + '    if (unitTestCoverage) {\n' + "      sendCoverage(unitTestCoverage, 'unit')\n" + '    }\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"after all" hook: generateReport', hookName: 'after all', hookId: 'h9', pending: false, body: 'function generateReport() {\n' + '    // when all tests finish, lets generate the coverage report\n' + '    const logInstance = Cypress.log({\n' + "      name: 'Coverage',\n" + "      message: ['Generating report [@cypress/code-coverage]']\n" + '    })\n' + "    cy.task('coverageReport', null, {\n" + "      timeout: dayjs.duration(3, 'minutes').asMilliseconds(),\n" + '      log: false\n' + '    }).then((coverageReportFolder) => {\n' + "      logInstance.set('consoleProps', () => ({\n" + "        'coverage report folder': coverageReportFolder\n" + '      }))\n' + '      logInstance.end()\n' + '      return coverageReportFolder\n' + '    })\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 }, { title: '"after each" hook', hookName: 'after each', hookId: 'h10', pending: false, body: '() => {\n' + '    // save coverage after the test\n' + '    // because now the window coverage objects have been updated\n' + '    windowCoverageObjects.forEach((cover) => {\n' + '      sendCoverage(cover.coverage, cover.pathname)\n' + '    })\n' + '\n' + '    if (!hasE2ECoverage()) {\n' + '      if (hasUnitTestCoverage()) {\n' + '        logMessage(`πŸ‘‰ Only found unit test code coverage.`)\n' + '      } else {\n' + '        const expectBackendCoverageOnly = Cypress._.get(\n' + "          Cypress.env('codeCoverage'),\n" + "          'expectBackendCoverageOnly',\n" + '          false\n' + '        )\n' + '        if (!expectBackendCoverageOnly) {\n' + '          logMessage(`\n' + '            ⚠️ Could not find any coverage information in your application\n' + '            by looking at the window coverage object.\n' + '            Did you forget to instrument your application?\n' + '            See [code-coverage#instrument-your-application](https://github.com/cypress-io/code-coverage#instrument-your-application)\n' + '          `)\n' + '        }\n' + '      }\n' + '    }\n' + '  }', type: 'hook', file: 'cypress/e2e/test.cy.ts', invocationDetails: [Object], currentRetry: 0, retries: -1, _slow: 10000 } ], tests: [], suites: [ { id: 'r2', title: 'news dialog', root: false, pending: false, type: 'suite', file: null, invocationDetails: [Object], retries: -1, _slow: 10000, hooks: [Array], tests: [], suites: [Array] } ], runtimeConfig: {} } +17s
  cypress:server:reporter trying to load reporter: cypress-multi-reporters +19s
  cypress:server:reporter trying to require local reporter with path: /builds/team/group/project-name/cypress-multi-reporters +0ms
  cypress:server:reporter trying to require local reporter with path: /builds/team/group/project-name/node_modules/cypress-multi-reporters +1ms
Couldn't determine Mocha version
TypeError: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:371:5)
    at new ClientRequest (node:_http_client:158:11)
    at Object.request (node:http:96:10)
    at runProxyChain (/builds/team/group/project-name/node_modules/cy2/src/proxy-chain.ts:13:6)
    at Server.<anonymous> (/builds/team/group/project-name/node_modules/cy2/src/proxy.ts:93:7)
    at Server.emit (node:events:526:28)
    at onParserExecuteCommon (node:_http_server:727:14)
    at onParserExecute (node:_http_server:641:3)
error Command failed with exit code 1.

Upload videos for flake tests

Description

When tests that have failed actually pass after a retry and videoUploadOnPasses: false flag is used, videos are currently not uploaded. It would be very nice to upload them also, because I could then investigate what was the cause of the flake and get rid of it.

Example usage

When I use videoUploadOnPasses: false and retries that is not zero, the video should be uploaded to the dashboad.

how can i run cy2 in nodejs and send all the data to my sorry-cypress service

hi , i can run "cy2 run" by cli command
such as "CYPRESS_API_URL='http://xx.xx.xx.xx:1234/' ./node_modules/.bin/cy2 run --record --key xxxx-xxx-xxxx-xxxx-xxxx --parallel --ci-build-id date +%s "

but ,how to run in nodejs and get the result in nodejs
there is my code below, but it doesn't work.
so someone tell me ,how to resolve the problem . thanks !!!
`
const cypress = require('cypress');
const { patch,run } = require('cy2');

await patch('http://xx.xx.xx.xx:1234/');

cypress.run({
config,
spec: './cypress/integration/check_specific_room.js',
}).then((results) => {
console.log("i can get the result , but the data didn't be sent to the right server")
}
`

Cant run sorry cypress with cypress ntlm after V12 upgrade

Before opening, please confirm:

  • I have searched for duplicate or closed issues and discussions.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

# Put output below this line


Describe the bug

After upgrade cypress to v12.2.0 and cy2 to V4
I tried to run sorry cypress with cypress-ntlm,
Script in CMD:
Call npx cy2
npx cypress-ntlm run --record --key....

In version 10.6.0 with cy2 it worked but when cypress changed their configuration it's not working anymore.
I tried to run The ntlm-proxy manually but failed.
I also tried to run the same command but now when i call cy2 it runs the tests

Expected behavior

Having a script that can run sorry cypress but with ntlm
Or the last script will work

Command and Setup

Cmd file sorry-cypress.cmd:
call cy2
npx cypress-ntlm run --record.....

And then i ran the script

Full log and debug output

// Put your logs below this line


Can I define Branch Name, Commit Message and so on from the CLI?

Hi,
inside sorry-cypress one each run there are the following fields:

  • Origin
  • Branch
  • Message of last commit

When we use AzureDevOps to execute the cypress runs. The values sent for these fields are not "perfectly right".
Is there a way to overwrite what cy2 is sending?

Best,
Johannes

Copyfile error

cy2 seems to have some access errors using latest cypress v9.0.0:
Error: EACCES: permission denied, copyfile '/root/.cache/Cypress/9.0.0/Cypress/resources/app/packages/server/config/app.yml' -> '/root/.cache/Cypress/9.0.0/Cypress/resources/app/packages/server/config/_app.yml'
13:13:12 at Object.copyFileSync (node:fs:2790:3)
13:13:12 at Object.exports.patch (/e2e/node_modules/cy2/lib/patch.js:18:8)
13:13:12 at async Object.exports.run (/e2e/node_modules/cy2/index.js:8:3) {
13:13:12 errno: -13,
13:13:12 syscall: 'copyfile',
13:13:12 code: 'EACCES',
13:13:12 path: '/root/.cache/Cypress/9.0.0/Cypress/resources/app/packages/server/config/app.yml',
13:13:12 dest: '/root/.cache/Cypress/9.0.0/Cypress/resources/app/packages/server/config/_app.yml'

cy2: v1.3.0
cypress: v9.0.0
sorry-cypress: v1.1.1
teamcity + docker (using volumes on teamcity agents)

works fine with cypress v8.7.0 tho

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.