urtest: test_h3_python_client reads the access log before all entries are written
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
Línea de trabajo
Empieza en tests/uranium_tests/h3/test_h3_python_client.py y comprueba cómo wait_for_file_lines hace coincidir las líneas del registro de acceso. Haz que la espera tenga como objetivo las entradas py-get-empty y py-put-large que comprueban las aserciones; el trabajo estará terminado cuando la prueba espere ambas entradas y las aserciones pasen.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
tests/uranium_tests/h3/test_h3_python_client.py waits for any two c_alpn=h3 access-log lines, then asserts that the log contains the py-get-empty and py-put-large entries:
content = wait_for_file_lines(_ats.log_directory / "h3_python_access.log", r"c_alpn=h3", 2)
assert re.search(r"... c_method=GET c_url=https://py\.example\.com:[0-9]+/py-get-empty", content)
assert re.search(r"... c_method=PUT c_url=https://py\.example\.com:[0-9]+/py-put-large", content)
Since #13891 set proxy.config.log.max_secs_per_buffer and proxy.config.log.periodic_tasks_interval to 1 s, the access log reaches disk in several small writes. The wait can return after a write that holds py-get-empty but not yet py-put-large, and the second assertion fails:
AssertionError: assert None
+ where None = re.search('c_alpn=h3 client_version=http/3 c_method=PUT c_url=https://py\\.example\\.com:[0-9]+/py-put-large',
'c_alpn=h3 ... c_method=GET c_url=https://py.example.com:10009/py-get-empty\n
c_alpn=h3 ... /py-get-large\n
c_alpn=h3 ... c_method=POST c_url=https://py.example.com:10009/py-post-large\n')
In a Fedora 44 container (ci-fedora-urtest) it fails 4 of 5 runs in isolation. Without #13891, the 5 s flush writes every entry at once and the test passed 5 of 5.
Waiting for the two entries the test checks, rather than any two, fixes it: it passed 8 of 8 runs with no added runtime.
- content = wait_for_file_lines(_ats.log_directory / "h3_python_access.log", r"c_alpn=h3", 2)
+ content = wait_for_file_lines(_ats.log_directory / "h3_python_access.log", r"c_alpn=h3 .*/py-(get-empty|put-large)$", 2)
This affects master and 10.2.x, which has #13891 for the 10.2.2 release.
- Lenguaje dominante
- C++
- Estrellas
- 2k
- Forks
- 903
- Merge medio
- 4 d 4 h
- PR fusionados (30 d)
- 135
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/trafficserver
-
UnixNetVConnection::do_io_write with a null reader leaves the previous reader in the write VIOPosiblemente ocupada @NginxL la tomó hoy. AbiertoBug Good First Issue IOBuffer Network
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/trafficserver#14220 ·
Los mantenedores suelen responder en 2 días
-
MallocAllocator does not check for allocation failurePosiblemente ocupada @umrndem la tomó hoy. AbiertoBug Core Good First Issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/trafficserver#14218 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
THREAD_ALLOC dereferences a null thread while THREAD_FREE falls back to the global allocatorAbiertoBug Event System Threads
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/trafficserver#14217 ·
Los mantenedores suelen responder en 2 días
-
TSContScheduleEveryOnPool and TSContScheduleEveryOnThread accept a zero or negative periodPosiblemente ocupada @rajeetvk la tomó hace 1 día. AbiertoBug Event System Good First Issue TS API
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
apache/trafficserver#14214 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
HostDBContinuation::init memsets a polymorphic ActionPosiblemente ocupada @ANMOLSCRIPT la tomó hoy. AbiertoBug Good First Issue HostDB
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
apache/trafficserver#14204 · 1 comentario ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/trafficserver
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 2 días
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Los mantenedores suelen responder en 1 día
-
bug compatibility difficulty:easy prio:normal
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
NatronGitHub/openfx-misc#524 ·
Los mantenedores suelen responder en 1 día
-
[内容提案] 现在C++模块的CMake支持有更新,需要进行同步Abiertodocumentation enhancement help wanted P0
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openscad/openscad#7360 · 2 comentarios ·
Los mantenedores suelen responder en 1 día