sorry-cypress / cy2

Integrate Cypress with alternative cloud services like Sorry Cypress or Currents
https://docs.sorry-cypress.dev/cypress-agent/cy2
GNU General Public License v3.0
32 stars 5 forks source link

Error after upgrade to Cypress >= v12.7 #76

Closed sebkasanzew closed 10 months ago

sebkasanzew commented 1 year ago

Before opening, please confirm:

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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42062)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42062)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42125)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42062)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42062)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:3160:374216)\n at :4445:41929\n at Array.forEach ()\n at p (:4445:42125)\n at :4445:51478\n at :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. (/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 (:4445:47986)\n at :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 (:1737:499409)\n' + ' at a (:4445:47390)\n' + ' at e.transform (: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 :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 :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 ```
MDG-JHowley commented 1 year ago

I've successfully got cypress 12.8.1 to work using the module api with:

e.g.

require('dotenv').config();
const { run } = require('cy2');

const opts = {
  browser: 'chrome',
  parallel: true,
  record: true,
  key: `key`,
  ciBuildId: 'local' + Date.now(),
};

/**
 * run Cypress via cy2 to use sorry Cypress director
 * https://github.com/sorry-cypress/cy2
 */
run(process.env.CYPRESS_API_URL, opts)
  .then((result) => {
    /**
     * cypress failed to run
     * https://docs.cypress.io/guides/guides/module-api.html#Handling-errors
     */
    if (result.failures) {
      console.error('Could not execute tests');
      console.error(result.message);
      process.exit(result.failures);
    }
    // print test results and exit
    // with the number of failed tests as exit code
    process.exit(result.totalFailed);
  })
  .catch((err) => {
    console.error(err.message);
    process.exit(999);
  });

My configuration is quite complex (omitted from the above) so can't really try directly on CLI but maybe this helps you

agoldis commented 1 year ago

I recommend switching to https://github.com/currents-dev/cypress-cloud, Cypress team put restrictions on their orchestration protocol and started blocking cy2 package. It is still working on windows machines though.

MDG-JHowley commented 1 year ago

@agoldis architecturally what is the difference? i.e. if Cypress team is actively blocking cy2 what prevents them from doing the same of cypress-cloud?

Presumably cypress-cloud does not utilise the built in cypress orchestration then?

agoldis commented 1 year ago

Presumably cypress-cloud does not utilise the built in cypress orchestration then?

indeed

i.e. if Cypress team is actively blocking cy2 what prevents them from doing the same of cypress-cloud?

That's a good topic for discussion. In short: cy2 was piggybacking on their orchestration, cypress-cloud is a kosher plugin using their public APIs in offline mode.

alyssaruth commented 1 year ago

We've seen this after upgrading to Cypress 12.9.0, but only very intermittently (it's working the majority of the time).

 [cy2]  Using cloud orchestration service: http://sorry-cypress-director:1234/
[1956:0501/171109.357529:ERROR:node_bindings.cc(279)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[1956:0501/171109.760556:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 2181: Permission denied (13)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[2181:0501/171109.777341:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
We could not find a Cypress Cloud project with the projectId: unused

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

Thanks for the tip about cypress-cloud @agoldis , nice to have that on my radar!

cinorthstarmls commented 1 year ago

cypress-cloud does not support typescript, has anyone come up with a solution other than cypress-cloud? https://github.com/currents-dev/cypress-cloud/discussions/170

agoldis commented 1 year ago

cypress-cloud doesn't support typescript configuration files, do you really need it @cinorthstarmls?

cinorthstarmls commented 1 year ago

cypress-cloud doesn't support typescript configuration files, do you really need it @cinorthstarmls?

I am confirming, but I thought that would affect the Test files too. If it's only configuration files that shouldn't be an issue.

alyssaruth commented 1 year ago

cypress-cloud doesn't support typescript configuration files, do you really need it @cinorthstarmls?

I am confirming, but I thought that would affect the Test files too. If it's only configuration files that shouldn't be an issue.

I can confirm that typescript for test files etc is fine, all of our tests are typescript and we're working with cypress-cloud with no issues :smile: