-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
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