Skip to content

Require notes for new release tags and validate the 0.4.0 Python minimum - #33

Open
Alperen Cetin (hacetin) wants to merge 6 commits into
mainfrom
alperen/github-release-notes-policy
Open

Alperen Cetin (hacetin) wants to merge 6 commits into
mainfrom
alperen/github-release-notes-policy

Conversation

@hacetin

@hacetin Alperen Cetin (hacetin) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Require a notes-only GitHub Release for every new SDK version tag, as requested. The developer chooses whether notes appear before or after PyPI publication. Existing tags and releases remain unchanged; only the internal release pipeline publishes packages.

The shared policy defines the runtime-floor and maintenance-line rules without naming past versions. The release skill covers tag verification and authorized publication. Package docs carry the specific upgrade guidance: 0.4.0 requires CPython 3.11+, while pip on 3.9/3.10 may stay on 0.3.0.

Addresses the packaging review: check wheel tags and the packed Requires-Python metadata of all wheels and the sdist once before smoke testing. The 12 focused tests passed on CPython 3.12; Build & Smoke passed before the documentation-only revision. No version bump or publication.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
@hacetin Alperen Cetin (hacetin) changed the title Allow notes-only GitHub Releases for existing tags Clarify release policy and validate the Python 3.11 minimum for 0.4.0 Dec 1, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
@hacetin Alperen Cetin (hacetin) changed the title Clarify release policy and validate the Python 3.11 minimum for 0.4.0 Require GitHub release notes for every release tag and validate the 0.4.0 Python minimum Dec 1, 2026
@ChrisKrawczyk

Copy link
Copy Markdown

Review notes on the #32 follow-ups

Thanks. This covers the #32 follow-ups:

  • CI now checks the wheel tag and Requires-Python;
  • the docs state the CPython 3.11 minimum;
  • the floor-change rule is written down.

Please address these before this leaves draft:

  1. The 0.3.x patch path can't be released.
    • RELEASE_POLICY.md:26-27 and SKILL.md:19-20 say to patch an older line from its release tag.
    • But the skill's tag step requires the merge commit to be in origin/main (SKILL.md:55).
    • The internal release pipeline now only accepts cp311-abi3 wheels and does not publish 0.3.x.
    • Suggested fix: "No further 0.3.x releases are planned from the current release pipeline. Users who need fixes must move to CPython 3.11+ and 0.4.x." Make the same change in duroxide-node#34.
  2. Nothing shows the wheel metadata check rejects bad wheels.
    • The inline checker (build.yml:187-204) runs in all 25 smoke jobs, but only on good wheels.
    • A checker that read only the first wheel, or only checked that Requires-Python exists, would still pass every check.
    • The Node SDK tests its equivalent in __tests__/package_engines.test.js.
    • Suggested fix:
      • Move the checker into a script and run it once, before the smoke matrix.
      • Add pytest cases that build wheels in memory, covering:
        • a valid set;
        • a wrong or missing floor on a wheel other than the first;
        • cp39-abi3;
        • duplicate Requires-Python headers in both orders;
        • zero or several METADATA files.
      • Don't put .whl or .tar.gz fixtures in ci/smoke/. The release pipeline packages that folder and counts the files in it.
  3. Pin the gh release create flags.
    • Without --verify-tag, gh creates a missing tag on the latest commit of main.
    • Without --latest, GitHub marks every new published release as Latest. A 0.3.x release, or a backfilled one, would move Latest backwards.
    • Suggested fix:
      • Use gh release create vX.Y.Z --verify-tag --notes-file <entry.md> --latest=<true only for the highest stable version>, plus --prerelease for prerelease tags.
      • Afterwards, verify with gh release view vX.Y.Z --json tagName,isDraft,isPrerelease,assets.
  4. "Every release tag must have a notes-only GitHub Release" has no scope.
    • History can't meet it:
      • v0.1.7, v0.1.28, v0.1.29 and v0.2.1 have no release;
      • v0.1.29 never reached PyPI;
      • the six v0.2.0 release assets have different SHA-256 hashes from the PyPI files with the same names.
    • Literal compliance means inventing notes, or announcing versions that never shipped.
    • The skill's check also only asks whether a release exists, so a draft, or a release with assets, passes.
    • Suggested fix:
      • Scope the rule to tags from v0.3.0 onward, and forbid backfilling.
      • Check that the release is published, has notes and has no assets. Stop and ask if it doesn't.
      • Don't delete the v0.2.0 assets. Add a note to that release that PyPI is the source of truth.
  5. Notes timing has no failure path, owner or approval step.
    • Notes published before PyPI can announce a version that never ships, as the v0.1.21 release shows.
    • "After PyPI" has no step in any skill.
    • Suggested fix:
      • Default to a draft release, and publish it once PyPI lists all six files.
      • If the developer asks for public notes earlier, include a "PyPI publication pending" line.
      • Name who publishes the notes.
      • Add "Ask for explicit approval before publishing the GitHub Release. Approval to tag is not enough." The notifications that publishing sends can't be recalled.
  6. Version-relative wording will be frozen into 0.4.0.
    • The README, user guide, smoke README and CHANGELOG say "the next minor release (0.4.0)" or "upcoming 0.4.0".
    • The README becomes the PyPI description, which can't be changed once the version is published.
    • Suggested fix:
      • Use wording like "Starting with 0.4.0, duroxide requires CPython 3.11 or newer; 0.3.0 supports CPython 3.9 and later."
      • Add the upgrade step and the pip caveat to the CHANGELOG entry: on 3.9/3.10, pip install -U duroxide stays on 0.3.0 without an error.
      • Our earlier comment suggested the "next minor release" wording, sorry.

