Skip to content

feat(ci): validate packages - #57

Merged
PatKamin merged 3 commits into
intel:mainfrom
PatKamin:validate-packages
Oct 29, 2026
Merged

PatKamin merged 3 commits into
intel:mainfrom
PatKamin:validate-packages

Conversation

@PatKamin

Copy link
Copy Markdown
Contributor

No description provided.

- Added a new verification job to ensure the published package matches
the built artifact.
- Running minimal examples to validate the package functionality.

Signed-off-by: Patryk Kamiński <patryk.kaminski@intel.com>
- Introduced a new Python script to check that the installed torch-tweak
release can run on an Intel XPU.
- Updated the release workflow to utilize this script for verifying
package integrity and compatibility during CI.

Signed-off-by: Patryk Kamiński <patryk.kaminski@intel.com>
- Replaced the inline verification steps in the release workflow with
 a dedicated `verify-release.yml` workflow.
- Possible to rerun the verification without publishing a package

Signed-off-by: Patryk Kamiński <patryk.kaminski@intel.com>
@PatKamin
PatKamin requested a review from a team as a code owner October 28, 2026 13:13
@PatKamin PatKamin changed the title Validate packages feat(ci): validate packages Oct 28, 2026
@PatKamin
PatKamin requested review from lukaszstolarczuk and a balanced review from Copilot October 28, 2026 14:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

2 open issues
What changed in this PR

Adds a post-publish validation workflow that installs the newly published torch-tweak wheel and verifies basic XPU functionality, and wires it into the release pipeline.

Changes:

  • Introduces a reusable verify-release workflow to download, install, and run a minimal XPU smoke test against a published wheel.
  • Updates release.yml to call the new verification workflow after publishing and to pass the resolved version via job outputs.
  • Adds a Python script to validate that the installed package matches the expected release and can run a simple XPU computation.
File Description
.github/​workflows/​verify-release.yml New workflow to download published wheel, optionally compare with build artifact, install, and run smoke checks on Intel GPU.
.github/​workflows/​release.yml Wires verification into the release pipeline and exposes the published version as a job output.
.github/​scripts/​check_installed_package.py New script that validates installed distribution metadata and runs a minimal XPU computation.

Review effort: Lite

Comment thread .github/workflows/verify-release.yml
Comment thread .github/workflows/verify-release.yml
runs-on: ubuntu-latest
environment:
name: ${{ inputs.target }}
url: >-

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related, but I just looked at it - do we need this url?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will automatically place these urls in the Deployments tab

- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.14"

@lukaszstolarczuk lukaszstolarczuk Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can add the same comment as in release.yml (and maybe more, to keep it the same value).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python is not used in release.yml anymore

Comment thread .github/workflows/verify-release.yml
@PatKamin
PatKamin merged commit d04164f into intel:main Oct 29, 2026
7 checks passed
@PatKamin
PatKamin deleted the validate-packages branch October 29, 2026 07:44
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.

3 participants