Skip to content

fix(ci): verify Python distributions before release - #63

Merged
tianyuzhou95 merged 1 commit into
inclusionAI:mainfrom
tianyuzhou95:codex/fix-python-release-verification
Sep 10, 2026
Merged

fix(ci): verify Python distributions before release#63
tianyuzhou95 merged 1 commit into
inclusionAI:mainfrom
tianyuzhou95:codex/fix-python-release-verification

Conversation

@tianyuzhou95

Copy link
Copy Markdown
Collaborator

The rc2 release failed when its clean wheel test imported akernel_sdk: --no-deps skipped the declared idna dependency. PR CI installed dependencies through editable installs and never ran the distribution verification that failed during publishing.

Use one composite action in PR CI and the release workflow to build and validate wheel/sdist metadata, install each artifact with its declared dependencies in a separate clean environment, run pip check, and verify isolated SDK imports, package versions, CLI entry-point metadata, and ak --help. The release uploads the exact artifacts verified by that action.

The existing release.published trigger and tag/version/main-ancestry checks remain in place. After merging, rc2 can be republished by recreating its Release and tag at the fixed commit, provided its artifacts have not been uploaded to PyPI. This PR does not change the SDK version or publish anything.

Validation: reproduced the original missing-idna failure with a no-dependency wheel install, then ran the shared action's shell steps against source exported from v0.1.6rc2 using Python 3.12. Both wheel and sdist passed dependency, isolated import, version, entry-point, and CLI checks. actionlint v1.7.12, YAML parsing, embedded Bash syntax checks, and git diff --check passed.

Install declared dependencies when testing SDK distributions so importing
akernel_sdk can resolve idna in a clean environment. Share wheel and
source-distribution build and installation checks between PR CI and
publishing to catch release verification failures before merging.

Check dependency consistency, isolated imports, package versions, and the
CLI for both artifacts while preserving the existing release trigger and
tag validation.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
@tianyuzhou95
tianyuzhou95 merged commit 940e13e into inclusionAI:main Sep 10, 2026
9 checks passed
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