Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Flaky test: test_polling_backoff_recovery_and_revoked_token times out on Windows CI

Abierto Apto para principiantes
#420 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
testing-qa

Línea de trabajo

Empieza con tests/channels/test_telegram.py::test_polling_backoff_recovery_and_revoked_token, especialmente con asyncio.wait_for(ch.run(), 5) en la línea 524, y lee cómo la prueba simula las respuestas de polling y se detiene al recibir el token revocado. Ejecuta esta prueba y comprueba que finaliza de forma fiable en Windows CI sin depender de la repetición de la prueba, que es inestable.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: channels bug flaky

tests/channels/test_telegram.py::test_polling_backoff_recovery_and_revoked_token failed once on Windows CI and passed on a re-run of the same commit.

Where: PR #410, run 39010233496 attempt 1, Engine tests (windows-latest): 1 failed, 2464 passed in 28:49.

What failed: await asyncio.wait_for(ch.run(), 5) (test_telegram.py line 524) hit its 5 second limit: TimeoutError, with the inner task cancelled while it waited on an aiosqlite commit().

Likely cause: the test gives the whole polling loop (six scripted getUpdates replies, four backoffs with a fake sleep, a dispatched update and the revoked-token stop) 5 seconds of wall-clock time. On the Windows runner with -n auto every worker is busy; the same run shows fixture setups of 15 to 24 seconds (test_start_reconnects_saved_channel setup 15.4 s), so 5 seconds for many SQLite commits is not enough there. The logic did not fail; the clock did.

Possible fix: wait on the loop's own end (it stops on the 401) with a generous limit, e.g. 30 s, or drive it step by step instead of a wall-clock budget.

Until fixed it is marked @pytest.mark.flaky(reruns=2), and CI's rerun summary lists it whenever it needs a rerun.

Lenguaje dominante
Python
Estrellas
702
Forks
113
Merge medio
5 h 7 min
PR fusionados (30 d)
160

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de existence-master/Sentient

Todos los issues de existence-master/Sentient

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.