Skip to content

ci/spelling: Use hermetic hunspell - #48894

Merged
phlax merged 3 commits into
envoyproxy:mainfrom
phlax:bazel-spelling
Nov 3, 2026
Merged

phlax merged 3 commits into
envoyproxy:mainfrom
phlax:bazel-spelling

Conversation

@phlax

@phlax phlax commented Oct 31, 2026

Copy link
Copy Markdown
Member

No description provided.

@phlax
phlax marked this pull request as draft October 31, 2026 22:08
@phlax
phlax force-pushed the bazel-spelling branch 3 times, most recently from 2964928 to 26697da Compare November 1, 2026 15:37
@phlax
phlax requested a balanced review from Copilot November 1, 2026 16:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved error-ordering defects can corrupt spelling fixes, while unconditional Hunspell dependencies break the documented Bazel-based spelling workflow on native macOS.

3 open issues
What changed in this PR

This PR migrates Envoy’s spelling checks from host-installed Aspell to a Bazel-managed Hunspell toolchain, aiming to make local and CI checks reproducible.

Changes:

  • Registers Hunspell toolchains and packages the executable and dictionaries for the spelling target.
  • Adapts the Python checker for Hunspell, including token filtering, CamelCase handling, and debug timing.
  • Updates setup documentation and removes explicit Aspell installation requirements.
File Description
tools/​spelling/​defs.bzl Exposes Hunspell executable, dictionaries, and runtime files.
tools/​spelling/​check_spelling_pedantic.py Migrates the checker to Hunspell and adjusts text processing.
tools/​spelling/​BUILD Wires hermetic dependencies and patches dictionary apostrophe handling.
MODULE.bazel.lock Updates the Hunspell extension usage digest.
MODULE.bazel Registers the Hunspell toolchain.
mobile/​MODULE.bazel.lock Refreshes the mobile workspace’s extension digest.
docs/​MODULE.bazel.lock Refreshes the docs workspace’s extension digest.
bazel/​tests/​external/​MODULE.bazel.lock Refreshes the external test workspace’s extension digest.
bazel/​tests/​codeql/​MODULE.bazel.lock Refreshes the CodeQL workspace’s extension digest.
bazel/​README.md Documents Hunspell usage and removes Aspell prerequisites.
.gitignore Ignores the generated Hunspell personal dictionary.
.github/​workflows/​_precheck_format.yml Removes the Aspell requirement from a comment.
.devcontainer/​Dockerfile.in Removes explicit Aspell installation.

Review effort: Balanced

Comment thread tools/spelling/BUILD Resolved
@phlax
phlax force-pushed the bazel-spelling branch 2 times, most recently from 8b166d9 to 77e2dc4 Compare November 1, 2026 18:37
@phlax
phlax requested a balanced review from Copilot November 1, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The unconditional Hunspell toolchain requirement breaks the documented macOS workflow, while non-ASCII filtering produces bogus spelling errors and regression assertions fail to verify excluded tokens.

3 open issues
2 resolved since last review

Review effort: Balanced

@phlax
phlax force-pushed the bazel-spelling branch 2 times, most recently from e14c9b6 to ecd5e88 Compare November 1, 2026 19:09
@phlax
phlax requested a balanced review from Copilot November 1, 2026 19:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Changes to dictionary semantics, tokenization, and cross-platform execution require full-corpus validation with the actual Hunspell binary and testing of the macOS source-built fallback.

1 open issue
2 resolved since last review

Review effort: Balanced

@phlax phlax changed the title [WIP] ci/spelling: Use hermetic hunspell ci/spelling: Use hermetic hunspell Nov 1, 2026
@phlax
phlax marked this pull request as ready for review November 1, 2026 19:25
Comment thread tools/spelling/BUILD
Comment on lines +7 to +13
hunspell_runtime(name = "hunspell_runtime")

hunspell_bin(name = "hunspell_bin")

hunspell_dic(name = "hunspell_dic")

hunspell_aff(name = "hunspell_aff")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prebuilt hunspell toolchains only register linux_x86_64/linux_aarch64 exec platforms, and these rules declare the toolchain as mandatory. On macOS (and other non-Linux exec platforms), bazel run //tools/spelling:check_spelling_pedantic, tools/local_fix_format.sh and bazel build //tools/... / //... now fail at analysis with "No matching toolchains found". Before this, brew install aspell was enough, and this PR also drops that from the macOS instructions in bazel/README.md.

Could the toolchain be made optional (config_common.toolchain_type(HUNSPELL_TOOLCHAIN_TYPE, mandatory = False)), with a fallback to hunspell on PATH when it's absent, since the script already supports that? Alternatively, add target_compatible_with = ["@platforms//os:linux"] so these targets are skipped rather than breaking //.... In either case, the macOS docs could mention brew install hunspell plus an en_US dictionary.

