shahar1 opened a new pull request, #70281: URL: https://github.com/apache/airflow/pull/70281
Adds `dev/check_changelog_entries.py`, which compares each provider's newest `changelog.rst` section against the commits actually being released, and wires it into the `prepare-providers-documentation` skill as a mandatory hand-off gate. A changelog section is written by hand but describes a commit range, and until now nothing compared the two. Running the check over the 2026-07-22 wave found four defect classes, all real: | Code | Meaning | | --- | --- | | `MISSING` | a released commit has no entry — e.g. a provider commit that reached the release range through a rebase after the changelog was generated | | `UNKNOWN` | an entry cites a PR outside the release range — e.g. a block a contributor pre-wrote above the first version header, with a PR number guessed before the PR was opened | | `SECTION` | a heading that is not one of the five in `CHANGELOG_TEMPLATE.rst.jinja2`, so the entry renders outside the sections readers scan | | `ORDER` | entries drifted off the newest-merge-first order the template produces | Only `ORDER` is repaired automatically (`--fix`); the rest are reported and left to the release manager, who is the only one who can decide how a missing change should be classified. Notes on the ordering rule, since it is easy to get wrong: the template iterates `git log` output without sorting, so **merge order, newest first** *is* the format — not descending PR number. A long-lived PR merged late carries a low number and still belongs at the top. An entry that collapses a chain of PRs sits at the position of its **first** commit, which is when the change became relevant. Entries whose PR does not resolve to a commit stay pinned where they are rather than being sorted anywhere. The check only inspects the topmost version section, and only while that version is still untagged, so published changelogs are never rewritten. The release range is anchored on the previous version header in `changelog.rst` rather than the newest git tag, because providers carry placeholder `99.x` tags that would silently empty it. `python3 dev/check_changelog_entries.py --self-test` covers the ordering logic, matching how other top-level `dev/` scripts are exercised. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
