Repository navigation
ci/release: Automate the patch-release cycle - #48378
Conversation
Signed-off-by: Ryan Northey <[email protected]>
jwendell
left a comment
There was a problem hiding this comment.
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.
| source: | | ||
| BAZEL_ARGS=(--) | ||
| BAZEL_RUN_ARGS=(--config=ci) | ||
| if [[ -n "${{ inputs.author }}" ]]; then |
There was a problem hiding this comment.
${{ 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 |
There was a problem hiding this comment.
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).
| 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) |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
No description provided.