urtest: test_h3_python_client reads the access log before all entries are written
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 90/100
Hướng nghiên cứu
Bắt đầu tại tests/uranium_tests/h3/test_h3_python_client.py và kiểm tra cách wait_for_file_lines đối chiếu các dòng trong access log. Đặt mục tiêu chờ là các mục py-get-empty và py-put-large mà các assertion kiểm tra; hoàn tất khi bài kiểm thử chờ cả hai mục và các assertion đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 2k
- Fork
- 903
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 135
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/trafficserver
-
UnixNetVConnection::do_io_write with a null reader leaves the previous reader in the write VIOCó thể đã có người làm @NginxL đã nhận hôm nay. Đang mởBug Good First Issue IOBuffer Network
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/trafficserver#14220 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
MallocAllocator does not check for allocation failureCó thể đã có người làm @umrndem đã nhận hôm nay. Đang mởBug Core Good First Issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/trafficserver#14218 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
THREAD_ALLOC dereferences a null thread while THREAD_FREE falls back to the global allocatorĐang mởBug Event System Threads
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/trafficserver#14217 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
TSContScheduleEveryOnPool and TSContScheduleEveryOnThread accept a zero or negative periodCó thể đã có người làm @rajeetvk đã nhận 1 ngày trước. Đang mởBug Event System Good First Issue TS API
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/trafficserver#14214 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
HostDBContinuation::init memsets a polymorphic ActionCó thể đã có người làm @ANMOLSCRIPT đã nhận hôm nay. Đang mởBug Good First Issue HostDB
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/trafficserver#14204 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của apache/trafficserver
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug compatibility difficulty:easy prio:normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NatronGitHub/openfx-misc#524 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[内容提案] 现在C++模块的CMake支持有更新,需要进行同步Đang mởdocumentation enhancement help wanted P0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openscad/openscad#7360 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày