Repository navigation
ci: release without pushes to main, create release branch with ARNs - #79
Merged
Merged
Conversation
Release Tag pushed a changelog commit to main. The main-2 ruleset and the classic rule for main reject that push (GH006), so the nodejs-v2.1.0 and java-v2.20.0 releases needed manual steps. - release-prepare: write the changelog section directly into CHANGELOG.md and remove the changelog/ fragments. Push the branch and open the PR with the app token, so that the PR checks start without manual approval. - release-tag: push only the tag, at the merge commit, with the app token. Do not push to main. Require the `release` label and a CHANGELOG.md section for the tag. - release-build-*: use the CHANGELOG.md section of the tag as the release body and fix the README link. Add a job that creates release-<tag> with the version title, the layer ARN tables and the container links in <language>/README.md. - release-finalize: manual recovery only. Read the ARNs from the GitHub release. - release-check-upstream: fail when the tag for the next version exists, instead of starting a Release Prepare run that fails. - publish-release-layer: set fail-fast to false. - docs/release.md: describe the new flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Astitva-sumo
approved these changes
Nov 18, 2026
raunakmandaokar
approved these changes
Nov 18, 2026
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.
Problem
The release automation from #67 needed manual steps for the last two releases (nodejs-v2.1.0 and java-v2.20.0):
main. It pushes a changelog commit tomain. The branch rules formainreject this push (GH006: Protected branch update failed). Then no tag is created and Release Build does not start. For both releases, the tag was pushed by hand, and the changelog was fixed in separate PRs (docs: update changelog #73, docs: fix docs #75).GITHUB_TOKEN. GitHub does not start workflows for PRs opened with that token. For example, feat: prepare release java v2.21.0 #76 has no checks.release-nodejs-v2.1.0lists thev2-0-2layers.release-java-v2.20.0does not exist.**TODO**and links to an old repository.Check Upstream Releasesstays green when Release Prepare fails. Release Prepare failed every week for Python, and nobody saw it (data fixed in fix(python): correct release metadata after v1.41.0 #78).Changes
release-prepare.yml,ci/release-prepare.shCHANGELOG.md. Opens the PR with therenovatebot-sumologicapp token, so the PR checks start.release-tag.ymlmain.release-build-{java,nodejs,python}.ymlCHANGELOG.mdsection as the release body. Adds a job that createsrelease-<tag>with the new ARN tables and container links.ci/release-finalize.sh,release-finalize.ymlrelease-check-upstream.ymlpublish-release-layer.ymlfail-fast: false, so that one failed region does not stop the other regions.changelog/docs/release.mdNew flow
prepare-<language>-v<version>. The PR author isrenovatebot-sumologic(notgithub-actions). The PR checks start automatically.CHANGELOG.md, and a code owner approves the PR.<language>-v<version>at the merge commit. Nothing is pushed tomain.release-<language>-v<version>with the new ARN tables and container links.Testing
ci/release-finalize.shwith the realjava-v2.20.0release: it wrote 20 AMD64 and 11 ARM64 ARNs. The table format check passes. It stops with an error when no ARNs match the version.ci/release-prepare.shfor java 2.21.0 in a temporary worktree: it adds the section below theAll notable changesline. A second run stops, because the section exists.main.After merge
prepare-java-v2.21.0andprepare-nodejs-v2.2.0.2.21.0/layer-javaagent/0.22.02.2.0/layer-nodejs/0.24.01.42.0/layer-python/0.22.0java-v2.20.0andpython-v1.41.0, to create the missing release branches. A repository admin fixes the ARN tables inrelease-nodejs-v2.1.0.🤖 Generated with Claude Code
— written by an agent on behalf of Shubham Gupta