Skip to content

ci: install and verify exact Python release artifacts - #504

Merged
imran-siddique merged 1 commit into
mainfrom
agent/verify-python-release-artifacts
Aug 11, 2026
Merged

ci: install and verify exact Python release artifacts#504
imran-siddique merged 1 commit into
mainfrom
agent/verify-python-release-artifacts

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

Gate PyPI publication on installing and exercising both exact artifacts to be uploaded: the wheel and source distribution. Each is installed in a separate clean environment and tested outside the checkout. Release tags must match package metadata.

The smoke test checks distribution/runtime version agreement, import provenance for both cmcp_runtime and cmcp_verify, core configuration construction, and the installed cmcp console entry point. Twine metadata validation is also part of the build job.

Root cause

The previous workflow built archives and immediately uploaded them. Source-tree CI could not detect packaging omissions, stale build contents, broken console scripts, install-time dependency failures, or a release tag that disagreed with package metadata.

Validation

  • Built the 0.4.0 wheel and sdist
  • Validated both with current Twine 7
  • Installed each artifact into a separate clean environment
  • Ran provenance/version/configuration smoke checks outside the checkout
  • Invoked the installed CLI for both artifacts
  • Added a focused smoke-script regression test
  • Full clean-environment suite: 1051 passed, 8 skipped
  • Ruff and mypy: clean
  • git diff --check: clean

Documentation

  • Documented the artifact gate in CONTRIBUTING
  • Added an Unreleased security changelog entry

@imran-siddique
imran-siddique marked this pull request as ready for review August 11, 2026 19:01
Signed-off-by: Imran Siddique <imran.siddique@opaque.co>
@imran-siddique
imran-siddique force-pushed the agent/verify-python-release-artifacts branch from 3cb25dd to 1e65265 Compare August 11, 2026 19:16
@imran-siddique
imran-siddique merged commit 482a081 into main Aug 11, 2026
11 checks passed
@imran-siddique
imran-siddique deleted the agent/verify-python-release-artifacts branch August 11, 2026 19:20
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