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

Error: spawn E2BIG #547

Open
alliteration opened this issue Dec 5, 2022 · 8 comments
Open

Error: spawn E2BIG #547

alliteration opened this issue Dec 5, 2022 · 8 comments

Comments

@alliteration
Copy link

Getting the below error with my project. This is the configuration:

  • name: Run unit tests
    run: xcodebuild -project Ro.xcodeproj -scheme 'Pipeline' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.0' -resultBundlePath TestResults test
    • uses: kishikawakatsumi/xcresulttool@v1
      if: failure()
      with:
      path: TestResults.xcresult

And the error:

Error: spawn E2BIG
at ChildProcess.spawn (node:internal/child_process:412:11)
at Object.spawn (node:child_process:698:9)
at ToolRunner. (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:413:1)
at Generator.next ()
at /Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:27:1
at new Promise ()
at webpack_modules.8159.__awaiter (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:23:1)
at /Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:395:1
at new Promise ()
at ToolRunner. (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:395:1)

@kishikawakatsumi
Copy link
Owner

@alliteration Can you share your TestResults.xcresult to investigate the error?

@daltonclaybrook
Copy link

This issue is occurring for me as well. I DM'd you a copy of my xcresult file on Twitter. Two details that might be helpful in the search:

  1. The xcresult file is the result of merging two other xcresult files: One was generated in a "build for testing" step, and the other in a "test without building" step.
  2. I believe the xcresult contains attachments with failed snapshot test images from this library.

@daltonclaybrook
Copy link

Possibly some important context here: standard/standard#40

@mackoj
Copy link

mackoj commented Sep 8, 2023

I did have the same issue is there any known way to go around it ?

@mackoj
Copy link

mackoj commented Sep 8, 2023

I think it's failling when the XCTestResult is too big.

@mackoj
Copy link

mackoj commented Sep 14, 2023

This is the exact issue

Error: spawn E2BIG
    at ChildProcess.spawn (node:internal/child_process:420:11)
    at Object.spawn (node:child_process:733:9)
    at ToolRunner.<anonymous> (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:413:1)
    at Generator.next (<anonymous>)
    at /Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:27:1
    at new Promise (<anonymous>)
    at __webpack_modules__.8[15](https://github.com/repo/project/actions/runs/6185365880/job/16790825777?pr=87#step:6:16)9.__awaiter (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:23:1)
    at /Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:395:1
    at new Promise (<anonymous>)
    at ToolRunner.<anonymous> (/Users/runner/work/_actions/kishikawakatsumi/xcresulttool/v1/webpack:/xcresulttool/node_modules/@actions/exec/lib/toolrunner.js:395:1)

@mackoj
Copy link

mackoj commented Sep 16, 2023

I did share with you @kishikawakatsumi on twitter in a private message a file that demo this issue.

@den2207
Copy link

den2207 commented Sep 16, 2024

@kishikawakatsumi Hi! I'm encountering a similar issue, getting Error: spawn E2BIG when running tests with xcresulttool. Is there a known workaround or fix for this issue? I would really appreciate any advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants