Repository navigation
ci(android): Let the verify-pr test workflow verify an open JS PR - #7140
Merged
Merged
Conversation
Take the flow as an input, reverse-apply the diff from a base sha instead of a merge commit, rebuild packages/core on each side, run the script from a main checkout, and have the fetch job find each side's error events by verify.run_id and publish their exception frames. Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Contributor
antonis
marked this pull request as ready for review
November 30, 2026 10:14
antonis
requested review from
alwx,
antonis and
lucas-zimerman
as code owners
November 30, 2026 10:14
antonis
enabled auto-merge (squash)
November 30, 2026 10:14
antonis
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#skip-changelog
📢 Type of change
📜 Description
Extends
verify-pr-spike.ymland.github/verify-pr-spike/spike.pyso the test workflow can verify an open PR that changes only JavaScript, such as #7138.Build job
flowinput: a Maestro flow on the ref branch. It is validated before checkout against a fixed pattern under.agents/skills/verify-pr/flows/that rejects.., and the script checks that the file exists before any build. The hardcoded example flow is gone.merge_shais replaced bybase_sha. The "without" side is the ref checkout with itspackages/corediff frombase_sha(three-dot, from the merge base) reverse-applied, with the same exclusions as before. The shallow checkout is deepened until the merge base is present. An empty diff fails the run.packages/coreis rebuilt after the reverse-apply and after the restore. Before each sample build, Gradle's React bundle outputs are deleted, because Gradle does not treatpackages/core/distas an input and would reuse the previous side's bundle. The run fails if the PR changes files underpackages/core/src/and both bundles are identical.refis checked out inref/andmaininmain/(sparse,.githubonly). The script and thedisk-cleanupaction run frommain/.Fetch job
/organizations/sentry-sdks/events/, errors dataset, projectsentry-react-native) for error events tagged with theverify.run_idit builds fromgithub.run_id, at most 5 per side. It waits until at least one exists, within the existing deadline. If the token is refused there, it fails with a message naming the endpoint and status./json/and the detail endpoint as before, and is still refused if itsverify.run_iddiffers. Its summary adds each exception's frames (filename,function,in_app) as stored by Sentry. Tags and errors keep their existing limits.Unchanged: dispatch only, input validation, no secrets and no cache writes in the build job, and no checkout in the fetch job.
💡 Motivation and Context
Experiment 2 of #7139. The proof for #7138 is the in-app flag Sentry stores on the Hermes
InternalBytecode.jsframe.No workflow run has exercised any of changes 1–7 yet. Open questions until one does:
SENTRY_AUTH_TOKENuse the org events endpoint, and does the search find the events?via Antonis Lilis.
--
View Session [Sentry]