Uh oh!
There was an error while loading. Please reload this page.
test: refactor test-fs-watch - #4776
Conversation
* Exchange 20 millisecond timers for setImmediate(). * Do not attempt to unlink path that will have been guaranteed to be removed by `common.refreshTmpDir()` * Do not swallow errors thrown by failed creation of needed test subdirectory. If that happens, we want to know about it. * Use `common.isSunOS` in one place where it is applicable
Trott
commented
Jan 20, 2016
CI: https://ci.nodejs.org/job/node-test-pull-request/1312/ I started looking at the test because it timed out on FreeBSD in a CI run with an unrelated change. If nothing else, this change does eliminate some error-swallowing which might mean we get more info if it fails again. |
evanlucas
commented
Jan 20, 2016
This is a test I see fail pretty regularly locally. Pulled down the changes and haven't seen a fail yet. Awesome job @Trott!!! LGTM if CI is happy |
santigimeno
commented
Jan 20, 2016
This is great! Without this patch the test is failing in my One question: does this mean a timer ( Probably the same fix could be applied for #4629 and other |
cjihrig
commented
Jan 20, 2016
LGTM. Maybe run the CI again though. |
Trott
commented
Jan 20, 2016
@santigimeno A @cjihrig While all the CI failures are build failures unrelated to the test, I sure do like green, so let's try again: |
Trott
commented
Jan 20, 2016
CI is green. \o/ |
santigimeno
commented
Jan 20, 2016
@Trott I see, thanks for the info. |
Trott
commented
Jan 20, 2016
Can you confirm that it's the |
santigimeno
commented
Jan 21, 2016
@Trott I can confirm that in a
|
Trott
commented
Jan 21, 2016
@santigimeno And the failure is that the test hangs/times out? Or is there an assertion error or something? |
Trott
commented
Jan 21, 2016
@santigimeno If it helps clarify things, The problem with this theory is that I haven't located the asynchronous code in |
Trott
commented
Jan 21, 2016
@santigimeno Oh, wait, yeah, you identify the delay/asynchronous issue in #4629. Seems at least plausible to me. |
* Exchange 20 millisecond timers for setImmediate(). * Do not attempt to unlink path that will have been guaranteed to be removed by `common.refreshTmpDir()` * Do not swallow errors thrown by failed creation of needed test subdirectory. If that happens, we want to know about it. * Use `common.isSunOS` in one place where it is applicable PR-URL: nodejs#4776 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
Trott
commented
Jan 21, 2016
Landed in d26b014 |
santigimeno
commented
Jan 21, 2016
@Trott The failure was indeed a timeout. |
santigimeno
commented
Jan 22, 2016
I've got this error on Something interesting is that when this test failed, in the same run also failed |
Trott
commented
Jan 22, 2016
@santigimeno That's odd. Perhaps it might be a good idea to isolate the three tests in |
jasnell
commented
Jan 23, 2016
@Trott ... see any pressing need to backport this to LTS? |
Trott
commented
Jan 23, 2016
@jasnell Pressing need? No. But it if the commit merges cleanly, it's probably better to have it in LTS than not. |
jasnell
commented
Jan 23, 2016
+1... watch label added |
* Exchange 20 millisecond timers for setImmediate(). * Do not attempt to unlink path that will have been guaranteed to be removed by `common.refreshTmpDir()` * Do not swallow errors thrown by failed creation of needed test subdirectory. If that happens, we want to know about it. * Use `common.isSunOS` in one place where it is applicable PR-URL: #4776 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
* Exchange 20 millisecond timers for setImmediate(). * Do not attempt to unlink path that will have been guaranteed to be removed by `common.refreshTmpDir()` * Do not swallow errors thrown by failed creation of needed test subdirectory. If that happens, we want to know about it. * Use `common.isSunOS` in one place where it is applicable PR-URL: #4776 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
* Exchange 20 millisecond timers for setImmediate(). * Do not attempt to unlink path that will have been guaranteed to be removed by `common.refreshTmpDir()` * Do not swallow errors thrown by failed creation of needed test subdirectory. If that happens, we want to know about it. * Use `common.isSunOS` in one place where it is applicable PR-URL: nodejs#4776 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
setImmediate().removed by
common.refreshTmpDir()subdirectory. If that happens, we want to know about it.
common.isSunOSin one place where it is applicable