You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ping test fails because of Windows time precision #214
See #213 PR. The issue is as follows: ping test started to fail (in ~70% cases) after I migrated Windows CI from Appveyor to GitHub Actions. As a part of this migration, the test Tarantool instance was changed from an instance started on a remote Linux server to an instance started on the same Windows server under WSL. Thus, request time has shortened and it supposedly caused the ping test to fail.
For Linux and Mac precision is +- 1 microsecond or 0.001 milliseconds. Python on Windows uses +- 16 milliseconds precision due to clock implementation problems due to process interrupts.
Assuming that ping requests between the same server services can easily be under 1 ms, it caused the test to fail.
I see two ways to "solve" this issue:
Rework the test, document ping return value precision on Windows.
Rework time measurement to be more precise on Windows.
The second approach is more time-consuming and I'm not sure there are any users that really need this to be fixed. So I think it should be the first one until someone interested in the second one appears.
Rework the test, document ping return value precision on Windows.
Rework time measurement to be more precise on Windows.
The second approach is more time-consuming and I'm not sure there are any users that really need this to be fixed. So I think it should be the first one until someone interested in the second one appears.
Activity
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
test: skip flaky ping test on Windows
Totktonada commentedon Apr 4, 2022
I agree. Let's adjust the test.
test: fix ping test on windows
test: fix ping test on windows