Automattic / Automattic/wp-codebox
Add an exact transport fault proxy provider
- Ngôn ngữ chính
- TypeScript
- Star
- 17
- Fork
- 4
- Merge trung bình
- 59 phút
- Pull request đã merge (30 ngày)
- 131
Mô tả
## Problem
Playwright routing can exactly substitute payloads, delay requests, and remap hosts, but it cannot control HTTP framing or sockets. Treating shortened complete responses as disconnects would mislabel fidelity.
## Scope
- Implement a loopback-only disposable proxy provider for the generic `transport-fault-model/v1` contract.
- Support malformed/chunked framing, bandwidth pacing, connection refusal/reset, half-close, disconnect-after-N-bytes, DNS/host remapping, and request/response byte corruption.
- Preserve deterministic stateful sequences and counters across browser and server-side clients.
- Emit bounded redacted request/fault/response evidence.
- Negotiate each semantic as exact, emulated, or unsupported per backend.
- Guarantee proxy teardown after completion, cancellation, timeout, and provider errors.
## Acceptance criteria
- Protocol-level integration tests distinguish payload truncation from a true mid-stream disconnect.
- Browser and server-side clients consume the same fault declaration and replay schedule.
- Undeclared external hosts remain denied and the proxy cannot address arbitrary host services.
Refs #2014
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách xác định contract generic transport-fault-model/v1 và phần tích hợp routing của Playwright, sau đó xem xét cách các client phía trình duyệt và phía máy chủ chia sẻ các khai báo lỗi và trạng thái replay. Xác thực provider bằng các bài kiểm thử tích hợp ở cấp giao thức, bao quát việc ngắt kết nối thực sự giữa stream, từ chối host, replay xác định, bằng chứng có giới hạn và teardown sau mọi đường dẫn hoàn tất hoặc lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- playwright, typescript
- Lĩnh vực
- networking, security, testing
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100