urtest: test_h3_python_client reads the access log before all entries are written
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 90/100
Direzione di ricerca
Inizia da tests/uranium_tests/h3/test_h3_python_client.py e verifica come wait_for_file_lines abbina le righe del log di accesso. Fai in modo che l’attesa punti alle voci py-get-empty e py-put-large verificate dalle asserzioni; il lavoro è completato quando il test attende entrambe le voci e le asserzioni passano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 2k
- Fork
- 903
- Merge medio
- 4g 4h
- PR unite (30g)
- 135
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 apache/trafficserver
-
UnixNetVConnection::do_io_write with a null reader leaves the previous reader in the write VIOForse già presa @NginxL l’ha presa oggi. ApertaBug Good First Issue IOBuffer Network
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14220 ·
I maintainer di solito rispondono entro 2 giorni
-
MallocAllocator does not check for allocation failureForse già presa @umrndem l’ha presa oggi. ApertaBug Core Good First Issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14218 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Bug Event System Threads
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/trafficserver#14217 ·
I maintainer di solito rispondono entro 2 giorni
-
TSContScheduleEveryOnPool and TSContScheduleEveryOnThread accept a zero or negative periodForse già presa @rajeetvk l’ha presa 1 giorno fa. ApertaBug Event System Good First Issue TS API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/trafficserver#14214 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
HostDBContinuation::init memsets a polymorphic ActionForse già presa @ANMOLSCRIPT l’ha presa oggi. ApertaBug Good First Issue HostDB
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
apache/trafficserver#14204 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di apache/trafficserver
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 2 giorni
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ClickHouse/clickhouse-cpp#645 ·
I maintainer di solito rispondono entro 1 giorno
-
bug compatibility difficulty:easy prio:normal
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
NatronGitHub/openfx-misc#524 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation enhancement help wanted P0
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openscad/openscad#7360 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno