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

Generated project's test:e2e causes Error: kill EPERM. #539

Closed
MeirionHughes opened this issue Jun 28, 2024 · 5 comments
Closed

Generated project's test:e2e causes Error: kill EPERM. #539

MeirionHughes opened this issue Jun 28, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@MeirionHughes
Copy link

MeirionHughes commented Jun 28, 2024

I'm not sure where this bug report should go. This seemed like logical place as the generated project's test:e2e just fails. my guess is a change in vite causing start-server-and-test to fail.

Describe the bug

the generated project's e2e test when using cypress and start-server-and-test fails with Error: kill EPERM.

Child process 24584 exited before trying to stop it
Error: kill EPERM
    at process.kill (node:internal/process/per_thread:228:13)
    at D:\testing\vue-project\node_modules\start-server-and-test\src\index.js:62:23
    at Array.forEach (<anonymous>)
    at D:\testing\vue-project\node_modules\start-server-and-test\src\index.js:60:20
    at tryCatcher (D:\testing\vue-project\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\testing\vue-project\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\testing\vue-project\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\testing\vue-project\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (D:\testing\vue-project\node_modules\bluebird\js\release\promise.js:729:18)
    at Promise._fulfill (D:\testing\vue-project\node_modules\bluebird\js\release\promise.js:673:18)
    at D:\testing\vue-project\node_modules\bluebird\js\release\nodeback.js:42:21
    at D:\testing\vue-project\node_modules\ps-tree\index.js:87:7
    at a.end (D:\testing\vue-project\node_modules\event-stream\index.js:87:5)
    at Stream.onend (node:internal/streams/legacy:48:10)
    at Stream.emit (node:events:531:35)
    at end (D:\testing\vue-project\node_modules\map-stream\index.js:116:39) {
  errno: -4048,
  code: 'EPERM',
  syscall: 'kill'
}

repo

  • npm create vue@latest
  • No for everything - choose cypress.
  • npm install
  • npm run build
  • npm run test:e2e

run the test a few times as it can be a race-condition.

shell: windows 11, cmd or ps
node -v : 21.7.3 and 22.3.0
electron (cypress) 118
npm why start-server-and-test : [email protected]
npm why vite : [email protected]
npm why cypress: [email protected]

@MeirionHughes MeirionHughes added the bug Something isn't working label Jun 28, 2024
@MeirionHughes MeirionHughes changed the title Generated project causes Error: kill EPERM. Generated project's test:e2e causes Error: kill EPERM. Jun 28, 2024
@MeirionHughes
Copy link
Author

possibly related: bahmutov/start-server-and-test#199

@Yordan-Ramchev
Copy link
Contributor

I could not reproduce this error, but I am using node v20.12.1, I will try later with node v22 (maybe that is causing the issue)
Screenshot 2024-06-28 at 12 51 30

@MeirionHughes
Copy link
Author

If I go to node v20.15.0 I don't get the error, but I do get:

Child process 16072 exited before trying to stop it
Child process 27140 exited before trying to stop it

but it does complete without error even after a few tries

@cexbrayat
Copy link
Member

Hi @MeirionHughes

To be honest, I don't think there is anything we can do in create-vue for this issue: it does look like this is specific to windows/node and cypress or start-server-and-test. I'm going to close this issue, and maybe you can try to reproduce it with a brand new project (using just vite and cypress) and open an issue on the cypress or start-server-and-test repositories.

@MeirionHughes
Copy link
Author

Okay, kicked it over start-server-and-test bahmutov/start-server-and-test#384

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

3 participants