Reduce mac CI cost#19708
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19708
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 6 Pending, 1 Unclassified FailureAs of commit 869c776 with merge base 3d86cc7 ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review this PR |
|
Claude finished @metascroy's task in 3m 37s —— View job Review of PR #19708 — Reduce mac CI cost
Overall AssessmentThe approach is sound: use a lightweight Detailed Findings1.
One nit: 2. Missing paths that could affect gated jobs
3. The nested parenthesization combining the fork check with the path gate is correctly structured: if: |
!github.event.pull_request.head.repo.fork &&
(
github.event_name != 'pull_request' ||
contains(...)
)On non-PR events, 4. Zephyr job refactoring (trunk.yml:66-224) The matrix collapses from 5 entries to 3 (one per target), with the inlined script running both
5. The reusable workflow (line 30) fetches files via 6. PR description vs. actual changes The PR description mentions changes to SummaryThe gating logic is well-designed and correctly handles all trigger types. The No blocking issues found. The PR should meaningfully reduce macOS CI costs on PRs that don't touch Apple-specific code. |
Skip macOS CoreML/MPS jobs on PRs that don't touch their relevant source. Non-PR events (push to main, schedule, workflow_dispatch, ciflow/* tag) bypass the gate so HUD signal on main is preserved. Linux/Windows jobs untouched.