Skip to content

ci: release without pushes to main, create release branch with ARNs - #79

Merged
Gourav2906 merged 1 commit into
mainfrom
ci/release-automation-v2
Nov 18, 2026
Merged

Gourav2906 merged 1 commit into
mainfrom
ci/release-automation-v2

Conversation

@shubham-sumo

Copy link
Copy Markdown
Contributor

Problem

The release automation from #67 needed manual steps for the last two releases (nodejs-v2.1.0 and java-v2.20.0):

  • Release Tag cannot push to main. It pushes a changelog commit to main. The branch rules for main reject 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).
  • PR checks do not start on prepare PRs. Release Prepare opens the PR with 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 branches have old layer ARNs. No workflow writes the new ARN tables or container links to the release branch. release-nodejs-v2.1.0 lists the v2-0-2 layers. release-java-v2.20.0 does not exist.
  • The release notes are incomplete. The GitHub release body says **TODO** and links to an old repository.
  • The weekly check hides failures. Check Upstream Releases stays 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

File Change
release-prepare.yml, ci/release-prepare.sh Adds the changelog section directly to CHANGELOG.md. Opens the PR with the renovatebot-sumologic app token, so the PR checks start.
release-tag.yml Pushes only the tag, at the merge commit. Does not push to main.
release-build-{java,nodejs,python}.yml Uses the CHANGELOG.md section as the release body. Adds a job that creates release-<tag> with the new ARN tables and container links.
ci/release-finalize.sh, release-finalize.yml Writes the title, the ARN tables and the container links. The workflow is now for manual recovery only.
release-check-upstream.yml Fails when the tag for the next version already exists.
publish-release-layer.yml fail-fast: false, so that one failed region does not stop the other regions.
changelog/ Removed. The changelog fragments are not necessary now.
docs/release.md Describes the new flow.

New flow

  1. Release Prepare (weekly, or started by hand) opens prepare-<language>-v<version>. The PR author is renovatebot-sumologic (not github-actions). The PR checks start automatically.
  2. A person replaces the changelog TODO in CHANGELOG.md, and a code owner approves the PR.
  3. After merge, Release Tag pushes the tag <language>-v<version> at the merge commit. Nothing is pushed to main.
  4. The tag starts Release Build. It publishes the layers and creates a pre-release. The pre-release body contains the changelog section.
  5. Release Build creates release-<language>-v<version> with the new ARN tables and container links.
  6. A person tests the layers and promotes the pre-release in the GitHub UI.

Testing

  • ci/release-finalize.sh with the real java-v2.20.0 release: 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.sh for java 2.21.0 in a temporary worktree: it adds the section below the All notable changes line. A second run stops, because the section exists.
  • yamllint, shellcheck and markdownlint pass. actionlint finds no new problems. The 17 findings that remain are in code that is already on main.
  • The workflows were not run. The first real run is the next release.

After merge

  1. Merge fix(python): correct release metadata after v1.41.0 #78 first.
  2. Close feat: prepare release java v2.21.0 #76 and feat: prepare release nodejs v2.2.0 #77, and delete the branches prepare-java-v2.21.0 and prepare-nodejs-v2.2.0.
  3. Start Release Prepare for one language first, then for the others:
    • java 2.21.0 / layer-javaagent/0.22.0
    • nodejs 2.2.0 / layer-nodejs/0.24.0
    • python 1.42.0 / layer-python/0.22.0
  4. Start Release Finalize for java-v2.20.0 and python-v1.41.0, to create the missing release branches. A repository admin fixes the ARN tables in release-nodejs-v2.1.0.

🤖 Generated with Claude Code

— written by an agent on behalf of Shubham Gupta

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>
@shubham-sumo
shubham-sumo requested a review from a team as a code owner November 16, 2026 07:57
@sumopapertrail
sumopapertrail Bot requested a review from Gourav2906 November 16, 2026 07:57
@github-actions github-actions Bot added documentation Improvements or additions to documentation osc github_actions labels Nov 16, 2026
@Gourav2906
Gourav2906 merged commit 52abb61 into main Nov 18, 2026
39 checks passed
@Gourav2906
Gourav2906 deleted the ci/release-automation-v2 branch November 18, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation github_actions osc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants