Skip to content

chore(tooling): Add review checks and a gate-only mode to verify-pr - #7121

Merged
antonis merged 3 commits into
mainfrom
chore/verify-pr-review-inputs
Nov 26, 2026
Merged

antonis merged 3 commits into
mainfrom
chore/verify-pr-review-inputs

Conversation

@antonis

@antonis antonis commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Extends the verify-pr skill so a report answers more of what a reviewer asks before merging. Only the skill changes.

  1. Unchanged nearby behavior. The plan lists up to two nearby paths the diff touches: another caller, the other branch of a new condition, a new option at its default. They run on both builds and are expected to show the same evidence. The report gets an "Also checked, expected unchanged" table, outside the verdict.
  2. Claim from the issue. The claim and scenario come from the linked issue's problem and repro. The report says what of the issue the PR leaves out.
  3. Not covered. A line for what the verdict doesn't show: the other architecture, RN versions, real devices, a platform not run.
  4. Summary block. The report opens with a few lines to paste into the PR.
  5. Spec notes. When the PR adds or changes a field the SDK sends, the value in the "with" event is compared with develop.sentry.dev and conventions.sentry.dev. The note is reported with the URL, outside the verdict.
  6. Gate-only mode and review questions.
    • Gate-only answers "can this PR be verified on a device?" without building and returns a gate report.
    • Optional review questions become unchanged-behavior checks.

Also from the gate-only test runs:

  • The gate asks whether the pinned native SDKs have the path the PR uses (with a gh release lookup), and whether the "without" side can be built (git apply -R --check).
  • A JS-only change through a bridge method that each platform handles differently affects both platforms.

Changes 1 and 5 are in a new references/review-checks.md, keeping SKILL.md short.

💡 Motivation and Context

Closes #7120.

💚 How did you test it?

Fresh agents, given only the skill:

PR Mode Result Time
#7059 MetricKit option (merged) Gate only Not verifiable this way: MetricKit doesn't deliver on the simulator ~2 min
#7107 JS trace sync (merged) Gate only Verifiable on Android and iOS, with a plan, two nearby paths and a "Not covered" list ~3 min
#7111 Android JS hangs (open) Gate only Verifiable on Android; iOS not applicable. Planned from the head without a checkout ~3 min
#7078 render errors on RN 0.78+ Full, Android Verified. Also checked: 2 same (review questions: an ErrorUtils fatal still gives exactly one event; a non-fatal through handleException passes through). Spec note on reusing mechanism.type: onerror ~14 min
#7013 touch breadcrumbs on RN 0.88 Full, Android Verified: touch and rage-tap breadcrumbs only with the change. Also checked: 2 same ~10 min

Both full-run reports open with the summary block, a claim source, a "Not covered" line, the "Also checked" table and spec notes (or "none"). No run produced a Changed row. Neither PR's nearby paths differed, so that case is exercised only by the template, not by a run.

What the runs found unclear is folded in (third commit). It covers:

  • reading an open PR's head by sha
  • the sample's React Native/Hermes version in the gate
  • grepping the Hermes bundle with LC_ALL=C
  • the crash dialog after a second fatal
  • looking up breadcrumbs per event
  • preferring nearby paths the old code still reaches

yarn lint:lerna

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

  • A run where a nearby path does change, when a PR offers one, to exercise a Changed row end to end.

🤖 Generated with Claude Code

Reports now start with a summary block for the PR, take the claim from
the linked issue, list what the verdict doesn't cover, check up to two
nearby paths are unchanged, and note how new event fields compare with
the published spec. A gate-only mode answers whether a PR can be
verified on a device without building, and takes review questions as
extra checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(tooling): Add review checks and a gate-only mode to verify-pr by antonis and claude in #7121
  • chore(tooling): Fold the open-PR run findings into verify-pr by antonis and claude in #7115

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 972ffa2

antonis and others added 2 commits November 26, 2026 14:26
Carry a changed result into the summary line, plan the without side
outside the gate, and skip the reverse-patch check for open PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From gate-only on an open PR and full runs on #7078 and #7013: read an
open PR's head by sha, check the sample's React Native for RN/Hermes
dependencies, grep Hermes bundles with LC_ALL=C, handle the crash
dialog after a second fatal, look breadcrumbs up per event, and prefer
unchanged-behavior paths the old code still reaches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonis
antonis marked this pull request as ready for review November 26, 2026 14:06
@antonis
antonis merged commit 82da27f into main Nov 26, 2026
61 of 67 checks passed
@antonis
antonis deleted the chore/verify-pr-review-inputs branch November 26, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend verify-pr with unchanged-behaviour checks and review inputs

2 participants