Flaky: NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly

Đang mở
#259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, testing-qa
Lĩnh vực
testing

Hướng nghiên cứu

Start with NetworkFailureRecorderLiveTest.chrome_cdp_recordsFailedRequestsOnly and the recorder it drives, which assembles method and URL from CDP events; the failure is that requestWillBeSent can arrive after the response, so the fallback defaults get recorded. Run the test in a loop to reproduce the roughly 1-in-5 failure. Done when the method and URL survive out-of-order events, or the test waits for both events, and it passes 20 out of 20 runs locally.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Fails about 1 run in 5 locally on unmodified master (2a07bba), with Chrome reporting CDP 157 while Selenium tops out at 156.

When it fails, the /fail request (a POST in the page) is recorded as GET ... 500, and a GET (unknown) 0 net::ERR_CONNECTION_REFUSED entry has no URL, so the method and URL assertions miss:

[GET http://127.0.0.1:<port>/fail 500 null, GET (unknown) 0 net::ERR_CONNECTION_REFUSED, GET http://127.0.0.1:<port>/missing 404 null]

This looks like CDP events for the same request arriving out of order (the response before requestWillBeSent), so the recorder falls back to defaults. Found while verifying #254, which doesn't touch tracing.

Done when: the recorder keeps the method and URL when events arrive out of order, or the test waits for the events properly, and the test passes 20/20 locally.

Ngôn ngữ chính
Java
Star
12
Fork
6
Merge trung bình
10 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của seleniumboot/selenium-boot

Tất cả issue của seleniumboot/selenium-boot

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.