Ping test fails because of Windows time precision
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
- 領域
- testing-qa
研究方向
從 test/suites/test_dml.py 中大約第 145-150 行的 ping 測試開始,並查看 PR #213 以了解 Windows CI 的情境。檢查測試如何測量並斷言 ping 結果,然後判定已記錄的 Windows 精度,以及取得可靠結果所需的測試行為。完成的標準是:ping 測試不再因 Windows 時鐘精度而失敗,並且在適用的情況下,其精度預期已被記錄。
由索引模型根據 Issue 內容生成。
描述
See https://github.com/tarantool/tarantool-python/pull/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.
Python documentation declares that
though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second
Particularly, this StackOverflow answer argues that
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.
based on Windows documentation.
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.
- 主要語言
- Python
- 星號
- 108
- 分支
- 50
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
tarantool/tarantool-python 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
tarantool/tarantool-python#325 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
tarantool/tarantool-python#340 ·
-
難度 3/5 1-2 天 新手友好度 48/100
tarantool/tarantool-python#333 ·
-
3sp feature teamE
難度 5/5 一週以上 新手友好度 25/100
tarantool/tarantool-python#309 · 1 則留言 ·
-
Need to fix dbapi implementation可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉customer Database API
難度 1/5 1 小時以內 新手友好度 45/100
tarantool/tarantool-python#307 · 1 則留言 ·
查看 tarantool/tarantool-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
KalicoCrew/kalico#1012 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
esphome/esphome.io#7657 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
VNG-Realisatie/gemma-zaken#2658 ·
-
難度 1/5 1 小時以內 新手友好度 75/100
維護者通常 1 天內回覆
-
comp/gateway comp/plugins duplicate P3 type/bug
難度 2/5 1-3 小時 新手友好度 82/100
NousResearch/hermes-agent#137019 ·
維護者通常 1 天內回覆