Run shared transport behavior tests on every platform

Đang mở
#1,917 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

@bghgary đang làm issue này rồi.

Từ ngày 4/11/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
testing

Hướng nghiên cứu

Start with Tests/UrlRequestErrorReporting.cpp in the UrlLib repository and locate the SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL macro definition plus each of the six tests it guards. Split each test so the shared checks (failure status, response state, request reuse, cancellation timeout) run everywhere while only error-symbol/error-code assertions stay behind the platform guard, paying attention to MissingAppResourceReportsError being Apple-only. Then grep the test suite for remaining platform guards repeating the same pattern. Done means the shared assertions execute on Windows and the suite still passes on the other backends.

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

Mô tả

[Filed by Copilot on behalf of @bghgary]

Several existing transport tests skip entire platforms rather than only assertions tied to platform-specific diagnostics.

In UrlRequestErrorReporting.cpp, SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL skips six tests entirely on Windows. This suppresses shared status, reuse, and cancellation checks along with diagnostic assertions. For example, AbortInterruptsInFlightRequest never checks whether cancellation completes within its timeout on Windows. MissingAppResourceReportsError is separately Apple-only.

Please separate shared behavior checks from backend-specific diagnostic expectations:

  • Run failure-status, response-state, request-reuse, and cancellation checks on every supported backend.
  • Keep platform-specific error-symbol and error-code assertions separate, so unsupported diagnostics do not suppress shared checks.
  • Audit the remaining platform guards for the same pattern.

These exclusions predate the response-body fixes in PR #38; this issue tracks the broader existing coverage gap.

Ngôn ngữ chính
C++
Star
931
Fork
169
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
66

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 BabylonJS/BabylonNative

Tất cả issue của BabylonJS/BabylonNative

Issue tương tự

Thêm issue về C++

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.