Skip to content

Recognize grouped PR references in provider changelog tooling - #73855

Merged
potiuk merged 4 commits into
apache:mainfrom
shahar1:fix-changelog-grouped-pr-refs
Sep 28, 2026
Merged

potiuk merged 4 commits into
apache:mainfrom
shahar1:fix-changelog-grouped-pr-refs

Conversation

@shahar1

@shahar1 shahar1 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

The provider changelog generator (breeze release-management prepare-provider-documentation) decided whether a commit was already listed by searching for the literal (#NNN). An entry crediting several PRs at once, e.g. (#73367, #73368), therefore looked unlisted and was appended again on the next run for the same version. The check-changelog-has-no-duplicates prek hook had the mirror-image gap: it skipped such entries entirely, so a PR repeated across a grouped and a standalone entry was never reported.

The hook now extracts every PR number from an entry, and the generator collects the numbers from every bracketed reference group in the changelog (prose such as (continuation of #123) does not count as a listing). Grouped references already exist in released changelogs, so this is a tooling fix, not a format change.

#73850 deliberately lists #73368 both under breaking changes and inside a grouped feature entry of common.ai 0.10.0, so it is added to the hook's known_exceptions.

related: #73850


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

Changelog entries sometimes credit several PRs at once, e.g.
``(apache#73367, apache#73368)``. The provider changelog generator only looked for
the literal ``(#NNN)`` when deciding whether a commit was already
listed, so such entries were appended again on the next run for the
same version. The duplicate-entries prek hook had the mirror-image
gap and skipped those lines entirely, so a PR repeated across a
grouped and a standalone entry went unreported.
Comment thread scripts/ci/prek/changelog_duplicates.py Resolved
… changelog

apache#73850 lists apache#73368 both under breaking changes and inside a grouped
feature entry, which the grouped-reference parsing now detects.
…generator

Matching any "#N" before a comma or closing bracket also picked up prose
such as "(continuation of apache#57320)", so a commit with that number would be
silently dropped from the regenerated changelog. The generator now uses
the same reference-group shape as the changelog duplicates hook.
@shahar1 shahar1 changed the title Recognise grouped PR references in provider changelog tooling Recognize grouped PR references in provider changelog tooling Sep 28, 2026
@shahar1
shahar1 requested review from Lee-W, eladkal and kaxil September 28, 2026 20:51
@potiuk
potiuk merged commit b3bcb38 into apache:main Sep 28, 2026
150 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

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.

4 participants