Skip to content

Release notes workflow: an open milestone without a due date is a valid next milestone - #465

Merged
tae898 merged 1 commit into
mainfrom
fix/release-notes-next-milestone-no-due-date
Nov 23, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/release-notes-next-milestone-no-due-date

Conversation

@tae898

@tae898 tae898 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

The step of release-notes.yml that closes the milestone of a final release moves what is still open in it to the next milestone, and it looked for that milestone only among open milestones that have a due date. The open milestone 27.1.1 has none. I ran the filter of the step on the live milestone list with the data of today (26.12.1 is number 2, due 2026-12-02): it finds nothing, so on release day the step would fall through to the upstream main version. While upstream main still reads 26.12.1 (the same as the base), the step stops with there is no next open milestone with a due date and moves and closes nothing, and someone has to fix it by hand in the middle of the release. assign-milestone.yml already treats a missing due date as the latest one, so the two disagreed.

The filter now takes an open milestone without a due date when no dated one follows, and sorts a missing date last. The comment above the step and the sentence in development/release.adoc say the same.

input (open milestones) next milestone before next milestone after
live list: 26.12.1 (due 2026-12-02), 27.1.1 (no due date) none 3 (27.1.1)
26.12.1, 27.1.1 dated 2027-01-02, an undated one 3 3
the closing milestone undated, one dated, one undated 3 3 (the dated one)

I ran each row with jq, the old and the new filter, on the live API output (row 1) or on the inline JSON of the row; the step is a shell step with no test file, and the filter is the only line that changed. Rows 2 and 3 are unchanged on purpose: the new filter must keep picking a dated milestone.

Related issues

None. It follows from reading the release procedure for 26.12.1.

Docs

development/release.adoc (the GitHub Release and milestone section) says it.

Checklist

  • A regression test fails on the old code and passes on the new (does not apply: a workflow step; the three rows above ran against the old and the new filter)
  • The test suite that the change can affect passes (does not apply: no Python or test file changed)
  • uvx pre-commit run --files <changed files> passes

…id 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.
@tae898 tae898 added this to the 26.12.1 milestone Nov 23, 2026
@tae898 tae898 added documentation Improvements or additions to documentation github_actions Pull requests that update GitHub Actions code labels Nov 23, 2026
@tae898 tae898 self-assigned this Nov 23, 2026
@tae898
tae898 merged commit 4b99b65 into main Nov 23, 2026
18 checks passed
@tae898
tae898 deleted the fix/release-notes-next-milestone-no-due-date branch November 23, 2026 10:58
@tae898 tae898 mentioned this pull request Nov 30, 2026
1 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant