Skip to content

ci/release: Automate the patch-release cycle - #48378

Merged
phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-release
Oct 15, 2026
Merged

phlax merged 2 commits into
envoyproxy:mainfrom
phlax:ci-release

Conversation

@phlax

@phlax phlax commented Oct 15, 2026

Copy link
Copy Markdown
Member

No description provided.

@jwendell jwendell left a comment

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 few comments from a review of the release automation. No blockers; the main one is the shell interpolation of author/committer, which matters more now that the chain runs create-release unattended with the publish app token.

Comment thread .github/workflows/_release_task.yml Outdated
source: |
BAZEL_ARGS=(--)
BAZEL_RUN_ARGS=(--config=ci)
if [[ -n "${{ inputs.author }}" ]]; then

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.

${{ inputs.author }} and ${{ steps.changelog.outputs.committer }} are interpolated directly into the shell source. committer comes from the last author of changelogs/summary.md (contributor-controlled name). This is pre-existing, but with the chain this now runs automatically with the publish app token and no human dispatch. Suggest passing both via env: and referencing "$AUTHOR" / "$COMMITTER" instead.

with:
email: ${{ inputs.author }}

- name: Sync version histories

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.

With sync: true this produces two commits (sync + release), and the later modules.version step amends only the last. Worth confirming that the PR action (commit: false, append-commit-message: true) handles multiple commits as intended, and that @envoy_repo//:sync doesn't fail when there is nothing to sync (which would break the chain).

Comment thread .github/workflows/envoy-release.yml Outdated
if: github.event_name == 'workflow_dispatch' && inputs.task == 'create-release'
if: >-
github.event_name == 'workflow_dispatch' && inputs.task == 'create-release'
&& (!inputs.branch || github.ref_name == 'main' || inputs.branch == github.ref_name)

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.

When dispatched from a non-main ref with a different branch, this guard silently skips the job and the run shows green. Could we fail loudly instead (e.g. a small validation job that errors on mismatch)? Same applies to the reopen-branch and sync-version-histories jobs.

pr: ${{ inputs.pr }}
pr-message: ${{ inputs.pr-message }}

deprecate_guards:

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.

nit: deprecate-guards ignores the new branch input and always runs against github.ref_name. Either honour branch here or note in the input description / README that it doesn't apply.

Signed-off-by: Ryan Northey <[email protected]>
@phlax
phlax enabled auto-merge (squash) October 15, 2026 19:34
@phlax
phlax merged commit 1161848 into envoyproxy:main Oct 15, 2026
27 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
phlax added a commit to phlax/envoy that referenced this pull request Nov 11, 2026
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
phlax added a commit that referenced this pull request Nov 12, 2026
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.

2 participants