Uh oh!
There was an error while loading. Please reload this page.
test,fs: test watch of file and directory - #13251
Conversation
refack
commented
May 27, 2017
Trott
commented
May 27, 2017
OS X stress test failed. (You will probably want to cancel it so it doesn't keep that host from being used for other test runs.) I'm pretty sure this issue isn't about removing files but is instead about an OS-specific race condition in file watching. See #13248 (comment) |
refack
commented
May 27, 2017
Ack. Stopped. But this PR is good to have anyway, no? |
Trott
commented
May 27, 2017
We don't generally have tests clean up after themselves. I suppose exceptions can be made for tests that generate absurdly large files or that mess with file permissions. But generally, we don't do it because it's the responsibility of the test using If there's some sort of subtlety with file watchers that makes cleaning up the file a Good Thing, then sure. I'm not aware of that, though, so you'll have to point me in the right direction to get me on board. :-D |
refack
commented
May 27, 2017
On windows when there is a subdirectory in the Error: ENOTEMPTY: directory not empty, rmdir 'D:\code\node-cur\test\tmp' at Object.fs.rmdirSync (fs.js:856:18) at rmdirSync (D:\code\node-cur\test\common\index.js:152:10) at rimrafSync (D:\code\node-cur\test\common\index.js:122:7) at Object.exports.refreshTmpDir (D:\code\node-cur\test\common\index.js:158:3) at Object.<anonymous> (D:\code\node-cur\test\parallel\test-fs-watchfile.js:39:8) |
richardlau
commented
May 27, 2017
Odd, Line 136 in fccc0bf |
Trott
commented
May 27, 2017
And I've never seen this Windows issue on CI. And no one has ever reported it except @refack as far as I know. I'm sure it's happening, but I suspect the cause is something specific and/or peculiar... |
refack
commented
May 27, 2017
Ya'll are right. I put a trace on, and found It's a local process ( |
Removed calls to |
refack
commented
May 30, 2017
Found to be unnecessary. |
cleanup before and after test-fs-watchfile
Maybe fix: #13248
Maybe fix: #13377
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test,fs