-
Notifications
You must be signed in to change notification settings - Fork 701
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
Fix overly long mtime change delay calibration with HFS+. #4231
base: master
Are you sure you want to change the base?
Fix overly long mtime change delay calibration with HFS+. #4231
Conversation
What's the testing plan for this? Can we mock file system time interface? What happens if the resolution is 0.999s? |
I can do this, but seems more trouble than it's worth. Maybe just ask @gracjan to test on his system?
We can change the check to |
Legacy code is code without an automated test suite ;) But, we do have Mac OS X CI setup, so we could just test to make sure the calibration time doesn't take a wacky amount of time. Isn't that a more reasonable metric? We don't want to spend too much time calibrating, so use that as the stopping point? |
OK, will do. |
BTW, this is well worth solving; I bet we are chewing up a decent amount of time in our Mac OS X CI recalibrating here! |
Added a test. |
fc96286
to
d62d7c1
Compare
ac7a079
to
05aaaa5
Compare
Increasing the epsilon to 0.1 s seems to do the trick... will now try @gracjan's suggestion. |
Still failing Travis on OS X, it's real. |
The list of
With bail-out after first measurement that gives 1s or more the list will be I'd like to make clear that '@gracjan's suggestion' is to measure file system resolution not clock resolution and that should take on average 0.5s on 1s resolution filesystem. |
05aaaa5
to
9752f24
Compare
Remilestoned. |
Marking this PR as draft 🙂 |
Fixes #4230.