Repository navigation
fix(ci): skip Periphery scans for unrelated PR changes - #107991
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7321433f63
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@clawsweeper automerge |
0cb611f to
667cf25
Compare
667cf25 to
96c3999
Compare
|
@clawsweeper automerge |
|
Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 4:48 AM ET / 08:48 UTC. Summary PR surface: Tests +83, Config -27, Other +12. Total +68 across 8 files. Reproducibility: yes. in source: the new hermetic synthetic-merge test models a base-only native-path change plus a docs-only PR change, the condition that makes the stale event-base comparison incorrectly select a scan. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the local, credential-free scope detector and land this bounded Do we have a high-confidence way to reproduce the issue? Yes, in source: the new hermetic synthetic-merge test models a base-only native-path change plus a docs-only PR change, the condition that makes the stale event-base comparison incorrectly select a scan. Is this the best way to solve the issue? Yes: comparing the checked-out synthetic merge commit with its first parent is the narrowest maintainable way to isolate the PR contribution while retaining manual-dispatch, draft, rename, and fail-closed behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2e8b042f9fba. Label changesLabel justifications:
Evidence reviewedPR surface: Tests +83, Config -27, Other +12. Total +68 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
Addressed the ClawSweeper follow-up in #107991 (comment). Land-ready proof for exact head
The The old failed run |
|
Merged via squash.
|
* fix(ci): scope Periphery to PR merge changes * test(ci): align Periphery changed-test routing
* fix(ci): scope Periphery to PR merge changes * test(ci): align Periphery changed-test routing
Related: #106090
Observed on: #106789
What Problem This Solves
Fixes an issue where pull requests unrelated to iOS, macOS, or shared OpenClawKit could run Periphery scans when
mainadvanced after the pull-request event was created. The stale event base SHA made base-branch changes look like pull-request changes, consuming macOS runners and adding irrelevant checks.Why This Change Was Made
The three Periphery scope jobs now compare GitHub's synthetic pull-request merge commit with its first parent, which is the exact base tree used to build that merge result. Checkout depth is increased to two so both commits are available; the stale event-base fetch is no longer needed.
Scope behavior remains fail-closed, manual dispatch still scans, draft pull requests still skip, and renamed files remain covered.
User Impact
Unrelated pull requests no longer start iOS, macOS, or shared OpenClawKit Periphery scan jobs solely because
mainchanged. Pull requests that actually touch the scoped native paths continue to run the same scans.AI-assisted change; I reviewed and understand the implementation and tests.
Evidence
mainadds a shared OpenClawKit file while the PR changes only docs. The old event-base comparison reports a scoped change;HEAD^1..HEADreports only the PR's docs file and setsshould-scan=false.node scripts/run-vitest.mjs test/scripts/periphery-scope-workflows.test.ts test/scripts/ios-periphery-comment-workflow.test.ts test/scripts/periphery-intersection.test.ts— 3 files, 36 tests passed.node scripts/check-workflows.mjs— passed, including zizmor and interpolation checks.oxfmt --checkon all six touched files — passed.git diff --check— passed.