A related nit: the binary is resolved for the exec platform but run on the host via bazel run, so a remote build whose exec platform differs from the host (for example x86_64 RBE from an arm64 host) would stage the wrong-architecture binary.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is not correct - at least afaiaa - this handles both macos and other arch linux in current toolshed version

not sure about x-compile - but not sure that is a priority for the spellcheck

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be concrete about the fallback: envoy_toolshed 0.5.16+ (this PR pins 0.5.17) registers //hunspell/source:source_toolchain_linux and source_toolchain_macos after the prebuilt hub, non-dev, so consumers without a prebuilt (macOS, Linux CPUs other than x86_64/aarch64) fetch and build hunspell 1.7.6 plus the SCOWL dictionary from source at analysis time; //... and bazel run //tools/spelling:check_spelling_pedantic resolve on macOS (envoyproxy/toolshed#5563 builds it there in CI). Only exec platforms without POSIX (Windows) have no toolchain, same as before for aspell.

The exec-vs-host point is real for bazel run with a remote exec platform that differs from the host; the format check runs locally in CI and for devs, so I'd take that as a follow-up rather than block on it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(bot reply ^^)

# sequences: aspell's URL filter skipped these, hunspell has no equivalent. A dot only counts
# between name parts (example.com, stat name templates like vhost.<name>.vcluster.[<cluster>.]),
# so sentence punctuation (`woork.)`, `woork...`) does not hide a word from the check.
URL_LIKE = re.compile(r'\S*(?:://|@|/|\\|[A-Za-z0-9_\-\]>)*]\.[A-Za-z0-9_\[<(*])\S*')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A single dot between two name characters is enough to mask the whole token, and the leading \S* widens the masked span to anything joined to it by punctuation. That hides typos aspell used to report (its URL filter needed /, @ or two interior dots):

  • end of sentense.Next one → sentense.Next masked
  • speling,e.g. foo → speling,e.g. masked

Maybe anchor at a whitespace boundary instead of \S* (e.g. (?<!\S)[^\s,;:(]*), and require either two dot-separated parts or a lowercase character after the dot, so sentence.Next isn't treated as a host name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, both of those were hidden. Changed: a whitespace-delimited token is skipped only when it contains a URL/path/email/escape marker (://, @, /, \\); a dotted name is skipped only where the part after a dot starts lower case or with a bracket (example.com, foo.cc, obj.method, e.g., vhost....), or has at least two dots, and it is bounded by non-name characters, so sentense.Next and speling,e.g. now report sentense and speling. Both are in the punctuation fixture with exact-match assertions. Over the whole tree the narrower mask surfaced one real typo in a test fixture (audobook) and one product name for the dictionary (valkey).

@phlax
phlax requested review from botengyao and tyxia as code owners November 3, 2026 10:36
phlax added a commit that referenced this pull request Nov 12, 2026
With git (#48874), jq and hunspell (#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.38` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.38` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.37` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.
The `mcp_json_rest_bridge` test is not on this branch, and of the dictionary
additions only `valkey` is used here.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.38` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.37` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.
The `mcp_json_rest_bridge` test is not on this branch, and of the dictionary
additions only `valkey` is used here.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.38` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.37` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.
The `mcp_json_rest_bridge` test is not on this branch, and of the dictionary
additions only `valkey` is used here.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.37` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.
The `mcp_json_rest_bridge` test is not on this branch, and of the dictionary
additions only `valkey` is used here.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
Backport note: `release/v1.39` does not use bzlmod, so the toolchains are set up
and registered in `bazel/repositories_extra.bzl` (`setup_hunspell`,
`load_hunspell_toolchains`) and the `MODULE.bazel` and lockfile changes are
dropped, as is the `.github/workflows` change: CI runs `main`'s workflows.

(cherry picked from commit 80a5af5)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 19, 2026
With git (envoyproxy#48874), jq and hunspell (envoyproxy#48894) now hermetic, CI no longer
needs the devtools build image. ci/run_envoy_docker.sh now uses the
minimal ci image whenever it runs under GitHub Actions, rather than only
for jobs that set docker-ci.

Jobs that still need devtools opt in with the new devtools workflow
input (ENVOY_DOCKER_DEVTOOLS). For now that is only mobile docs
publishing, whose publish.sh runs host git outside do_ci.sh. Local and
devcontainer use keeps devtools. The selection lives in each branch's
script, so release branches, which run main's workflows, keep their
existing behaviour.

Backport note: only the `ci/run_envoy_docker.sh` change is picked. CI runs
`main`'s workflows, so the `.github/workflows` changes are dropped. The
spelling check (hunspell) and the GCC toolchain are hermetic on this branch as
of this stack; git comes from the `ci` image, which has it.

(cherry picked from commit 0545bf5)
Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants