Skip to content

ci(android): Let the verify-pr test workflow verify an open JS PR - #7140

Merged
antonis merged 1 commit into
mainfrom
ci/verify-pr-spike-open-js-pr
Nov 30, 2026
Merged

antonis merged 1 commit into
mainfrom
ci/verify-pr-spike-open-js-pr

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

#skip-changelog

📢 Type of change

  • Enhancement

📜 Description

Extends verify-pr-spike.yml and .github/verify-pr-spike/spike.py so the test workflow can verify an open PR that changes only JavaScript, such as #7138.

Build job

  1. New flow input: 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.
  2. merge_sha is replaced by base_sha. The "without" side is the ref checkout with its packages/core diff from base_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.
  3. packages/core is rebuilt after the reverse-apply and after the restore. Before each sample build, Gradle's React bundle outputs are deleted, because Gradle does not treat packages/core/dist as an input and would reuse the previous side's bundle. The run fails if the PR changes files under packages/core/src/ and both bundles are identical.
  4. ref is checked out in ref/ and main in main/ (sparse, .github only). The script and the disk-cleanup action run from main/.
  5. The device-log crash id parsing and the job outputs are removed. The build job hands the fetch job nothing.

Fetch job

  1. For each side, it searches the org events endpoint (/organizations/sentry-sdks/events/, errors dataset, project sentry-react-native) for error events tagged with the verify.run_id it builds from github.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.
  2. Each event is read from /json/ and the detail endpoint as before, and is still refused if its verify.run_id differs. 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.js frame.

No workflow run has exercised any of changes 1–7 yet. Open questions until one does:

  • Do the two-directory checkout and the merge-base deepening work on the runner?
  • Do the rebuilds and the forced re-bundle give the two APKs different bundles?
  • May SENTRY_AUTH_TOKEN use the org events endpoint, and does the search find the events?
  • Do stored JS events carry frames in the shape read here?

via Antonis Lilis.

--

View Session [Sentry]

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>
@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).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@github-actions

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 6842d4a

@antonis
antonis marked this pull request as ready for review November 30, 2026 10:14
@antonis
antonis enabled auto-merge (squash) November 30, 2026 10:14
@antonis
antonis merged commit 1b3eb60 into main Nov 30, 2026
49 of 65 checks passed
@antonis
antonis deleted the ci/verify-pr-spike-open-js-pr branch November 30, 2026 10:14
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.

1 participant