nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107.67k stars 29.63k forks source link

Investigate flaky test parallel/test-module-loading-globalpaths #30844

Open joaocgreis opened 4 years ago

joaocgreis commented 4 years ago
internal/modules/cjs/loader.js:1026
    throw err;
    ^

Error: Cannot find module 'foo'
Require stack:
- C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-module-loading-globalpaths.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1023:17)
    at Function.Module._load (internal/modules/cjs/loader.js:910:27)
    at Module.require (internal/modules/cjs/loader.js:1085:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-module-loading-globalpaths.js:15:15)
    at Module._compile (internal/modules/cjs/loader.js:1190:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1229:10)
    at Module.load (internal/modules/cjs/loader.js:1045:32)
    at Function.Module._load (internal/modules/cjs/loader.js:949:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\parallel\\test-module-loading-globalpaths.js'
  ]
}
C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.355\install\node.exe - Access is denied.
Can't clean tmpdir: C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.355
Files blocking: [ 'install' ]

C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:136
    throw e;
    ^

Error: ENOTEMPTY: directory not empty, rmdir 'C:\workspace\node-test-binary-windows-js-suites\node\test\.tmp.355'
    at Object.rmdirSync (fs.js:783:3)
    at rmdirSync (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:86:10)
    at rimrafSync (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:41:7)
    at process.onexit (C:\workspace\node-test-binary-windows-js-suites\node\test\common\tmpdir.js:121:5)
    at process.emit (events.js:314:22) {
  errno: -4051,
  syscall: 'rmdir',
  code: 'ENOTEMPTY',
  path: 'C:\\workspace\\node-test-binary-windows-js-suites\\node\\test\\.tmp.355'
}

On: https://ci.nodejs.org/computer/test-rackspace-win2008r2_vs2017-x64-4/

Ref: https://ci.nodejs.org/job/node-test-binary-windows-js-suites/50/RUN_SUBSET=1,nodes=win2008r2-COMPILED_BY-vs2017/testReport/junit/(root)/test/parallel_test_module_loading_globalpaths/

bnoordhuis commented 4 years ago

I suspect this is the same issue as #30620. Fix forthcoming.

anonrig commented 2 months ago

Opening this again since it has become flaky again. Ref: https://ci.nodejs.org/job/node-test-commit-osx/60975/#showFailuresLink

richardlau commented 2 months ago

Opening this again since it has become flaky again. Ref: https://ci.nodejs.org/job/node-test-commit-osx/60975/#showFailuresLink

For macOS that is because of ongoing issues with disk space https://github.com/nodejs/build/issues/3887