cmcfarlen opened a new issue, #13969: URL: https://github.com/apache/trafficserver/issues/13969
`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: ```python 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. ```diff - 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
