Skip to content

github/ci: Dry-run the dev publish alongside the container images - #49305

Merged
phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-dev-publish-dry-run
Nov 16, 2026
Merged

phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-dev-publish-dry-run

Conversation

@phlax

@phlax phlax commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

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.
  • The final job waits on github-dev for a dev version (as it waited on github).

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

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]>

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

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-dev job 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

Comment thread .github/workflows/_publish_release.yml Resolved
agrawroh
agrawroh previously approved these changes Nov 15, 2026
@phlax

phlax commented Nov 15, 2026

Copy link
Copy Markdown
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]>

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.

🟢 Approval recommended

No active review issues are reported for the workflow changes separating development and release publishing.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@phlax
phlax merged commit 86918b7 into envoyproxy:main Nov 16, 2026
29 of 33 checks passed
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]>
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.

4 participants