Skip to content

fix: anchor Release Drafter changelog to maven-4.0.0-rc-7 - #14212

Open
gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/release-drafter-last-release-tag
Open

gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/release-drafter-last-release-tag

Conversation

@gnodet

@gnodet gnodet commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Problem

The Release Drafter workflow on master has been failing since Nov 28:

Error: Validation Failed: body is too long (maximum is 125000 characters)

Release Drafter accumulated 2,241 merged PRs (199k characters) because master has no published release in its commit ancestry. 4.x releases (rc-7, etc.) are tagged on the maven-4.0.x branch, not on master. So release-drafter falls back to maven-3.10.2 (the last 3.x release targeting master) as its anchor, and includes every PR ever merged.

Fix

Pass last-release-tag: 'maven-4.0.0-rc-7' to the shared workflow via the new input added in apache/maven-gh-actions-shared#383 (now merged). This anchors the changelog to the last 4.x release candidate, so only the ~30 PRs merged since rc-7 (Sep 24, 2026) are included. The body stays well within the 125k limit.

When to update: After each new 4.x published release (e.g. rc-8, 4.0.0 GA), update last-release-tag accordingly.

Closes #14180

Licensed

The work I am contributing is licensed under the Apache License 2.0, and I have all rights to contribute it.

The Release Drafter on master was accumulating 2241 merged PRs
(199k characters), exceeding GitHub's 125k release body limit.

Root cause: master has no published release in its commit ancestry.
4.x releases (rc-7 etc.) are tagged on the maven-4.0.x branch, so
release-drafter falls back to maven-3.10.2 as the last release anchor.

Fix: pass last-release-tag=maven-4.0.0-rc-7 to the shared workflow,
so only the ~30 PRs merged since rc-7 appear in the draft body.

The apache/maven-gh-actions-shared#383 companion PR that introduced
the last-release-tag input has been merged.

@gnodet-bot gnodet-bot 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.

LGTM. The fix is correct — last-release-tag input is confirmed present in the @v5 shared workflow (companion PR apache/maven-gh-actions-shared#383 is merged), and anchoring to maven-4.0.0-rc-7 will keep the draft body well within the 125k limit.

One nit: the last-release-tag value is hardcoded and will need a manual update after each new 4.x release (rc-8, 4.0.0 GA, etc.). The PR description already acknowledges this ("When to update"), so this is noted for awareness rather than as a blocker.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

update_release_draft:
uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v5
with:
last-release-tag: 'maven-4.0.0-rc-7'

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.

⚠️ Maintenance note: This hardcoded tag will need a manual update after each new 4.x release (rc-8, 4.0.0 GA, etc.). Consider adding a comment here as a reminder, or tracking it in the issue/milestone process.

Suggested change
last-release-tag: 'maven-4.0.0-rc-7'
last-release-tag: 'maven-4.0.0-rc-7' # Update after each 4.x release tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants