Migrate CPU CI to GH#2587
Open
xiaoyu-work wants to merge 6 commits into
Open
Conversation
Copilot-Session: 95fa01d3-27be-4172-80da-0263c3eeb645
Copilot-Session: 95fa01d3-27be-4172-80da-0263c3eeb645
…ows CI failures On Windows, HuggingFace loads .safetensors files using memory mapping, which keeps file handles open. When tempfile.TemporaryDirectory exits and tries to clean up, it fails with PermissionError [WinError 5]. Using ignore_cleanup_errors=True (Python 3.10+) prevents the cleanup error from propagating and causing the test to fail.
xiaoyu-work
commented
Jul 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the CPU CI test execution from Azure Pipelines to GitHub Actions, and updates a few CLI smoke tests to be more tolerant of temporary-directory cleanup issues (common on Windows runners).
Changes:
- Add a new GitHub Actions workflow to run CPU unit tests on Linux and Windows and upload JUnit + coverage artifacts.
- Update CLI smoke tests to use
TemporaryDirectory(ignore_cleanup_errors=True)to reduce teardown flakiness. - Comment out the Azure Pipelines CPU test jobs (effectively disabling them in the YAML).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
test/cli/test_cli_whisper_smoke.py |
Makes temp-dir cleanup more resilient during Whisper CLI smoke export test. |
test/cli/test_cli_test_model_smoke.py |
Makes multiple smoke tests more resilient to temp-dir cleanup failures. |
.github/workflows/cpu-ci.yml |
New GitHub Actions CPU CI workflow for Linux/Windows with artifacts. |
.azure_pipelines/olive-ci.yaml |
Comments out Azure CPU CI jobs as part of moving CI to GitHub Actions. |
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.
Describe your changes
Checklist before requesting a review
lintrunner -a(Optional) Issue link