Smaller items:

  • Duplicate headers: message["Requires-Python"] reads only the first header. Use message.get_all("Requires-Python", []) == [">=3.11"].
  • Error messages: the script should check the full wheel filename shape, require exactly one top-level *.dist-info/METADATA, and name the wheel in every error.
  • sdist: also assert Requires-Python: >=3.11 in the sdist's PKG-INFO.
  • Smoke README: ci/smoke/README.md can be read as covering the released wheels. Say it checks "wheels built by this repository's GitHub workflow".
  • Development section: add "Requires CPython 3.11 or newer" to the README Development section.
  • Skill: name 0.4.0 and v0.3.0, and add a floor-change checklist covering pyproject.toml, PyO3 abi3-py311, build.yml, the docs and the CHANGELOG. The Node skill has one.
  • Wording to match Node: adopt Node's "changelog and upgrade notes" wording for the notes source.
  • check-latest: add check-latest: true to setup-python. macos-15-intel ran cached, older 3.13 and 3.14 patches, and Node already sets this.
  • Later changelog corrections: if the CHANGELOG on main later amends a released entry, update that GitHub Release to match. The 0.1.21 entry is an example.
  • PR scope: the notes-only release policy wasn't one of the Require CPython 3.11+ and add 3.15 to CI #32 follow-ups. Keeping it here is fine if items 1, 3, 4 and 5 land with it. Otherwise, split it out of this PR and duroxide-node#34 together.

Prepared with an AI-assisted multi-model review (GitHub Copilot CLI). Key claims were checked against the code and CI runs.

@hacetin
Alperen Cetin (hacetin) marked this pull request as ready for review December 2, 2026 09:01
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
@hacetin Alperen Cetin (hacetin) changed the title Require GitHub release notes for every release tag and validate the 0.4.0 Python minimum Require notes for new release tags and validate the 0.4.0 Python minimum Dec 2, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5b961ef6-c3a0-493f-b36e-1e118425b7d7
@hacetin

Copy link
Copy Markdown
Contributor Author

Thanks ChrisKrawczyk. Addressed the packaging checks with wheel/sdist validation and negative tests, and tightened tag verification and release-note handling. Kept the shared policy generic and version-specific guidance in the package docs, while preserving the requested notes-only release practice. Focused tests and implementation CI passed.

This branch has not been deployed

No deployments
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