Repository navigation
Done
Labels
Description
Goal
Every verification so far ran on a Mac with an arm64 emulator. Before building the CI workflow, find out how the same steps behave on a Linux runner.
What to do
Add a throwaway workflow_dispatch job, on a branch, that:
- Copies the emulator setup from the Android test job in
sample-application.yml(ubuntu-latest, KVM,reactivecircus/android-emulator-runner), but with a full emulator image instead of the ATD image. - Builds the sample app without fix(core): Remove native scope tags set to an empty value #7087 (the PR's SDK change reverse-applied) and runs the skill's example flow with run tags.
- Builds it with fix(core): Remove native scope tags set to an empty value #7087 and runs the same flow.
- Uploads the device logs and screenshots.
Then check both runs' events in the sentry-sdks org by hand or with the local skill.
Then have Junior start it
Once the job works, ask Junior to start it with gh workflow run, set a timer, and report the result when the run ends. Junior's own check showed the command is supported but untested here, and that a dispatched run sends it no event, so it has to use a timer and gh run view. This one request proves both.
What to record
- Time for the clean build, the incremental build, each run, and the whole job.
- Whether screenshots are usable with a full image, and how much longer it takes to boot than the ATD image.
- Free disk on the runner before and after.
- Every command from the skill that needed changing for Linux (for example the disk check uses a macOS path).
- Whether the stale-bundle check works on the runner.
- Whether Junior could start the job, and how long after the run ended it reported back.
Done when
- Both events are in Sentry and show the same difference as the local runs of fix(core): Remove native scope tags set to an empty value #7087.
- The timings and the list of Linux changes are written down for the design document.
Not in this issue
- The real workflow, its inputs, or anything Junior does.
- iOS.
The job and its branch are deleted afterwards. It holds no secrets.
Activity
linear-code commentedon Nov 26, 2026
RN-895
antonis commentedon Nov 27, 2026
Plan
All changes are in this repo, and none of them needs merging.
sentry-sdksThe Linux run: a branch is enough
Add the throwaway workflow file on a branch, with a push trigger limited to that branch. GitHub runs a new workflow file from the branch it is pushed to, so it runs on every push without being on
main.No PR is needed. A draft PR would also start the repo's other PR workflows on every push. The branch is deleted at the end.
The Junior test: an existing workflow
gh workflow runonly works for workflows on the default branch, so Junior can't start the throwaway job. The test doesn't need it to: it has to show that Junior can start a workflow here and report back when it ends.ios-crash-screenshot-no-freeze.ymlfits. It is onmain, has aworkflow_dispatchtrigger with no inputs, only builds and checks, and its recent runs took 12 to 20 minutes. It costs one macOS runner for that time.The other two dispatchable workflows,
release.ymlandrelease-comment-issues.yml, are for releases and must not be used for this.Order
ios-crash-screenshot-no-freeze.ymland report when it finishes. This can happen now.When a merge becomes necessary
In #7127. That test has Junior start the verification job itself on
mainwith a branch as an input, and it uses theSENTRY_AUTH_TOKENsecret in the fetch job. Both need the workflow file onmain.antonis commentedon Nov 27, 2026
Results of the first Linux run
Run 45988566306, from the throwaway workflow in #7128, on
ubuntu-latest. It passed on the first try, and both flows passed.Timings
The clean build had a warm Gradle cache, restored from
main.What the run shows
turbo_module.nameandturbo_module.methodset to empty strings, 8 lines in total. The "with" run has none.google_apisimage. They show the TurboModule screen with "Status: Done". They are 320 pixels wide, the emulator's default profile.Changes needed for Linux
/, not the macOS data volume.-PreactNativeArchitectures=x86_64toscripts/build-android.shdirectly, becauseyarn build-android-releasedrops extra arguments.google_apisx86_64 image, not the ATD image the Android tests use.Still open
pr7087-without-20261127-1123andpr7087-with-20261127-1125. So far the evidence is the device log only.ios-crash-screenshot-no-freeze.yml.antonis commentedon Nov 27, 2026
Linux spike: events in Sentry
I checked the two native crash events from workflow run 45988566306 (#7128), which ran the #7087 example flow on a Linux runner. Each was opened through its issue-event URL and read from the event detail.
verify.committurbo_module.nameturbo_module.methodpr7087-without-20261127-1123)46c34e3-a988643nullnullpr7087-with-20261127-1125)46c34e3Both are
platform: java, aRuntimeExceptionfromRNSentryModuleImpl.crashwithUncaughtExceptionHandler/handled: false, on ansdk_gphone_x86_64Android 11 emulator, with sample8.37.0+117. Neither event has any otherturbo_module.*tag.The local events linked in #7100 show the same pattern: without has both tags with
nullvalues, and with has noturbo_module.*tags. Those ran on an arm64 Android 17 emulator with8.36.0+116.The Linux run reproduces the local result:
turbo_module.*tags withnullvalues without the change, and none with it.sentry-junior commentedon Nov 27, 2026
Results
The Linux runs went through the throwaway workflow on
chore/verify-pr-linux-spike(#7128).1. Cold vs warm Gradle cache
These numbers come from
results.jsonin each run's artifact. The cold run hadcache-disabled: trueonsetup-gradle; the yarn cache was still restored.Both runs show the same device evidence. Without #7087, the native crash event has
turbo_module.name: ""andturbo_module.method: ""in logcat. With #7087, those tags are absent. The dex differs between the two sides and the JS bundle is identical. Maestro passed on all four runs, and the screenshots from the full image are usable.See the first comment for the plan.
The events weren't checked in Sentry. Junior's Sentry connection gets a 403 on
sentry-sdks. The crash event ids from the warm run, taken from logcat, ared816b7aa3ccb4e9a9250503697ec211d(without) andb45b2e3b2ebb4c83813958a9f5234b47(with).Linux changes to the skill's commands: only the disk check, which reads
df -h /instead of the macOS-only/System/Volumes/Data.adb, Maestro,unzip -pandLC_ALL=C grep -aran as written. The build callsscripts/build-android.sh -PreactNativeArchitectures=x86_64directly. That is a speed choice, not something Linux needs:yarn build-android-releasedrops extra arguments.2. Junior dispatch test
gh workflow run ios-crash-screenshot-no-freeze.yml --ref mainexited 0 at 11:34:04 UTC and created run 45991529437. It succeeded.gh run view, 3 min 16 s after the run ended. The dispatched run sent no event. The check ran early because a check-suite event on ci(android): Add throwaway workflow to run verify-pr on a Linux runner #7128 woke Junior. The timer alone would have checked at 11:52:32, about 5.5 min after the end.3. ATD vs google_apis boot time
This is the time from
Starting emulator.toEmulator booted.in theandroid-emulator-runnerlog, at API 30 onubuntu-latest.aosp_atd(Sample Application, Test android,main)google_apisx86_64 (spike)The full image booted about 16 s faster than ATD. The 91 s reported earlier covers more than the boot: it starts at the emulator step and also includes installing the system image (about 26–33 s on both images), creating the AVD and the post-boot settings. Measured the same way, from step start to booted, ATD took 97–127 s and google_apis 84 s.
antonis commentedon Nov 27, 2026
Summary
The
verify-prAndroid steps work on a Linux runner, and Junior can start a workflow in this repo and report back when it ends.Results
turbo_module.*tags withnullvalues without #7087, none with it (details)google_apisimage. It also boots faster than the ATD image: about 33 s against 50 sios-crash-screenshot-no-freeze.ymlonmainand the run succeededFull numbers: the first run and Junior's report.
Not done here
sentry-sdksorg, so it could not check the events itself. Test fetching a run's Sentry events in the workflow, for Junior to read #7127 tests a workflow job that fetches them for it.Left in place
chore/verify-pr-linux-spikestays for now, because Test fetching a run's Sentry events in the workflow, for Junior to read #7127 extends that job. Its workflow runs on pushes to the branch and needs no PR.Next