Skip to content

fix(ci): preserve Periphery reports across partial reruns - #188198

Merged
vincentkoc merged 3 commits into
mainfrom
fix/swift-producer-artifact-identity-20261030
Oct 30, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/swift-producer-artifact-identity-20261030

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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

  • Candidate 8a48e2ce1e6911a71a9f03c246105bdae66e80f6: 123/123 focused tests passed with actual Node 26.12.1 workers; targeted types, typed lint, formatting, and canonical allocation check passed.
  • Broader proof on predecessor 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.
  • Completed local ClawSweeper review of the final candidate: no actionable correctness or security findings.
  • The pinned download action's source and input contract were inspected directly; selection uses only the validated artifact ID.

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:

  • iOS artifact12966102514, shared-periphery-ios-41029294625-1, digest748e6b130d6ef4252c079a193e755761aeb45b84d204716d9d567b6d4b06d70f.
  • macOS artifact12966432215, shared-periphery-macos-41029294625-1, digest3a44af936d305a2d74634491a04b6d611b794a1e32f4e2715e26093421af8771.

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.

@vincentkoc vincentkoc self-assigned this Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 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 marked this pull request as ready for review October 30, 2026 08:51
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The resolver selects shared-periphery-macos-40824254298-2 despite the retained execution belonging to attempt 1.
  • After: The resolver identifies the original execution and selects shared-periphery-macos-40824254298-1 by its validated artifact ID.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused repair appears correct, but its stated landing qualification is unmet; some added assertions also test fixture construction or source identity.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers rerunning failed Actions jobs can lose a successful platform's Periphery report.
Reason: The maintainer-authored direction restores the existing retained-report contract without adding settings or changing scan policy.

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
Reviewed head: 8a48e2ce1e6911a71a9f03c246105bdae66e80f6

Before merge

None.

Findings

None.

Tests

  • Low-value test test/scripts/periphery-intersection.test.ts: Remove the selector source-string equality test and fixture-number self-check; behavioral output assertions already exercise the contract and tolerate implementation refactors.
  • Low-value test test/scripts/ios-periphery-comment-workflow.test.ts: Remove the repeated assertion of the fixture's hard-coded step-number list while retaining the actual download and publication assertions.
  • Missing end-to-end proof: Actual Actions partial-rerun selection and exact-ID download, rejection of stale fallback after a new failed producer, and base-red/head-green regression execution are not demonstrated.
Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 1f85bb8 adds .github/workflows/ios-periphery-comment.yml:115 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/ios-periphery-comment.yml)
  • Peter Steinberger: Raw commit f2ef967 adds .github/workflows/ios-periphery-comment.yml:92 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 +592, Config +102, Other +2. Total +696 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 658 66 +592
Docs 0 0 0 0
Config 2 124 22 +102
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 784 88 +696

Review metrics

Metric Value Why it matters
Production versus test LOC Workflows +124/-22; tests +658/-66 Growth covers two existing consumption boundaries and distinct retained-execution, failed-producer, and artifact-identity cases; the added allocation matches the net 592 test lines.

Root-cause cluster

Relationship: same_root_cause
Canonical: #188197
Summary: This PR implements the repair tracked by the linked issue; the earlier rerun repair used a different artifact-naming design.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: Selective reruns can lose or misselect maintainer-facing native analysis reports, with impact limited to these CI workflows.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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: Selective reruns can lose or misselect maintainer-facing native analysis reports, with impact limited to these CI workflows.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 30, 2026, 5:09 AM ET / 09:09 UTC.

@vincentkoc
vincentkoc merged commit b649540 into main Oct 30, 2026
185 of 186 checks passed
@vincentkoc
vincentkoc deleted the fix/swift-producer-artifact-identity-20261030 branch October 30, 2026 09:25
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L 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.

Periphery reports can select the wrong producer artifact after a partial rerun

1 participant