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

e2e tests fail with EACCES on GitHub #3

Open
jackdbd opened this issue Feb 6, 2024 · 0 comments
Open

e2e tests fail with EACCES on GitHub #3

jackdbd opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jackdbd
Copy link
Owner

jackdbd commented Feb 6, 2024

All tests in the cli test suite run fine on my laptop, but fail with an EACCESS error code when launched from a GitHub workflow.

Here is the output of one of the failing tests:

# Subtest: cli
  # Subtest: returns a help message when called with --help
  not ok 1 - returns a help message when called with --help
    ---
    duration_ms: 3.451251
    location: 'file:///home/runner/work/zod-to-doc/zod-to-doc/test/cli.mjs:16:3'
    failureType: 'testCodeFailure'
    error: 'spawnSync /home/runner/work/zod-to-doc/zod-to-doc/dist/cli.js EACCES'
    code: 'EACCES'
    stack: |-
      Object.spawnSync (node:internal/child_process:1124:20)
      spawnSync (node:child_process:876:24)
      execFileSync (node:child_process:[9](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:10)19:[15](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:16))
      TestContext.<anonymous> (file:///home/runner/work/zod-to-doc/zod-to-doc/test/cli.mjs:20:[17](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:18))
      Test.runInAsyncScope (node:async_hooks:[20](https://github.com/jackdbd/zod-to-doc/actions/runs/7799191221/job/21269451348#step:8:21)6:9)
      Test.run (node:internal/test_runner/test:631:25)
      Test.start (node:internal/test_runner/test:542:17)
      node:internal/test_runner/test:946:71
      node:internal/per_context/primordials:487:82
      new Promise (<anonymous>)

I think this issue is related to the GitHub-hosted runner used in the GitHub Workflow. See here for details:

@jackdbd jackdbd self-assigned this Feb 6, 2024
@jackdbd jackdbd added the bug Something isn't working label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant