Repository navigation
fix(ci): preserve Periphery reports across partial reruns - #188198
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 identifies retained Periphery producer executions across partial reruns and downloads their validated artifact IDs. Example: Run 40824254298 projects the successful macOS producer from attempt 1 into attempt 2 while rerunning iOS.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a current-main report-selection defect, and no discrete introduced correctness or security bug was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub Actions produces separate iOS and macOS Periphery artifacts; the shared-code intersection and trusted PR commenter consume those reports using producer execution metadata. flowchart LR
A[Platform scans] --> B[Report artifacts]
C[Actions job history] --> D[Physical execution selector]
B --> E[Artifact identity validation]
D --> E
E --> F[Shared code intersection]
E --> G[Authorized PR comment]
Technical reviewBest possible solution: Qualify and land the existing repair while preserving physical producer ownership, independent reports, and current publication authorization. Do we have a high-confidence way to reproduce the issue? Current-main source selects the wrong suffix for the retained execution observed in historical Actions metadata; this review did not execute a reproduction. Is this the best way to solve the issue? Resolving execution ownership inside both existing consumers is a focused repair, and the pinned download action supports the selected-ID contract without changing extraction paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 358300de55eb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +592, Config +102, Other +2. Total +696 across 5 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 30, 2026, 5:09 AM ET / 09:09 UTC. |
|
Merged via squash.
|
…88198) * fix(ci): bind Periphery artifacts to producer executions * test(ci): bind publication artifacts to fixture runs * test(ci): qualify producer fixtures and line allocation
Closes #188197
What Problem This Solves
Fixes Periphery selecting a missing or unrelated report when a partial Actions rerun retains a successful platform producer from an earlier attempt.
User Impact
Maintainers keep the successful platform's report after rerunning another job. A genuinely new failed producer cannot reuse an older successful report. No user configuration or migration is required.
Why This Change Was Made
Both report-selection boundaries now identify the physical producer execution from its ordered steps and timestamps, then validate and download that execution's unique artifact ID. Existing publication authorization and independent platform handling stay enforced.
The workflow delta is +124/-22 lines; regression tests are +658/-66, with the exact 592-line allocation and no shared ceiling increase.
Evidence
8a48e2ce1e6911a71a9f03c246105bdae66e80f6: 123/123 focused tests passed with actual Node 26.12.1 workers; targeted types, typed lint, formatting, and canonical allocation check passed.ac028b0578e3ad70ba3b59601e22ea71ba500ee5: 1,039/1,039 tests and the full workflow checker passed. The final commit changes fixture construction and allocation only; workflow bytes are identical. Its 17 test-style lint findings were corrected and targeted lint now passes.Actual Actions qualification
Periphery run41029294625, exact candidate8a48e2c: both real iOS/macOS consumer builds, app/shared scans and first intersection passed. One intersection-only rerun was accepted at09:20:54UTC. Attempt2 job123986214029 passed at09:21:51UTC without rebuilding either producer.
GitHub projected both retained producers into logical attempt2 with new job IDs. Root compared their complete ordered step/status/timestamp keys to attempt1: exact equality, including legitimate macOS step gaps1..13,25..27. The resolver selected earliest physical cohort attempt1.
The actual download logs show ID-only selection and matching SHA256:
Both downloads completed successfully, followed by exact-identity intersection/upload. Artifacts were unique, unexpired and bound to this run/head. The rendered59181-byte job log SHA256 is2e2c3e5ee96fceb7f402be084e985cdbc77ddfbb996150bd4dcf6dd478b140fe. OrdinaryCI41029294770 and latest CI/security/dependency gates also passed.
Review dispositions
Latest exact-head ClawSweeper review has no findings, security issue or before-merge item. Its partial-rerun/exact-ID proof concern is closed by the actual trace above. Failed-new-producer/no-old-artifact fallback is covered for both platforms by the passing behavioral fixtures; no real producer was deliberately broken. A separate old-code baseline execution was not run; historical failing projection and the observed real attempt2 behavior establish this repair's premise.
Retain the small selector-equality and fixture-step-number assertions as limited consistency/fixture-shape guards. They are not counted as behavior proof. Source, behavior and real Actions evidence carry the verdict; these optional test-cleanup suggestions do not justify another source/proof cycle.
The changed trusted workflow_run commenter runs default-branch code. Its actual publication route is a named post-merge follow-up on the next eligible open PR/run, not a pre-merge claim.