Repository navigation
ci: Use hermetic git toolchain - #48874
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The Git toolchain registration supports only Linux, causing macOS proto-format checks and the pre-push hook to fail toolchain resolution without a macOS implementation or host-Git fallback.
1 open issue
What changed in this PR
This PR moves Envoy’s CI and proto-format tooling toward hermetic Git, reducing reliance on Git installed in build images.
Changes:
- Registers toolshed’s prebuilt Git toolchain and exposes executable and runtime targets.
- Resolves
GIT_BINfor CI scripts, workspace status, and visibility checks, retaining host-Git fallback in local helper scripts. - Migrates proto-format genrules to
$(GIT)and enables remote execution for formatted API hashing.
| File | Description |
|---|---|
tools/proto_format/BUILD |
Uses the Git toolchain and declares runtime inputs. |
tools/git/modified_since_last_github_commit.sh |
Uses GIT_BIN with host-Git fallback. |
tools/git/last_github_commit.sh |
Uses GIT_BIN with host-Git fallback. |
tools/git/defs.bzl |
Defines Git executable and runtime rules. |
tools/git/BUILD |
Exposes public Git targets. |
tools/code_format/check_format.py |
Uses GIT_BIN for visibility checks. |
MODULE.bazel.lock |
Updates the Git extension usage digest. |
MODULE.bazel |
Registers the prebuilt Git toolchain. |
mobile/MODULE.bazel.lock |
Updates the Git extension usage digest. |
docs/MODULE.bazel.lock |
Updates the Git extension usage digest. |
docs/bazel/get_workspace_status |
Uses configurable Git for workspace metadata. |
ci/format_pre.sh |
Uses hermetic Git for formatting diagnostics. |
ci/do_ci.sh |
Initializes hermetic Git and updates Git calls. |
ci/check_and_fix_format.sh |
Uses hermetic Git to produce formatting patches. |
ci/bazel_fun.sh |
Adds Git resolution and skips bootstrap workspace status. |
bazel/tests/external/MODULE.bazel.lock |
Updates the Git extension usage digest. |
bazel/tests/codeql/MODULE.bazel.lock |
Updates the Git extension usage digest. |
bazel/get_workspace_status |
Uses configurable Git for workspace metadata. |
Review effort: Balanced
jwendell
left a comment
There was a problem hiding this comment.
Isn't this too much? Maybe we should even make the kernel hermetic lol
Users can opt-out by setting GIT_BIN?
|
no - its one of the reasons that some ci has to use special worker contianers with git added - i t hink this makes total sense as a general point - i think the principal is hermetic from glibc up will check further re setting your own tools |
a52c699 to
e7b953c
Compare
4b7d45a to
64f6bfe
Compare
64f6bfe to
517e3d8
Compare
|
/retest flakey example |
517e3d8 to
f257edb
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The change blocks all CI targets on supported native Linux ppc64le hosts because //tools/git:bin cannot resolve without a host fallback and matching proto-format fallback toolchain.
1 open issue
2 resolved since last review
Review effort: Balanced
Resolve toolshed's prebuilt git (`//tools/git:bin`) once in `ci/do_ci.sh` as `GIT_BIN`, and use it explicitly for workspace status, CI scripts and the code format visibility check, instead of a `git` installed in the build image. `bazel_tool_path` skips workspace status, as it may be resolving git itself. Bazel genrules use the git toolchain directly (`$(GIT)`), so the proto_format hashes no longer need host git (or `no-remote-exec` for `formatted_api_hashes`). Outside CI, `get_workspace_status` and `tools/git/*` fall back to host `git` when `GIT_BIN` is unset. Signed-off-by: Ryan Northey <[email protected]>
Resolve toolshed's prebuilt git (`//tools/git:bin`) once in `ci/do_ci.sh` as `GIT_BIN`, and use it explicitly for workspace status, CI scripts and the code format visibility check, instead of a `git` installed in the build image. `bazel_tool_path` skips workspace status, as it may be resolving git itself. Bazel genrules use the git toolchain directly (`$(GIT)`), so the proto_format hashes no longer need host git (or `no-remote-exec` for `formatted_api_hashes`). Outside CI, `get_workspace_status` and `tools/git/*` fall back to host `git` when `GIT_BIN` is unset. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit 35c63b4) Signed-off-by: Ryan Northey <[email protected]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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. 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]>
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. 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]>
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. 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]>

Resolve toolshed's prebuilt git (
//tools/git:bin) once inci/do_ci.shasGIT_BIN, and use it explicitly for workspace status, CI scripts and the code format visibility check, instead of agitinstalled in the build image.bazel_tool_pathskips workspace status, as it may be resolving git itself.Bazel genrules use the git toolchain directly (
$(GIT)), so the proto_format hashes no longer need host git (orno-remote-execforformatted_api_hashes).Outside CI,
get_workspace_statusandtools/git/*fall back to hostgitwhenGIT_BINis unset.