Repository navigation
test: handle frozen changelog sections in migration contract - #2035
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance taskrefactor-- Code restructuringtest-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code styleModifiers
!)Changes Made
Changelog Entry
No changelog needed: test-only correction with no consumer-visible behavior change.
Testing
Manual Testing Details
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-redexited 1: two failures (valid entry two releases back rejected; historical Changed entry incorrectly accepted), six passed.uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/frozen-r2-greenexited 0: 45 passed.nix developwith repository hooks enabled.Checklist
Additional Notes
Targets release/1.19.0 as required by #2034. No merge or workflow dispatch requested or performed.
Refs: #2034