Repository navigation
fix(ci): reuse the iOS Periphery index across reports - #185757
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR builds one iOS index for separate app and shared-kit Periphery reports and consolidates their automatic workflow admission. Example: A non-draft PR changes apps/ios/Sources/Example.swift.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it removes duplicate iOS compiler work using the existing workflow owner, and inspection found no definite introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub Actions selects native scan scopes, builds compiler indexes, and runs Periphery; report artifacts feed app checks, the shared Swift-USR intersection, and a privileged PR commenter. flowchart TD
A[Pull request changes] --> B[Combined scope detection]
B --> C[iOS index producer]
B --> D[macOS index producer]
C --> E[Separate app and shared reports]
D --> E
E --> F[App enforcement and shared intersection]
E --> G[Trusted PR commenter]
Technical reviewBest possible solution: Use the existing combined workflow to build each selected platform once while preserving independent scan policies, report completion, and producer-attempt ownership. Do we have a high-confidence way to reproduce the issue? Current main independently admits the automatic iOS app scan and combined workflow's iOS shared scan for an iOS source change, and both build an index; this review executed no target code. Is this the best way to solve the issue? The consolidation follows the existing macOS owner, removes the replaced automatic producer, and keeps app strictness, shared retention, and exact-USR intersection separate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dfff2ccf6cbf. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +322, Docs 0, Config -39. Total +283 across 10 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 6:22 AM ET / 10:22 UTC. |
|
Merged via squash.
|
What Problem This Solves
Automatic iOS Periphery checks compile the same application twice when app and shared-kit scopes overlap.
User Impact
CI builds one compiler index per selected platform and keeps independent app and shared-kit findings, artifacts, and enforcement. This is an internal CI change; runtime behavior is unchanged.
Why This Change Was Made
The canonical macOS Periphery workflow now owns automatic iOS admission as well. Each platform builds once, then runs separate app and shared scans against that index. App strictness, generated-model retention, exact Swift-USR intersection, draft handling, and manual iOS/shared entrypoints remain intact.
Each report carries its own scan/upload completion facts, so a sibling report failure cannot suppress a valid result. The commenter attempts both reports before reporting errors, and consumers bind artifacts to the newest actual producer attempt, including failed attempts.
Evidence