Clarify the envoy ↔ examples version/publish cycle and break-recovery runbook

未关闭
#1,640 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, docker
领域
ci-cd, devops

调研方向

Start with MODULE.bazel and the examples CI configuration that sets ENVOY_VARIANT; inspect the current Envoy module pin and runtime image tag. Choose and document a released Envoy version, update both references to agree, then run the examples CI to confirm it builds against that release. The issue describes the intended publish and break-recovery cycle for documenting any needed guidance.

由索引模型根据 Issue 内容生成。

描述

The cycle

The examples repo and envoy are in a module-publish cycle:

  • envoy-examples (this repo) bazel_deps on envoy — a published envoy module version — to build filter-cc / wasm-cc against the ABI.
  • envoy's docs module envoy-docs (docs/MODULE.bazel) bazel_deps on envoy-examples (a released version) and overrides it to the local examples checkout in CI.

So publish order is tangled — envoy-docs → envoy-examples → envoy, and envoy-docs lives in envoy. Historically this was worked around by publishing an interim envoy mod, then examples, then pointing docs at it, which is error-prone.

Agreed approach (MO)

Each side deliberately tests a different envoy — complementary, not redundant:

  • examples pins and tests the last published (released) envoy. The envoy dep in MODULE.bazel is bumped only when there's a specific reason. This verifies what examples actually ships, and decouples publishing (the depended-on envoy always already exists in the registry).
  • examples' own CI runs the examples against the released envoy image — ENVOY_VARIANT (shared/envoy is FROM ${ENVOY_IMAGE}:${ENVOY_VARIANT}) points at a released tag, not :dev. Today everything defaults to dev, so examples are only ever tested against last-commit, never against the version they claim to support.
  • envoy keeps testing its own HEAD × current examples via verify_examples (local override). This is advisory — it gates by going red, not by blocking PRs (the suite flakes), and that signal is good enough. It's the "did envoy dev just break an example" canary, and it belongs on the envoy side.

What to do when something breaks

envoy HEAD breaks an example (advisory red in envoy verify_examples):

  • Fix the example here; envoy's verify picks it up via the local override automatically.
  • Only publish an interim examples mod if the fix must exist as a registry version before the normal publish cadence (e.g. for a release).
  • If an example is chronically unstable against envoy dev, disable it (precedent: oauth repeatedly broke; mcp was disabled).

examples needs a newer envoy (new feature / deliberate move):

  • Bump the envoy dep in MODULE.bazel (and the runtime image) to the needed published version, noting the reason.
  • If that envoy isn't released yet, this is the interim-envoy path — publish envoy first, then examples.

Notes

  • Dependabot can't bump the envoy bazel pin (it dies on the custom envoy bazel-registry), so it's manual.
  • The docs build must use --override_repository (not --override_module) for the example modules — bazel 9.3.2 rejects the latter (see #1635).

Changes to adopt this

  • MODULE.bazel: envoy dep from dev snapshot → last released envoy.
  • examples CI: point ENVOY_VARIANT at a released tag instead of :dev.
  • Decide the canonical released tag/version and keep the module pin and runtime image in agreement.

(bot assisted)

主要语言
Shell
星标
75
派生
39
平均合并
1 天 9 小时
30 天内合并 PR
31

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

envoyproxy/examples 的其他 Issue

查看 envoyproxy/examples 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。