-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix python test issues for the 1.23.0 release #26118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes Python packaging test issues for the 1.23.0 release by addressing installation paths, expanding macOS test coverage, and enabling custom operator tests in the NuGet pipeline.
- Fixed pip install command in Linux smoking test to use correct wheel directory location
- Added comprehensive macOS test matrix covering Python 3.10-3.13 across macOS 13-15
- Enabled custom operator tests in Windows NuGet pipeline by downloading and placing required DLL
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| py-package-smoking-test-macos.yml | New parameterized template for macOS wheel testing |
| py-package-smoking-test-linux.yml | Fixed pip install path to use current directory |
| py-package-test-pipeline.yml | Expanded to use new macOS template with comprehensive test matrix |
| test_win.yml | Added custom operator DLL download and placement for NuGet tests |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
tools/ci_build/github/azure-pipelines/templates/py-package-smoking-test-macos.yml
Show resolved
Hide resolved
### Description 1. Fixes Python Wheel Installation Path: In the Linux smoking test (py-package-smoking-test-linux.yml), the pip install command was corrected to use --find-links . to locate the wheel in the correct directory. This resolves an issue where the installation script was looking in the wrong location. 2. Expands python package test pipeline's macOS Test Matrix: A new parameterized template (py-package-smoking-test-macos.yml) is introduced to test macOS wheels. The main pipeline (py-package-test-pipeline.yml) now uses this template to create a comprehensive test matrix, covering Python versions 3.10, 3.11, 3.12, and 3.13 across macOS versions 13, 14, and 15. 3. Enable more tests in Nuget Test Pipeline. The pipeline is for testing packaged ONNX Runtime nuget packages. In the Windows NuGet test template (test_win.yml), a step has been added to download and place the custom_op_library.dll in the appropriate test directory. This ensures the custom op tests can find their required dependencies. The SKIPNONPACKAGETESTS flag has been removed to ensure all such tests are run. ### Motivation and Context Improve packaging tests.
Description
Fixes Python Wheel Installation Path: In the Linux smoking test (py-package-smoking-test-linux.yml),
the pip install command was corrected to use --find-links . to locate the wheel in the correct directory.
This resolves an issue where the installation script was looking in the wrong location.
Expands python package test pipeline's macOS Test Matrix: A new parameterized template (py-package-smoking-test-macos.yml) is introduced to test macOS wheels. The main pipeline (py-package-test-pipeline.yml) now uses this template to create a comprehensive test matrix, covering Python versions 3.10, 3.11, 3.12, and 3.13 across macOS versions 13, 14, and 15.
Enable more tests in Nuget Test Pipeline. The pipeline is for testing packaged ONNX Runtime nuget packages. In the Windows NuGet test template (test_win.yml), a step has been added to download and place the custom_op_library.dll in the appropriate test directory. This ensures the custom op tests can find their required dependencies. The SKIPNONPACKAGETESTS flag has been removed to ensure all such tests are run.
Motivation and Context
Improve packaging tests.