Skip to content

publish.yml creates the GitHub release from the changelog - #114

Merged
Claptar merged 3 commits into
mainfrom
ci/github-release
Nov 26, 2026
Merged

Claptar merged 3 commits into
mainfrom
ci/github-release

Conversation

@Claptar

@Claptar Claptar commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

GitHub releases stopped at 0.11.1, though later versions were tagged and on PyPI. Releases were cut by hand with gh release create, and the checklist in AGENTS.md and docs/developers.md never named that step. So from 0.12.0 on, tags were pushed with no release page, and benchmark.yml found no release to append its summary to. 0.17.6 is the latest case.

  • publish.yml:
    • A new github-release job runs after publish-pypi and creates the release, using the tag's ## X.Y.Z section of docs/changelog.md as the notes. It leaves alone a release that was already cut by hand.
    • check-version gains a step that refuses a tag with no changelog section, before anything is published.
    • The job is written in main's hardened style: pinned checkout with no persisted credentials, contents: write only, tag values passed through env.
    • It uses needs: [check-version, publish-pypi], so a PyPI dispatch from a tag creates the release too.
  • benchmark.yml: only a comment changes. In the 0.17.6 run, PyPI was done at 16:12 and Benchmark's append step ran at 16:25, so the release will normally exist by then.
  • tests/test_release_pipeline.py:
    • The release now counts as something a run publishes: a tag push and a PyPI dispatch from a tag create it, and nothing else does.
    • New tests cover the changelog check and the notes extraction, including against the real changelog.
  • AGENTS.md, docs/developers.md, STATUS.md: the checklist describes the job and says not to create releases by hand.

The branch was behind main and conflicted, so main has been merged in. The missing 0.17.6 release is backfilled separately, with its changelog section plus that tag's benchmark summary.

Checked: tests/test_release_pipeline.py and tests/test_docs_are_accurate.py pass. actionlint and zizmor run in CI's workflow lint job. The real end-to-end check is the next tag (0.17.7).

🤖 Generated with Claude Code

Releases were cut by hand with `gh release create` until 0.11.1, and the
release checklist never named that step, so 0.12.0 to 0.17.3 went to PyPI
with no release page (and benchmark.yml skipped its notes for each). A new
job creates the release once PyPI has the version, with the tag's section
of docs/changelog.md as its notes; check-version refuses a tag with no
section before anything is published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 11:54
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Test Results (py3.13)

3 819 tests   3 807 ✅  7m 16s ⏱️
    1 suites     12 💤
    1 files        0 ❌

Results for commit ef5d730.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Test Results (py3.12)

3 819 tests   3 807 ✅  5m 13s ⏱️
    1 suites     12 💤
    1 files        0 ❌

Results for commit ef5d730.

♻️ This comment has been updated with latest results.

Claptar and others added 2 commits November 26, 2026 16:26
main's publish.yml was hardened since this branch (permissions: {}, actions
pinned by SHA, persist-credentials: false, check-version also guarding a
PyPI dispatch), so the github-release job is rewritten in that style:
pinned checkout without credentials, contents: write alone, tag values
through env, and needs: [check-version, publish-pypi] in place of always(),
so a PyPI dispatch from a tag creates the release as well. The changelog
check is its own step in check-version.

test_release_pipeline.py now counts the release as something a run
publishes, and tests the changelog check and the notes extraction, against
the real changelog too. AGENTS.md, developers.md and STATUS.md describe the
job in main's text. 0.17.6 had no release either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- benchmark.yml's notes step waits up to 30 minutes for the release: the
  margin after publish-pypi was 7 minutes for 0.17.5, so slow tests or a
  re-run in Publish would have dropped the summary.
- check-version extracts the section as github-release does and refuses
  one with no text (a heading straight before the next, or ending the
  file), since the notes cannot be mended once PyPI has the version.
- A failed image still gets its release; the trigger matrix pins that.
- AGENTS.md and developers.md: the image and the release run side by
  side, and a PyPI dispatch creates the release too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Claptar
Claptar merged commit 49e0e4c into main Nov 26, 2026
13 checks passed
Claptar added a commit that referenced this pull request Nov 26, 2026
STATUS.md keeps both follow-ups: #124's and the GitHub releases note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Claptar Claptar mentioned this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants