Ping test fails because of Windows time precision
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- testing-qa
Direzione di ricerca
Inizia con il test del ping in test/suites/test_dml.py intorno alle righe 145-150 e consulta PR #213 per il contesto di Windows CI. Verifica come il test misura e asserisce il risultato del ping, quindi determina la precisione documentata di Windows e il comportamento del test necessario per ottenere un risultato affidabile. Il lavoro è completato quando il test del ping non fallisce più a causa della precisione dell’orologio di Windows e le relative aspettative di precisione sono documentate, se applicabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 108
- Fork
- 51
- Merge medio
- 1g 8h
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tarantool/tarantool-python
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
tarantool/tarantool-python#325 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
tarantool/tarantool-python#340 ·
-
`load_schema` race Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
tarantool/tarantool-python#333 ·
-
3sp feature teamE
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
tarantool/tarantool-python#309 · 1 commento ·
-
customer Database API
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
tarantool/tarantool-python#307 · 1 commento ·
Tutte le issue di tarantool/tarantool-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·