Skip to content

Add release preflight checks for artifact smoke tests and changelog/version sync#58

Merged
srichs merged 1 commit intomainfrom
codex/implement-release-item-priorities-in-review-doc
Feb 17, 2026
Merged

Add release preflight checks for artifact smoke tests and changelog/version sync#58
srichs merged 1 commit intomainfrom
codex/implement-release-item-priorities-in-review-doc

Conversation

@srichs
Copy link
Owner

@srichs srichs commented Feb 17, 2026

Motivation

  • Prevent releasing a package when pyproject.toml and CHANGELOG.md are out of sync and catch artifact/entrypoint problems before tagging.
  • Provide an automated, reproducible preflight that builds wheel/sdist and verifies installed entrypoints to reduce release-time surprises.

Description

  • Add a new module src/devr/release_preflight.py providing project_version, changelog_versions, validate_changelog, artifact build orchestration, and smoke_test_artifact that installs artifacts into isolated venvs and verifies devr --version and python -m devr --version.
  • Add unit tests in tests/test_release_preflight.py covering changelog heading extraction and validation and project_version parsing.
  • Update the release checklist in README.md to call python -m devr.release_preflight as the canonical preflight step and add an Unreleased changelog note documenting the change.

Testing

  • Ran targeted tests with pytest -q tests/test_release_preflight.py tests/test_cli.py and they passed.
  • Ran the full test suite with pytest -q and all tests passed (97 passed).
  • Attempted to run the end-to-end preflight with PYTHONPATH=src python -m devr.release_preflight, but the environment lacks the build packaging module so the artifact build/smoke steps could not complete here (this is expected in the current sandbox).

Codex Task

@srichs srichs merged commit 1086782 into main Feb 17, 2026
8 of 9 checks passed
@srichs srichs deleted the codex/implement-release-item-priorities-in-review-doc branch February 17, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant