Skip to content

chore(tooling): Add verify-pr skill for on-device PR verification - #7100

Open
antonis wants to merge 2 commits into
mainfrom
chore/verify-pr-skill
Open

antonis wants to merge 2 commits into
mainfrom
chore/verify-pr-skill

Conversation

@antonis

@antonis antonis commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Adds a local verify-pr skill (.agents/skills/verify-pr) that lets an agent verify a PR end to end on an Android emulator against real Sentry, and write a draft before/after report.

  • SKILL.md: plan (claim, scenario, evidence) → build without the change (reverse-apply the PR's SDK diff, fall back to the parent commit) → run → tag → check in Sentry → draft report. Four verdicts: Verified, Not reproduced, Failed, Inconclusive. The report is never posted without a maintainer's approval.
  • references/evidence.md: how to pick the evidence per claim type (event tags, crashes, logs, spans, profiles, option mapping), the Sentry MCP lookup sequence that works, and its pitfalls (e.g. Discover can't tell a missing tag from an empty one).
  • references/android.md: setup (JDK 17, full emulator image, SENTRY_DISABLE_AUTO_UPLOAD), builds, launching, Maestro, and a uiautomator fallback.
  • references/report-template.md: the report format.
  • flows/: reusable Maestro steps (launch.yml with the run tags, open-errors-screen-button.yml, native-crash-and-relaunch.yml) and one scenario built from them (turbo-module-calls-then-native-crash.yml).

Sample app:

  • src/verifyRun.ts tags events with verify.pr, verify.commit and verify.run_id from launch arguments, so a run can be found in Sentry. Without the arguments it does nothing.
  • sentry.options.json gets "enableLogs": true. The JS Sentry.init already sets it, but on Android the native SDK starts from sentry.options.json, so native logs were off.

The skill is registered in agents.toml and the skills table in AGENTS.md.

💡 Motivation and Context

Closes #7099. Builds on the first manual run in #7098 (report).

💚 How did you test it?

A fresh agent, given only the skill, verified two PRs on a Pixel_8 emulator (Android 17, New Architecture, release builds):

The 13 gaps that run found are folded into the skill. The main one: Android starts the native SDK from sentry.options.json, so options set in App.tsx never reach it.

yarn lint:lerna passes.

📝 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

  • iOS support.
  • Running the skill in CI.
  • Reading processing errors from Sentry. The Sentry MCP doesn't return an event's processing-error list, so the skill relies on indirect evidence for now.

🤖 Generated with Claude Code

Adds a local skill that verifies a PR end to end on an Android emulator:
build the sample without and with the change, drive it with Maestro, find
both runs' events in sentry-sdks through the Sentry MCP, and write a draft
before/after report.

The sample tags events with verify.pr, verify.commit and verify.run_id
when launched with matching launch arguments, and does nothing otherwise.
It also enables logs in sentry.options.json, so native Android matches the
JS enableLogs setting.

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 verify-pr skill for on-device PR verification by antonis and claude in #7100
  • ci(ios): Build the SwiftPM app on more React Native versions by alwx in #7096
  • chore(tooling): Remove Cursor Bugbot review guidelines by antonis and claude in #7090
  • fix(core): Capture uncaught render errors on React Native 0.78+ by alwx in #7078
  • ci: Fix stale high_risk_code paths in file-filters by antonis and claude in #7091
  • ci(e2e): Fix legacy Android e2e jobs building New Architecture by antonis and claude in #7092
  • chore(deps): update Android SDK to v8.65.1 by github-actions in #7089
  • fix(core): Remove native scope tags set to an empty value by antonis and claude in #7087
  • feat(ios): Add metricKitHangReportingMode option for MetricKit hang flame graphs by alwx in #7059
  • chore(deps): bump getsentry/craft from 3.12.0 to 3.13.0 by dependabot in #7083
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 3.12.0 to 3.13.0 by dependabot in #7082
  • chore(deps): bump getsentry/github-workflows/danger from 6bf4a27612e388f9c113d64f75e25190e814b414 to bce11fe6eaa86dbb9d360ab45a96e659828877f0 by dependabot in #7081
  • chore(deps): bump actions/create-github-app-token from 3.3.0 to 3.4.0 by dependabot in #7085
  • chore(deps): bump ruby/setup-ruby from 1.338.0 to 1.342.0 by dependabot in #7084
  • chore(sample): Remove unused Detox setup from the React Native sample by antonis and claude in #7072
  • ci(ios): Build TestFlight sample with Xcode 27 by philprime with sentry-junior in #7065
  • perf(android): Create SDK view managers on demand by alwx in #7049
  • fix(core): Remove web Replay and Feedback from native bundles by default by huextrat, claude and antonis in #7062
  • fix(core): Define UnsafeObject locally instead of deep importing it by alwx in #7061
  • chore(deps): update Android SDK to v8.65.0 by github-actions in #7058

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Nov 24, 2026
@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.36.0 (116) Release

⚙️ sentry-react-native Build Distribution Settings

Scenarios were one-off per PR and nothing runs them, so a shared folder
would grow and rot. Move the #7087 flow to flows/examples/ as the worked
example and regression check, write each run's flow next to its report,
and promote to flows/steps/ only when a second run needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write the verify-pr skill from the first verification run

1 participant