Repository navigation
ci(release): install and use the built wheel and sdist before publishing - #527
Merged
Merged
Conversation
vjaganat90
force-pushed
the
ci/release-artifact-check
branch
5 times, most recently
from
October 13, 2026 15:50
866f61a to
6d4970d
Compare
vjaganat90
force-pushed
the
ci/release-artifact-check
branch
3 times, most recently
from
October 13, 2026 17:41
11cebed to
516f143
Compare
Nothing installed what the publish job built: a wheel missing its package data (adapters, tutorials, _version.py) or an sdist that cannot build from source would have reached PyPI. The build job now hands its artifacts to a check-artifacts job that installs each one into a fresh virtual environment with nothing from the checkout on the path, and uses it from outside the checkout: --version against the version the build resolved, --help, an import of the Python API and the language package, --explain, and a helloworld compile with the config and adapters the package ships. The publish job uploads only after that job passes. build_wheel.yml runs the same job on every pull request, so a packaging break is seen before a release.
vjaganat90
force-pushed
the
ci/release-artifact-check
branch
from
October 13, 2026 17:50
516f143 to
a62d5a0
Compare
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.
Stacked on #525 (
fix/yaml-layer-is-yaml). Merge that first; this PR's own changes are the commits above it.What
sophios --versionmust match the release version, plus--help, an import of the Python API,--explain wic016,--generate_config, and a compile of the packaged helloworld tutorial. A new action,.github/actions/check-artifacts, does this. Intest_and_publish_pypi.yml,publish(the only job that runs twine) now needs it, andbuild_wheel.ymlruns the same check on every PR.tests/core/test_release.pypins the gate: the upload needs the check, the check gets the version the build resolved, and it installs both artifacts.Why
Nothing installed the built artifacts before they were published. A wheel missing its package data, or an sdist that cannot build, would have reached PyPI. Locally, a wheel with its
cwl_adaptersremoved fails at the compile step, and a wrong expected version fails the version step.One thing left alone: when the sdist is built during a user's install,
setup.pywrites~/wic/global_config.jsonpointing at pip's temporary build tree. The check uses a throwaway HOME so that doesn't affect it. Phase 4 removes~/wic.