Repository navigation
chore(release): draft the release with the patch record when a vX.Y.Z tag is pushed - #685
Conversation
… tag is pushed Pushing a vX.Y.Z tag on a commit of production runs the tests and creates a draft release with generated notes and the patch record template, as openstackid does. push.yml now runs on branch pushes only and can be called by the release workflow, so a release tag runs the test suite once.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
📘 OpenAPI / Swagger preview ➡️ https://OpenStackweb.github.io/summit-api/openapi/pr-685/ This page is automatically updated on each push to this PR. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the draft-release automation changes.
No open issues 🎉
What changed in this PR
Adds draft-release automation for vX.Y.Z tags on production commits, connecting the existing test workflow with generated release notes and a patch record for manual completion.
Changes:
- Verifies the tagged commit is on
productionand runs tests before creating a draft release. - Makes the push test workflow reusable and limits its direct push trigger to branches, avoiding duplicate test runs for release tags.
- Adds dependency-based release-note grouping and a patch record template covering deployment date, updated components, and security advisories.
| File | Description |
|---|---|
.github/workflows/release-draft.yml |
Validates production ancestry, runs tests, and creates the draft release. |
.github/workflows/push.yml |
Enables reusable calls and restricts push-triggered tests to branches. |
.github/release.yml |
Groups generated notes into dependency updates and other changes. |
.github/RELEASE_NOTES_TEMPLATE.md |
Defines patch record fields and manual draft-creation instructions. |
Review effort: Balanced
ref: https://app.clickup.com/t/1k5eh578mb6
Summary
Pushing a
vX.Y.Ztag on a commit ofproductionnow creates a draft release that carries the patch record, as openstackid #209 does for the IdP. summit-api has no GitHub releases today: its tags (the latest isv4.0.56) have no release notes.Changes
.github/workflows/release-draft.yml(new), on a push of a tagvX.Y.Z:on-production: fails unless the tagged commit is onproduction, the branch releases are tagged from.test: runspush.ymlon the tagged commit, as a reusable workflow with the repository secrets.draft: creates the release as a draft with generated notes (grouped by.github/release.yml) and the patch record template, withvX.Y.Zreplaced by the tag. The draft is published by hand once its fields are filled in, and the deploy date is added once the release runs in production..github/workflows/push.yml: adds theworkflow_calltrigger, and itspushtrigger now covers branches only. A tag push used to run the suite on its own; now it runs once, inside the release workflow. Branch pushes and the jobs do not change..github/RELEASE_NOTES_TEMPLATE.md(new): the patch record template (release tag, deploy date, components updated, CVEs and advisories), the same as openstackid's..github/release.yml(new): groups the generated notes into "Dependency updates" (pull requests labelleddependencies, which Dependabot adds) and "Other changes".Notes
push.ymltakes 1.5 to 2 hours (the integration matrix on MySQL), so the draft appears that long after the tag is pushed. Keeping tags out ofpush.ymlavoids running the suite twice for every release.vX.Y.Zno longer runs the tests.v4.0.56has no release; it can be drafted by hand with the command in the template.Tests
release-draft.ymldiffers from openstackid's only in the workflow it calls, and the template andrelease.ymlare identical to openstackid's.sedof the draft step was run locally on the template with a sample tag: everyvX.Y.Zis replaced.v4.0.56returns the rangev4.0.55...v4.0.56, so the generated notes start at the previous tag even though the repository has no releases yet.push.ymlrun on this branch shows that the changed trigger block is valid. The release workflow itself runs only on a tag push.Summary by CodeRabbit