Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Error(The process '${this.toolPath}' failed with exit code ${this.processExitCode}); #1100

Closed
CaiqueCoelho opened this issue Dec 18, 2023 · 5 comments
Labels
unexpected behavior User expected result, but got another

Comments

@CaiqueCoelho
Copy link

I'm getting the following error when running the cypress-io/github-action on v5 or v6:

Signal received: 0, errno: 0
################################################################################
Stack trace:
################################################################################
/home/runner/work/openid_server_code/openid_server_code/node_modules/aws-crt/dist/bin/linux-x64/aws-crt-nodejs.node(aws_backtrace_print+0x41) [0x7f004fc16a71]
/home/runner/work/openid_server_code/openid_server_code/node_modules/aws-crt/dist/bin/linux-x64/aws-crt-nodejs.node(+0x82c73) [0x7f004f8adc73]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420) [0x7f005def0420]
node() [0xa963ba]
node(_ZN2v88internal7Isolate38RunHostImportModuleDynamicallyCallbackENS0_6HandleINS0_6ScriptEEENS2_INS0_6ObjectEEENS0_11MaybeHandleIS5_EE+0x101) [0xed1141]
node(_ZN2v88internal25Runtime_DynamicImportCallEiPmPNS0_7IsolateE+0x9b) [0x12e78db]
node() [0x170e0b4]
/home/runner/work/_actions/cypress-io/github-action/v5/dist/index.js:3900
                error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
                        ^

Error: The process '/opt/hostedtoolcache/node/18.19.0/x64/bin/npm' failed with exit code 255
    at ExecState._setResult (/home/runner/work/_actions/cypress-io/github-action/v5/dist/index.js:3900:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/cypress-io/github-action/v5/dist/index.js:3883:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/cypress-io/github-action/v5/dist/index.js:3777:27)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Looks like this problem is happening for more users on the following issue on Cypress repository cypress-io/cypress#24296

Cypress Version: 12.6.0
runs-on: ubuntu-20.04

My worklow.yml:

name: Cypress Tests

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review, unlocked]

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

env:
  CI: true

jobs:
  cypress-raidiam:
    runs-on: ubuntu-20.04 # needed for mongo import
    if: github.event.pull_request.draft == false
    timeout-minutes: 15
    steps:
      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Mongo
        uses: supercharge/[email protected]
        with:
          mongodb-version: 6
          mongodb-replica-set: test-rs

      - name: Launch Localstack
        run: |
          echo "Install aws localstack"
          pip install awscli-local==0.21
          pip install localstack-client==2.5
          pip install awscli==1.29.73
          pip install boto3==1.28.73
          pip install docutils==0.16
          pip install botocore==1.31.73
          pip install rsa==4.7.2
          pip install s3transfer==0.7.0
          pip install jmespath==1.0.1
          pip install python-dateutil==2.8.2
          echo "awscli and awslocal installed"
          echo "Starting Local Stack"
          docker compose -f docker-compose-localstack.yml up -d
          sleep 10
          bash .aws/localstack.sh
          bash create-resources.sh

      - name: Cypress Run Raidiam
        uses: cypress-io/github-action@v5 # needed for node v18
        with:
          build: npm run build:cypress
          start: npm run cypress:test
          wait-on: 'http://localhost:9000/session/end'
          wait-on-timeout: 120
          browser: chrome
          record: true
          parallel: false
          group: ${{ env.TAG }}
          tag: ${{ env.TAG }}
        env:
          CYPRESS_grepTags: ${{ env.TAG }}
@CaiqueCoelho
Copy link
Author

cc @tvthatsme @jarekcimoch @garmeeh

@MikeMcC399
Copy link
Collaborator

@CaiqueCoelho

Can you share your repository? If not, please provide the script definitions for

  • build:cypress
  • cypress:test

as used in:

          build: npm run build:cypress
          start: npm run cypress:test

You should not normally be running Cypress tests through the action's start (Server) parameter.

@MikeMcC399
Copy link
Collaborator

@MikeMcC399
Copy link
Collaborator

MikeMcC399 commented Dec 18, 2023

@CaiqueCoelho

If you look at the full log of your workflow you will probably find that the error

/home/runner/work/_actions/cypress-io/github-action/v5/dist/index.js:3900
                error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
                        ^

Error: The process '/opt/hostedtoolcache/node/18.19.0/x64/bin/npm' failed with exit code 255

is caused by the failure of one of your npm calls.

If it is not clear which of the npm calls is the problem, then you can add the following into your workflow to gather additional debug information:

  env:
    DEBUG: '@cypress/github-action'

@MikeMcC399 MikeMcC399 added the unexpected behavior User expected result, but got another label Dec 19, 2023
@MikeMcC399
Copy link
Collaborator

Closing due to lack of activity.

If there is new information we can re-open.

@MikeMcC399 MikeMcC399 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

2 participants