Skip to content

fix(ci): reuse the iOS Periphery index across reports - #185757

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-ios-periphery-index-reuse-20261027
Oct 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-ios-periphery-index-reuse-20261027

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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

  • Original-failure proof restored the three baseline workflows and reproduced two automatic iOS producers where the regression test requires one; candidate bytes were restored and verified before green tests.
  • The reviewed workflow blobs passed 137 focused tests and 1,028 broader CI tests remotely. Four subsequent test-only lint repairs add braces and replace a map spread with Object.assign; production workflow bytes are unchanged.
  • Final targeted lint, tooling typecheck, and ten-file formatting passed remotely after those test-only repairs. The documentation audit checked 16,048 internal links with zero broken links; final file manifests and a clean carrier diff were verified. Both delegated leases were stopped after completion.
  • Candidate-only native Xcode 27 qualification at exact head 0399be5 passed all eight jobs in run 40485812500, attempt 1: both platform producers, all four app/shared enforcement jobs, and shared-kit intersection. App reports contain zero findings; non-strict shared reports contain 311 iOS and 441 macOS findings, with zero exact-USR intersection.
  • All four report artifacts bind to that run and actual producer attempt 1, expire after 14 days, and have ZIP digests matching the API. Artifact IDs: iOS app 12732410118, macOS app 12732295201, iOS shared 12732440099, macOS shared 12732210349; intersection 12732307531. No same-source old/native finding-parity run is claimed.
  • Historical compile logs establish that indexing is substantial work; this PR claims one removed duplicate build, with no measured recurring time or billing savings.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc vincentkoc self-assigned this Oct 27, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL labels Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 27, 2026 10:05
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The iOS app scan and shared-kit scan independently build the iOS application index.
  • After: One iOS producer builds the index, then runs both scan policies with separate reports and enforcement.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has a coherent ownership cutover and useful executable boundary coverage, with native execution still unverified.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the external-contributor proof gate; supplied executable workflow tests support the change, but both exact-head native producers remain queued and historical native logs do not prove the new iOS app scan.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Contributors wait for overlapping native checks that compile the same iOS application twice.
Reason: The maintainer-authored direction removes redundant compiler work without introducing another index owner or changing scan policy.

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
Reviewed head: 0399be56268a0712039066c60b50d63a08efce65

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The pending Xcode 27 run has not yet demonstrated candidate app/shared reports, enforcement, intersection, and attempt-bound artifacts from the consolidated native producers.
Agent review details

How this fits together

GitHub 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 1f85bb8 adds .github/workflows/macos-periphery.yml:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1f85bb87fb4b; files: .github/workflows/macos-periphery.yml)
  • Peter Steinberger: Raw commit f2ef967 adds .github/workflows/ios-periphery-comment.yml:93 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f2ef967008fc; files: .github/workflows/ios-periphery-comment.yml)

PR surface

Tests +322, Docs 0, Config -39. Total +283 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 397 75 +322
Docs 2 3 3 0
Config 3 658 697 -39
Generated 0 0 0 0
Other 0 0 0 0
Total 10 1058 775 +283

Review metrics

Metric Value Why it matters
Workflow versus test LOC Workflows +658/-697; tests +397/-75 Workflow code shrinks overall; much of the commenter churn is indentation around per-report publication, while tests cover the consolidated producer and independent failure paths.
Reusable workflow input One new Boolean input: ios_only, default false Preserves the manual iOS entrypoint through the canonical workflow without adding a product configuration setting.

Labels

Label changes:

  • add P2: Removes substantial duplicate native compilation from overlapping CI scopes without changing application runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Removes substantial duplicate native compilation from overlapping CI scopes without changing application runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Use the pending exact-head native run to verify the consolidated producer's reports, enforcement, and artifact selection.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 6:22 AM ET / 10:22 UTC.

@vincentkoc
vincentkoc merged commit 443530a into main Oct 27, 2026
175 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-ios-periphery-index-reuse-20261027 branch October 27, 2026 12:08
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant