Repository navigation
Only run unittest-editable on PRs that touch Python packaging - #24674
Conversation
pull.yml runs the full unit-test suite twice on every PR, on Linux, macOS and Windows: once via `unittest` and again via `unittest-editable`. The second copy adds coverage of the editable install path only, but costs ~200 self-hosted minutes per PR run (~104 min on windows.4xlarge, ~49 on mt-l-x86iavx512-8-64, plus a macos-m1-stable slot). Gate unittest-editable on pull_request to the files that affect an editable install: setup.py, pyproject.toml, install_executorch*, install_requirements*, install_utils.py, requirements-*, src/executorch, the unittest/setup CI scripts, and the workflow files. It still runs on every push to main and release branches, so an editable-only break is caught right after it lands. `unittest` itself (including Windows) is unchanged. Follow-up option, not done here: moving the Windows leg of `unittest` to trunk (trunk already runs Windows unittest-release) would save another ~$4k/month of windows.4xlarge but drops pre-merge Windows signal.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24674
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 4ced71a with merge base d1f597e ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude Review this change and check for any potential issues / regressions |
|
Claude finished @psiddh's task in 3m 27s —— View job The gating logic is correct: push and Detailed reviewPR Review: #24674SummaryThe PR skips Infrastructure
Performance
Code Quality
RecommendationRequest Changes. These are small fixes to the filter list. Adding |
pull.yml runs the full unit-test suite twice on every PR, on Linux, macOS and
Windows: once via
unittestand again viaunittest-editable. The secondcopy adds coverage of the editable install path only, but costs ~200
self-hosted minutes per PR run (~104 min on windows.4xlarge, ~49 on
mt-l-x86iavx512-8-64, plus a macos-m1-stable slot).
Gate unittest-editable on pull_request to the files that affect an editable
install: setup.py, pyproject.toml, install_executorch*, install_requirements*,
install_utils.py, requirements-*, src/executorch, the unittest/setup CI
scripts, and the workflow files. It still runs on every push to main and
release branches, so an editable-only break is caught right after it lands.
unittestitself (including Windows) is unchanged.Follow-up option, not done here: moving the Windows leg of
unittesttotrunk (trunk already runs Windows unittest-release) would save another
~$4k/month of windows.4xlarge but drops pre-merge Windows signal.
Context
Part of a set of CI cost reductions for self-hosted (OSDC / AWS) runners. Estimates come from the last 30 days of GitHub Actions run counts times per-job runtimes of a sample run, priced at AWS on-demand rates as a proxy. Independent of the other PRs in the set; they all merge cleanly together.
Validation
Edited YAML parses, and actionlint 1.7.12 reports no diagnostics introduced by this change compared with the base commit. Pre-existing diagnostics were recorded separately. GitHub CI is pending.
Authored with AI assistance; this handoff was reviewed and the PR was opened with Codex.