Skip to content

release.yml: a dry run stops at the changelog's '— unreleased' heading #151

Closed

Description

@CaffeinatedCoder

What happens

release.yml's step "Release notes from the changelog" refuses two things. A version with no section stops a tag, and lets a run from a branch go on with a warning, "so the rest can be exercised" (the step's comment). A version whose section is headed — unreleased stops every run, a dry run from a branch included: the check of the heading's form has no such exception.

main is in that state from the commit that opens a version to the commit that dates it, on purpose: the date replaces unreleased in the commit that is tagged (the comment at the top of CHANGELOG.md). Within that stretch a dry run from main fails before Build, Pack, the pack checks and the SBOM step. Outside it a dry run goes on: from the commit that was tagged, whose section has its date, until the next version is opened. main is inside the stretch today, since 11.0.0-preview.1 is open and has no date yet.

The free stretch ends with the first change that needs a changelog line. ChangelogConsistencyTests allows no section newer than the version Directory.Build.props ships and — unreleased for that version alone, so such a change opens the next version.

Corrected on 2026-11-16. This issue first said that main is in that state between two releases, and that the only commit a dry run can rehearse on is the one about to be tagged. That left out the commits after a release and before the next version is opened.

Measured

The step's own lines, run on 2026-11-16 against the CHANGELOG.md of main (1690320), VERSION=11.0.0-preview.1:

GITHUB_REF Output Exit
refs/heads/main ::error::The heading of 11.0.0-preview.1 in CHANGELOG.md is not '## [11.0.0-preview.1] — yyyy-mm-dd'. 1
refs/tags/v11.0.0-preview.1 the same 1, which is the refusal that is meant

To decide

Whether a run that is no tag goes on with a warning for an — unreleased heading, as it does for a missing section, with notes that say it is a dry run. A tag stops either way.

ReleaseWiringConventionTests (#35) runs this step and holds the tag's refusal and both answers for a missing section. It asserts nothing for a dry run with an — unreleased heading, so that it does not pin what this issue is about.

Activity

  1. added this to the 11.0.0 milestone on Nov 16, 2026
  2. added
    bug
    severity/low
    area/release
    on Nov 16, 2026
  3. CaffeinatedCoder commented on Nov 16, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Fixed in #161: a tag still stops at an — unreleased heading; a run that is no tag now goes on with ::warning::… A tag for $VERSION would stop here. and notes that begin (dry run: the changelog section of $VERSION has no date), as for a version with no section. ReleaseWiringConventionTests.A_dry_run_whose_version_is_unreleased_goes_on runs the step on a branch ref and holds it; A_tag_whose_version_has_no_dated_section_stops keeps holding the tag's refusal. Each was shown to fail with its rule taken out of the step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/releasebugseverity/low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions