Skip to content

test_migration_docs_and_changelog_match_the_new_contract breaks when the changelog is frozen for a release #2034

Open

Description

@gerchowl

tests/test_seeded_hook_runner_migration.py::test_migration_docs_and_changelog_match_the_new_contract asserts that [#1929] is in the FIRST ### Added list of CHANGELOG.md, which is under ## Unreleased. prepare-release 1.19.0 moved the entries into ## [1.19.0] - TBD, so the test fails on release/1.19.0 (#2033) and now on dev.

Fix: assert the entry exists under an ### Added heading in Unreleased OR in the pending or most recent release section, without depending on which section is first. Also scan the repo's tests for the same brittle pattern (changelog.split("### Added", 1) and the like) and fix them all.

Refs: #1929

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions