Uh oh!
There was an error while loading. Please reload this page.
test: change test limit for atime from 2ms to 5ms - #30437
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Trott
commented
Nov 12, 2019
I'm concerned that this change masks an actual bug. What's the reason to believe it doesn't? |
addaleax
commented
Nov 12, 2019
@Trott I think there are two changes which got mixed together here… As for increasing the timeout, I’m okay because the test is just inherently flaky the way it’s written and we can’t really do anything about that. |
Trott
commented
Nov 12, 2019
@addaleax Flaky due to rounding errors, or something else? |
addaleax
commented
Nov 12, 2019
@Trott It’s flaky because the stat calls for the regular version and the bigint version are made at different times, and so they leave a window for stat data changing in between, or at least that’s my understanding of where this comes from |
duncanhealy
commented
Nov 12, 2019
lstat running twice first with {bigint:true} passed as parameter, on this test I was constistently getting 4ms difference for atime
Could we change the nested call instead? L135-139 test-fs-stat-bigint.js |
Trott
commented
Nov 12, 2019
Sounds good to me. Thanks! Maybe a comment explaining that would be useful. /ping @nodejs/testing |
nodejs-github-bot
commented
Nov 30, 2019
addaleax
commented
Nov 30, 2019
@duncanhealy Could you rebase this against the |
Trott
commented
Nov 30, 2019
Subsystem should be |
891ced4 to
499e4f2Compareduncanhealy
commented
Nov 30, 2019
changes squashed |
Uh oh!
There was an error while loading. Please reload this page.
Trott
commented
Feb 7, 2020
The test does not seem to be failing anymore, so I'm going to close this. Feel free to re-open if you think that's the wrong thing to do and this should land regardless. I'm not acting on a strong opinion. I'm just doing a little tidying up. Thanks! |
Stress test on FreeBSD shows this is still A Thing. Re-opening. |
lundibundi
commented
Feb 9, 2020
@Trott this actually fails for me locally on Arch Linux every now and then (the 2ms), so I'd be in favor of merging this unless we find a better solution. |
This comment has been minimized.
This comment has been minimized.
Trott
commented
Feb 9, 2020
I think if we update the comment and move the |
c1f6a81 to
ac23f40CompareTrott
commented
Feb 9, 2020
I addressed the nits, updated the commit message, and pushed the changes to the PR branch. |
This comment has been minimized.
This comment has been minimized.
Trott
commented
Feb 9, 2020
@lundibundi Do the changes I made just now look good to you? If so, feel free to add the |
Change test limit for atime from 2ms to 5ms. Add comment explaining why the wiggle room is needed. Fixes: nodejs#24593
ac23f40 to
daad06eComparenodejs-github-bot
commented
Feb 9, 2020
Trott
commented
Feb 11, 2020
So, this doesn't fully fix the test, but it fixes the issue with times being off. There's still an issue with the block count being wrong, somehow, but I'll open a separate issue for that after this lands. |
Trott
commented
Feb 11, 2020
Landed in 5b0308c...fb437c4 |
Change test limit for atime from 2ms to 5ms. Add comment explaining why the wiggle room is needed. Fixes: nodejs#24593 PR-URL: nodejs#30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: nodejs#30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #30437 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
doc: change test limit for atime from 2ms to 5ms
fixes#24593
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes