ai-transcoder sandbox: requirements for resubmission
Maintainer thường phản hồi trong vòng 1 ngày
@phlax đang làm issue này rồi.
Từ ngày 12/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
#1470 (ai-transcoder sandbox) was approved and merged within ~1 minute with no review comments. It has been reverted. The example is not to be fixed forward from the reverted state — it needs to be resubmitted as a new PR that meets the standards of the existing sandboxes, and go through proper review.
This issue tracks what a resubmission must address.
Blockers
1. No run-sandbox.sh
No other sandbox ships an interactive wrapper script. The one in #1470 prompted for secrets, hardcoded ENVOY_VARIANT=dev, duplicated steps 1–2 of the docs, was not exercised by verify.sh or CI, and was shipped into the docs via :download:. The documented docker compose steps are the only supported entry point. Drop it entirely.
2. No hard dependency on third-party services
As submitted, the example required OpenAI, Anthropic and Vertex AI API keys plus a GCP project to do anything at all. The only precedent for a third-party dependency is single-page-app, which runs and is verified end-to-end against a local mock (myhub), and only introduces the real service as an optional, clearly-documented final step that tells the reader exactly how to obtain the credential and what to do with it. As landed, this read as a promo for external AI services rather than a demonstration of Envoy.
Required: local mock upstreams that speak the OpenAI, Anthropic and Gemini wire formats (unary JSON and SSE) with canned responses. The point of the example is Envoy's transcoding, not the model output, so mocks demonstrate it fully and make the output deterministic. This also removes the sed-rewrite of envoy.yaml in docker-compose.yaml, the API-key env plumbing, and the DFP/TLS incidental complexity.
Any real-provider step, if included at all, must be optional and last, following the SPA pattern. Not convinced it is needed.
3. verify.sh must mirror the docs
verify.sh is expected to follow the documented steps more or less 1-2-1. The submitted one bore little resemblance to example.rst, and in CI every provider test was skipped (no keys), so the only thing verified was the local 404 path and a zero-valued transcoder.failed stat on a proxy that never transcoded anything. With mocks, every step can and must be asserted.
4. example.rst must follow sandbox docs conventions
The submitted rst was 417 lines, 8 steps, SDK code samples, a list-table, a "Limitations" section, hardcoded dates/timestamps in sample output, and :lines: ranges into envoy.yaml that silently drift. Rewrite to the shape and length of existing examples, with reproducible output.
Notes
The submission relies on envoyproxy/envoy:dev and the alpha ai_protocol_manager APIs (envoyproxy/envoy#47682, envoyproxy/envoy#47916). Depending on unreleased Envoy is not in itself a blocker — the example will work once Envoy is released — though providing a sandbox for alpha code is not ideal.
Process
- Resubmit as a new PR, not a re-land of the reverted commit.
- Needs actual review before merge.
- Ngôn ngữ chính
- Shell
- Star
- 75
- Fork
- 39
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 envoyproxy/examples
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
envoyproxy/examples#1640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky example tests (tracking)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
envoyproxy/examples#1629 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: Allocate example host ports dynamically instead of the static 1LLBN schemeCó thể làm lại được @phlax đã nhận 49 ngày trước và không có pull request nào đang mở. Đang mởenhancement
envoyproxy/examples#1516 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
envoyproxy/examples#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a `dynamic-mod-rust` example (Rust dynamic module HTTP filter)Có thể làm lại được @phlax đã nhận 65 ngày trước và không có pull request nào đang mở. Đang mởenhancement
envoyproxy/examples#1440 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của envoyproxy/examples
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/gh-aw-firewall#12415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
tldr-pages/tldr#25620 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update README: Sentieon version is now set in the conductor config, not the dxapp.json defaultĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
source:reader type:content-error
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
stephrobert/blog-roadmap#251 ·