From e5cf3b545282362124f7889da39710aae070e1ff Mon Sep 17 00:00:00 2001 From: Taewoon Kim Date: Mon, 23 Nov 2026 19:31:25 +0900 Subject: [PATCH] Release notes workflow: an open milestone without a due date is a valid next milestone The step that closes the milestone of a final release picked the next milestone only among open milestones with a due date. The open milestone 27.1.1 has none, so on release day the 26.12.1 items would not have moved to it: the step would have fallen through to the upstream version and, while upstream main still reads 26.12.1, failed with 'no next open milestone with a due date'. assign-milestone.yml already treats a missing due date as the latest; this step now does too. --- .github/workflows/release-notes.yml | 5 +++-- docs/modules/ROOT/pages/development/release.adoc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 766498ba..83a6d062 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -124,7 +124,8 @@ jobs: # Only a final release closes its milestone. A dev tag leaves it open (the cycle goes on); a post tag has no milestone of its own # (its notes come from the commit range, not from a milestone). Items still open in the milestone move to the next one first, and - # every move is logged. The next one is the open milestone with the earliest due date after this one. When there is none, the + # every move is logged. The next one is the open milestone with the earliest due date after this one; an open milestone without a due + # date counts as the latest, as in assign-milestone.yml, so it is taken when no dated one follows. When there is none, the # milestone is created, named after the next upstream engine version (due 30 days after this one; the base of the upstream `main` version, as in # development/release.adoc), when that can be read. Otherwise nothing is moved or closed and the job fails, so the maintainer # creates the next milestone and re-runs this workflow (the release step is a no-op edit the second time). @@ -146,7 +147,7 @@ jobs: exit 0 fi if [ "$open_issues" != 0 ]; then - next="$(jq -r --arg n "$number" --arg due "$due" '[.[] | select(.state == "open" and (.number | tostring) != $n and .due_on != null and ($due == "" or .due_on > $due))] | sort_by(.due_on) | .[0].number // empty' <<< "$milestones")" + next="$(jq -r --arg n "$number" --arg due "$due" '[.[] | select(.state == "open" and (.number | tostring) != $n and ($due == "" or .due_on == null or .due_on > $due))] | sort_by(.due_on // "9999-12-31T23:59:59Z") | .[0].number // empty' <<< "$milestones")" if [ -z "$next" ]; then upstream="$(curl -fsS https://raw.githubusercontent.com/ArcadeData/arcadedb/main/pom.xml | sed -n '/arcadedb-parent<\/artifactId>/,/<\/version>/ s/.*\(.*\)-SNAPSHOT<\/version>.*/\1/p' | head -n 1 || true)" if [[ "$upstream" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ && "$upstream" != "$BASE" ]]; then diff --git a/docs/modules/ROOT/pages/development/release.adoc b/docs/modules/ROOT/pages/development/release.adoc index ce59e6b8..11911954 100644 --- a/docs/modules/ROOT/pages/development/release.adoc +++ b/docs/modules/ROOT/pages/development/release.adoc @@ -193,7 +193,7 @@ A release does not end on PyPI: it ends with a GitHub Release, as in the upstrea * The notes come from `scripts/release_notes.py`. The milestone is named after the base `A.B.C` (`26.11.1` for `26.11.1`, `26.11.1.dev2` and `26.11.1.post1`). A pull request is listed when it is merged, has that milestone and its merge commit is in the tag, grouped by its first matching label: `bug` (Bug fixes), `performance` (Performance), `enhancement` (Features), `documentation` (Documentation), everything else under Other. Each line is the title and `(#N)`. The notes also have the install lines, the engine version and the PyPI pages of both packages. * A final release lists the whole milestone. A `devN` lists only what is not in the previous dev tag of the same base. A pull request without the milestone is not in the notes of a final or dev release, so check the milestone before the tag. * A `postN` does not use a milestone, because the final release closed it. Its notes list every pull request merged between the previous tag of the same base (the final or `post(N-1)`) and the tag, found from the commits of that range, whatever milestone the pull request has or none. -* After a final release (not `devN`, not `postN`) the milestone `A.B.C` is closed, after what is still open in it moves to the next milestone. The next milestone is the open one with the earliest due date after this one. When there is none, the workflow creates one named after the next upstream engine version (the base of the upstream `main` version, the same command as in <>) and due 30 days after the closed one. When that version cannot be read, or is the same version, nothing is moved or closed and the run fails with a message: create the next milestone with a due date and re-run the workflow. Every move is logged. The milestone auto-assignment of merged pull requests, where it is set up, then picks the next milestone, because the closed one is no longer open. +* After a final release (not `devN`, not `postN`) the milestone `A.B.C` is closed, after what is still open in it moves to the next milestone. The next milestone is the open one with the earliest due date after this one; an open milestone without a due date counts as the latest, as it does for the auto-assignment, so it is taken when no dated one follows. When there is none, the workflow creates one named after the next upstream engine version (the base of the upstream `main` version, the same command as in <>) and due 30 days after the closed one. When that version cannot be read, or is the same version, nothing is moved or closed and the run fails with a message: create the next milestone with a due date and re-run the workflow. Every move is logged. The milestone auto-assignment of merged pull requests, where it is set up, then picks the next milestone, because the closed one is no longer open. * A run for a release that already exists edits its notes and flag, so a re-run is safe. Preview the notes before the tag, and read them again after the release: