Repository navigation
github/ci: Dry-run the dev publish alongside the container images - #49305
Merged
Merged
Conversation
For a dev version (eg main), the GitHub publish (`do_ci.sh publish`) is a dry run, but it waited for the container images to be pushed. It now runs as soon as the release is signed (`github-dev`), alongside the container images, so the publish workflow finishes sooner. A release is still published once its images are pushed (`github`). Its checkout fetches 100 commits of history rather than all of it (`_run.yml` `checkout-fetch-depth`): the publish needs only the commit, and the checkout verifies that it is on the branch, which may have moved on since. Signed-off-by: Ryan Northey <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A delayed or rerun dev publish can fail before publication when its requested SHA falls outside the 100-commit shallow history, because checkout checks ancestry without deepening.
1 open issue
What changed in this PR
Shortens Envoy’s dev publishing path by running the GitHub publish dry run alongside container image publication, while keeping release publishing dependent on successful image pushes.
Changes:
- Adds a separate
github-devjob using the signed release artifact. - Updates downstream dependencies and gating for the new dev job.
- Adds configurable checkout depth, set to 100 commits for dev publishing.
| File | Description |
|---|---|
.github/workflows/_run.yml |
Adds and forwards the optional checkout-depth input. |
.github/workflows/_publish_release.yml |
Separates dev and release publishing, updates downstream gating, and configures shallow dev checkout. |
Review effort: Balanced
agrawroh
previously approved these changes
Nov 15, 2026
Member
Author
|
will address copilot before landing |
The checkout verifies that the requested commit is on the branch, which a shallow history (`checkout-fetch-depth: 100`) only covers while the commit is among the branch's last 100: a dev publish rerun once the branch has moved further would fail. Drop the depth (and the input). Signed-off-by: Ryan Northey <[email protected]>
jwendell
approved these changes
Nov 16, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
… job
With `release-publish-multiarch`, the x64 Publish binary job builds
everything published for both arches (`release.multiarch`), and
uploads the same artifacts as the per-arch jobs did (`release.<arch>`,
`oci.<arch>`, `packages.<arch>`); there is no arm64 job.
`//distribution/publish:publish_<arch>` builds `//distribution/publish`
for the arch's target platform, from any host. Only the target platform
changes: everything runs on the build's execution platforms, so the
arm64 binaries are cross-compiled on x64 (the llvm toolchain has the
arm64 sysroot and libc++), and the exec tools (eg the Python ones, whose
pip deps only resolve for the host) stay on the host's arch.
The tools are now `bundled` too (as the container images' are), so they
are built in the same configuration as the binaries.
`release.publish` builds the host's arch, as before.
The job is named `Server (multiarch)`. It sets `--//distribution:multiarch`,
so on EngFlow the arm64 `.dwp`s are compressed on the large x86_64 pool too,
as they are built on x86_64. Without it (eg a native arm64 build) they keep the
arm platform's pool.
With `release-publish-multiarch`, the x64 Publish binary job
(`release.multiarch`) builds only what the pipeline uses from it, and
signs the release of both arches in the same invocation:
- `//distribution/publish:publish_multiarch_<arch>`: the container
images, uploaded (`oci.<arch>`), and the `.deb`/`.changes` files and
the stripped release binaries (`release.stripped.tar.zst`), which are
signed.
- `//distribution:signed`, with `--//distribution:signing-inputs=debs`
and `--//distribution:<arch>-{debs,release}` set to those
(`publish_multiarch_<arch>_{debs,release}`): the `.changes` are
signed from the debs, and the `.deb`s and signed `.changes` bundled
into `debs.tar.gz` directly, rather than through the packages
tarballs (`signing-inputs=tarballs`, as the Sign packages job), with the
key and passphrase at `ENVOY_SIGNING_{KEY,PASSPHRASE}_PATH` (staged by
`_run.yml` `signing`, under the same conditions as the Sign packages
job, with the snakeoil key for untrusted requests). It uploads
`release.signed`, and the Sign packages job is skipped.
The signing actions are audited as by `release.signed`, in an aquery of
`//distribution:signed` without the builds of its inputs (which can
only drop tool artifacts, so fail the audit, not pass it).
Nothing downstream uses the release tarball (with the debug binaries),
the tools, the packages tarballs, or the release and packages artifacts, which were for the
per-arch Docker OCI, Packages and Sign packages jobs: they are neither
built nor uploaded.
The bundling of the release for signing (the release binaries, the
multi-arch debs, the `.changes` and `release.signed.tar.zst`) is local
(`PUBLISH_PACKAGING_TAGS`): it changes with every commit.
The dev publish (`github-dev`) runs once the release is signed in the
build, as the Sign packages job is skipped, on the publishing agent.
Backport note (release/v1.40): picked ahead of its merge to `main`
(envoyproxy#49331). In `_publish_release.yml` the dev publish job (`github-dev`,
from envoyproxy#49305) is left out, as this branch has no dev/release publish
split; the multiarch sign condition goes on the `github` job.
Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
… job (envoyproxy#49331) With `release-publish-multiarch`, the x64 Publish binary job builds everything published for both arches (`release.multiarch`), and uploads the same artifacts as the per-arch jobs did (`release.<arch>`, `oci.<arch>`, `packages.<arch>`); there is no arm64 job. `//distribution/publish:publish_<arch>` builds `//distribution/publish` for the arch's target platform, from any host. Only the target platform changes: everything runs on the build's execution platforms, so the arm64 binaries are cross-compiled on x64 (the llvm toolchain has the arm64 sysroot and libc++), and the exec tools (eg the Python ones, whose pip deps only resolve for the host) stay on the host's arch. The tools are now `bundled` too (as the container images' are), so they are built in the same configuration as the binaries. `release.publish` builds the host's arch, as before. The job is named `Server (multiarch)`. It sets `--//bazel:multiarch`, so on EngFlow the x86_64 RBE pool pins (`envoy_exec_properties`, via `//bazel:engflow_rbe_x86_64`) apply to the arm64 half too, as it is built on x86_64 workers. Without it (eg a native arm64 build) arm64 keeps the arm platform's pool. With `release-publish-multiarch`, the x64 Publish binary job (`release.multiarch`) builds only what the pipeline uses from it, and signs the release of both arches in the same invocation: - `//distribution/publish:publish_multiarch_<arch>`: the container images, uploaded (`oci.<arch>`), and the `.deb`/`.changes` files and the stripped release binaries (`release.stripped.tar.zst`), which are signed. - `//distribution:signed`, with `--//distribution:signing-inputs=debs` and `--//distribution:<arch>-{debs,release}` set to those (`publish_multiarch_<arch>_{debs,release}`): the `.changes` are signed from the debs, and the `.deb`s and signed `.changes` bundled into `debs.tar.gz` directly, rather than through the packages tarballs (`signing-inputs=tarballs`, as the Sign packages job), with the key and passphrase at `ENVOY_SIGNING_{KEY,PASSPHRASE}_PATH` (staged by `_run.yml` `signing`, under the same conditions as the Sign packages job, with the snakeoil key for untrusted requests). It uploads `release.signed`, and the Sign packages job is skipped. The signing actions are audited as by `release.signed`, in an aquery of `//distribution:signed` without the builds of its inputs (which can only drop tool artifacts, so fail the audit, not pass it). Nothing downstream uses the release tarball (with the debug binaries), the tools, the packages tarballs, or the release and packages artifacts, which were for the per-arch Docker OCI, Packages and Sign packages jobs: they are neither built nor uploaded. The bundling of the release for signing (the release binaries, the multi-arch debs, the `.changes` and `release.signed.tar.zst`) is local (`PUBLISH_PACKAGING_TAGS`): it changes with every commit. The dev publish (`github-dev`) runs once the release is signed in the build, as the Sign packages job is skipped, on the publishing agent. --------- Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.40): in `_publish_release.yml` the dev publish job (`github-dev`, from envoyproxy#49305) is left out, as this branch has no dev/release publish split; the multiarch sign condition goes on the `github` job. (cherry picked from commit 44a6cec) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
… job (#49331) With `release-publish-multiarch`, the x64 Publish binary job builds everything published for both arches (`release.multiarch`), and uploads the same artifacts as the per-arch jobs did (`release.<arch>`, `oci.<arch>`, `packages.<arch>`); there is no arm64 job. `//distribution/publish:publish_<arch>` builds `//distribution/publish` for the arch's target platform, from any host. Only the target platform changes: everything runs on the build's execution platforms, so the arm64 binaries are cross-compiled on x64 (the llvm toolchain has the arm64 sysroot and libc++), and the exec tools (eg the Python ones, whose pip deps only resolve for the host) stay on the host's arch. The tools are now `bundled` too (as the container images' are), so they are built in the same configuration as the binaries. `release.publish` builds the host's arch, as before. The job is named `Server (multiarch)`. It sets `--//bazel:multiarch`, so on EngFlow the x86_64 RBE pool pins (`envoy_exec_properties`, via `//bazel:engflow_rbe_x86_64`) apply to the arm64 half too, as it is built on x86_64 workers. Without it (eg a native arm64 build) arm64 keeps the arm platform's pool. With `release-publish-multiarch`, the x64 Publish binary job (`release.multiarch`) builds only what the pipeline uses from it, and signs the release of both arches in the same invocation: - `//distribution/publish:publish_multiarch_<arch>`: the container images, uploaded (`oci.<arch>`), and the `.deb`/`.changes` files and the stripped release binaries (`release.stripped.tar.zst`), which are signed. - `//distribution:signed`, with `--//distribution:signing-inputs=debs` and `--//distribution:<arch>-{debs,release}` set to those (`publish_multiarch_<arch>_{debs,release}`): the `.changes` are signed from the debs, and the `.deb`s and signed `.changes` bundled into `debs.tar.gz` directly, rather than through the packages tarballs (`signing-inputs=tarballs`, as the Sign packages job), with the key and passphrase at `ENVOY_SIGNING_{KEY,PASSPHRASE}_PATH` (staged by `_run.yml` `signing`, under the same conditions as the Sign packages job, with the snakeoil key for untrusted requests). It uploads `release.signed`, and the Sign packages job is skipped. The signing actions are audited as by `release.signed`, in an aquery of `//distribution:signed` without the builds of its inputs (which can only drop tool artifacts, so fail the audit, not pass it). Nothing downstream uses the release tarball (with the debug binaries), the tools, the packages tarballs, or the release and packages artifacts, which were for the per-arch Docker OCI, Packages and Sign packages jobs: they are neither built nor uploaded. The bundling of the release for signing (the release binaries, the multi-arch debs, the `.changes` and `release.signed.tar.zst`) is local (`PUBLISH_PACKAGING_TAGS`): it changes with every commit. The dev publish (`github-dev`) runs once the release is signed in the build, as the Sign packages job is skipped, on the publishing agent. --------- Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.40): in `_publish_release.yml` the dev publish job (`github-dev`, from #49305) is left out, as this branch has no dev/release publish split; the multiarch sign condition goes on the `github` job. (cherry picked from commit 44a6cec) Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Commit Message: github/ci: Dry-run the dev publish alongside the container images
Additional Description:
For a dev version (eg main), the GitHub publish (
do_ci.sh publish) is only a dry run, but it waited for the container images to be pushed (needs: container) before starting.github-dev: the same publish, for a dev version only, needing only the signed release (and the docs archive), so it runs alongside the container image push.github: now for a release only, published once its images are pushed, as before.github-devfor a dev version (as it waited ongithub).In envoy-ci-staging the dev publish ran alongside the manifest push and finished before it, rather than starting after it (~1-2m).
Risk Level: low (main's publish dry run; releases unchanged)
Testing: CI, envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a