Repository navigation
chore(tooling): Fold the open-PR run findings into verify-pr - #7115
Conversation
Force the Android JS re-bundle and check the APK has the side's code, uninstall before install, wait for render on launch and relaunch, carry the run tags through the relaunch, and require a control event for absences and repeats for surprising results. Adds evidence rows for trace linking and incomplete native setup, a short report for runs stopped at the gate, and the dist rebuild at cleanup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
Plus 3 more 🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9ee6993. Configure here.
| - When `git apply -R --check` fails, fall back to the parent commit: `git checkout <merge-sha>^` (detached), `yarn install && yarn build`, build there, then return. Slower; record that you did it. | ||
| - The sample bundles `packages/core/dist/`. Before the first sample build, run `yarn build` in `packages/core` if `dist/` is older than the last change to `packages/core/src` (`git log -1 --format=%cd -- packages/core/src`) — even for native-only PRs. | ||
| - **JS changes** (`packages/core/src/`) need that `yarn build` on **both** sides. | ||
| - **Android reuses a stale JS bundle.** Gradle's bundle task stays up to date after `packages/core/dist` changes, so the "with" APK ships the "without" JS and reads as **Failed**. After every `yarn build` in `packages/core`, force the re-bundle (see references/android.md), then confirm the APK has the side's code: `unzip -p samples/react-native/app.apk assets/index.android.bundle | grep -c '<string only the PR adds>'` is non-zero with the change and zero without it. Pick a string literal (a log message, an option name); identifiers are minified. |
There was a problem hiding this comment.
APK bundle grep treats bytecode as binary
Medium Severity
The new APK check pipes Hermes bytecode into grep -c and expects a numeric 0 vs non-zero count. That file contains null bytes, so macOS grep reports a binary match instead of a count. The stale-bundle safety net this PR adds then cannot tell the two sides apart.
Reviewed by Cursor Bugbot for commit 9ee6993. Configure here.


📢 Type of change
📜 Description
Fixes the
verify-prskill problems found by running it on seven PRs (#7105). Only the skill changes; no SDK or sample code.packages/corebuild. That nearly reported a working fix as Failed (fix(tracing): Sync the JS trace to the native SDKs after they start #7107) and voided two runs (fix(core): Capture uncaught render errors on React Native 0.78+ #7078). The skill now forces the re-bundle and checks that the APK contains a string only the PR adds.adb install -rcan fail for space and leave the old app running.launch.ymlwaits for the tab bar instead of a fixed 2 s.native-crash-and-relaunch.ymlwaits for the crashed app to go, passes the run tags again, and waits for render before the screenshot. Relaunch screenshots were blank before.ignoreErrorsdrops messages with "should" or the digit 2.dexdumpcheck.trace_id) and for a native SDK started without the React Native setup (sdk.name,event.origin). A pitfall for missing crash events (crash dialog vs immediate kill).distafter the restore at cleanup.Also includes #7118
💡 Motivation and Context
Part of #7105: the skill should be reliable enough to run without someone watching before it's considered for CI.
💚 How did you test it?
flows/examples/turbo-module-calls-then-native-crash.yml, the skill's regression check forflows/steps/, on a Pixel_8 emulator (Android 17, release build). It passed in 36 s. The crashed process had died before the relaunch, the relaunch screenshot shows the rendered app, and the crash event arrived tagged with the run id.yarn lint:lerna📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
🤖 Generated with Claude Code