| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
/CC @nodejs/testing |
Sorry, something went wrong.
|
Shouldn't the subsystem prefix here just be test: ? |
Sorry, something went wrong.
|
Please could you add a brief sentence or two in the commit message as to why? |
Sorry, something went wrong.
Fixed. |
Sorry, something went wrong.
Wrote some words. Didn't have anything too enlightening 🤷♂.
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM if CI is green and once info about opts is added to the tmpdir.refresh() entry in test/common/README.md.
Sorry, something went wrong.
|
@nodejs/platform-windows |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM but it seems like on Windows it will now always try both ways, even though the folder might already be deleted by rmdir.
Sorry, something went wrong.
There was a problem hiding this comment.
If everything passes, should this not return?
Sorry, something went wrong.
There was a problem hiding this comment.
Not totally sure why, but it's not trivial https://ci.nodejs.org/job/node-test-binary-windows-2/1275/
Sorry, something went wrong.
|
Is this intended to fix failures like below?
c:\workspace\node-test-binary-windows-2\test\common\tmpdir.js:27
throw e;
^
Error: ENOTEMPTY: directory not empty, rmdir 'c:\workspace\node-test-binary-windows-2\test\.tmp.6'
at Object.rmdirSync (fs.js:693:3)
at rmdirSync (c:\workspace\node-test-binary-windows-2\test\common\tmpdir.js:48:10)
at rimrafSync (c:\workspace\node-test-binary-windows-2\test\common\tmpdir.js:18:7)
at Object.refresh (c:\workspace\node-test-binary-windows-2\test\common\tmpdir.js:66:3)
at Object.<anonymous> (c:\workspace\node-test-binary-windows-2\test\parallel\test-child-process-spawnsync-args.js:18:8)
at Module._compile (internal/modules/cjs/loader.js:777:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
at Module.load (internal/modules/cjs/loader.js:640:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:840:10) {
errno: -4051,
syscall: 'rmdir',
code: 'ENOTEMPTY',
path: 'c:\\workspace\\node-test-binary-windows-2\\test\\.tmp.6'
}
|
Sorry, something went wrong.
Exactly. |
Sorry, something went wrong.
|
@Trott added doc @BridgeAR I wanted this to be best-effort with minimal change to current semantics. I'm going to land this to reduce flakes in CI, and I'll follow up with teaks. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with minor doc update to the function signature
Sorry, something went wrong.
Sorry, something went wrong.
cmd's `rmdir` is hardened to deal with Windows edge cases, like
lingering processes, indexing, and AV checks. So we give it a try first.
* Added `opts = { spawn = true }` to opt-out of spawning
* test-pipeconnectwrap.js - spawning messes up async_hooks state
PR-URL: nodejs#28035
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
This makes temp dir names consistent whether we run in stand-alone mode, via `test.py` in single process, or in multi-process. PR-URL: nodejs#28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
PR-URL: nodejs#28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Also try to make more traceable. PR-URL: nodejs#28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Sorry, something went wrong.
cmd's `rmdir` is hardened to deal with Windows edge cases, like
lingering processes, indexing, and AV checks. So we give it a try first.
* Added `opts = { spawn = true }` to opt-out of spawning
* test-pipeconnectwrap.js - spawning messes up async_hooks state
PR-URL: #28035
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
This makes temp dir names consistent whether we run in stand-alone mode, via `test.py` in single process, or in multi-process. PR-URL: #28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
PR-URL: #28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Also try to make more traceable. PR-URL: #28035 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
| Back | FazBrowse Home | New Git URL |
This makes temp dir names consistent whether we run in stand-alone mode,
via test.py in single process, or in multi-process.
cmd's rmdir is hardened to deal with Windows edge cases, like
lingering processes, indexing, and AV checks. So we give it a try first.
Checklist