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

npm test ends with error. #27019

Closed
1 task
mshima opened this issue Aug 20, 2024 · 2 comments · Fixed by #27247
Closed
1 task

npm test ends with error. #27019

mshima opened this issue Aug 20, 2024 · 2 comments · Fixed by #27247
Labels
area: bug 🐛 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: tests $100 https://www.jhipster.tech/bug-bounties/
Milestone

Comments

@mshima
Copy link
Member

mshima commented Aug 20, 2024

Overview of the issue

npm test always ends with an error:

             ^

Error: ENOENT: no such file or directory, chdir '/home/runner/work/generator-jhipster/generator-jhipster' -> '/tmp/684e168451aa581d19b2518932589a7acf81e4e7'
    at wrappedChdir (node:internal/bootstrap/switches/does_own_process_state:130:14)
    at process.chdir (node:internal/worker:110:5)
    at process.chdir (/home/runner/work/generator-jhipster/generator-jhipster/node_modules/graceful-fs/polyfills.js:22:11)
    at process.chdir (/home/runner/work/generator-jhipster/generator-jhipster/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/polyfills.js:22:11)
    at BasicRunContext.restore (file:///home/runner/work/generator-jhipster/generator-jhipster/node_modules/yeoman-test/dist/run-context.js:164:21)
    at BasicRunContext.cleanupTemporaryDir (file:///home/runner/work/generator-jhipster/generator-jhipster/node_modules/yeoman-test/dist/run-context.js:183:14)
    at TestContext.startNewContext (file:///home/runner/work/generator-jhipster/generator-jhipster/node_modules/yeoman-test/dist/test-context.js:6:26)
    at process.cleanupTemporaryDir (file:///home/runner/work/generator-jhipster/generator-jhipster/node_modules/yeoman-test/dist/test-context.js:13:17)
    at process.emit (node:events:531:35)
    at process.exit (node:internal/process/per_thread:185:15)
    at _exit (/home/runner/work/generator-jhipster/generator-jhipster/node_modules/workerpool/src/worker.js:129:12)
    at worker.cleanupAndExit (/home/runner/work/generator-jhipster/generator-jhipster/node_modules/workerpool/src/worker.js:133:12)
    at process.<anonymous> (/home/runner/work/generator-jhipster/generator-jhipster/node_modules/workerpool/src/worker.js:148:19)
    at process.emit (node:events:519:28)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'chdir',
  path: '/home/runner/work/generator-jhipster/generator-jhipster',
  dest: '/tmp/684e168451aa581d19b2518932589a7acf81e4e7'
}
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@mraible
Copy link
Contributor

mraible commented Aug 28, 2024

I was able to reproduce this today. Adding bug bounty.

@mraible mraible added $100 https://www.jhipster.tech/bug-bounties/ $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ labels Aug 28, 2024
@emilpaw
Copy link
Contributor

emilpaw commented Sep 7, 2024

I figured out it's caused by the changes in this commit: 5ff7466

My guess is that the new way how execa is mocked in check-java.spec.ts isn't working as expected and mocks execa in a way that some command related to the temporary folder is not executed. I'm looking further into this.

@mshima mshima mentioned this issue Sep 11, 2024
6 tasks
@mraible mraible added this to the 8.7.1 milestone Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bug 🐛 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ theme: tests $100 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants