test: change test limit for atime from 2ms to 5ms#30437
Conversation
|
I'm concerned that this change masks an actual bug. What's the reason to believe it doesn't? |
|
@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. |
@addaleax Flaky due to rounding errors, or something else? |
|
@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 |
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 |
Sounds good to me. Thanks! Maybe a comment explaining that would be useful. /ping @nodejs/testing |
|
@duncanhealy Could you rebase this against the |
|
Subsystem should be |
891ced4 to
499e4f2
Compare
changes squashed |
|
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. |
|
@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.
|
I think if we update the comment and move the |
c1f6a81 to
ac23f40
Compare
|
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.
|
@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
daad06e
Compare
|
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. |
|
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