Skip to content

test: handle frozen changelog sections in migration contract - #2035

Merged
gerchowl merged 4 commits into
release/1.19.0from
bugfix/2034-frozen-changelog-test
Nov 4, 2026
Merged

gerchowl merged 4 commits into
release/1.19.0from
bugfix/2034-frozen-changelog-test

Conversation

@gerchowl

@gerchowl gerchowl commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Release preparation moves changelog entries out of Unreleased, causing the seeded hook migration contract test to fail. Find every section containing #1929 anywhere in the changelog, require at least one match, and assert that every occurrence is under Added. This includes older releases and rejects entries under Fixed or any other category.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task
  • refactor -- Code restructuring
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style

Modifiers

  • Breaking change (!)

Changes Made

  • Parse level-two release boundaries and level-three categories in one test helper.
  • Exercise the repository changelog, populated Unreleased, pending release, newest published release, and an entry two releases back.
  • Check category ordering, multiple matching sections, missing entries, Fixed entries in another section, and a misplaced historical entry under Changed.
  • Scanned all tests for positional changelog/category splits; this was the only affected test.

Changelog Entry

No changelog needed: test-only correction with no consumer-visible behavior change.

Testing

  • Touched tests pass locally.
  • Manual testing performed.

Manual Testing Details

  • RED: uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py -k 'docs_and_changelog or rejects_missing' -n 4 --basetemp=$HOME/.cache/devkit-pytest/frozen-r2-red exited 1: two failures (valid entry two releases back rejected; historical Changed entry incorrectly accepted), six passed.
  • GREEN: uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/frozen-r2-green exited 0: 45 passed.
  • Commits run inside nix develop with repository hooks enabled.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code where useful
  • Documentation reviewed; no changes needed
  • I have updated CHANGELOG.md (not needed for this test-only change)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective
  • New and existing touched unit tests pass locally
  • Any dependent changes have been merged and published (none)

Additional Notes

Targets release/1.19.0 as required by #2034. No merge or workflow dispatch requested or performed.

Refs: #2034

@gerchowl
gerchowl merged commit c636bfb into release/1.19.0 Nov 4, 2026
16 checks passed
@gerchowl
gerchowl deleted the bugfix/2034-frozen-changelog-test branch November 4, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant