Repository navigation
Hermes symbolication fixes + Expo/EAS source maps guide - #756
Merged
Merged
Conversation
Normalize Hermes addresses and native bundle paths, reject ambiguous maps, and cover real composed maps plus the newer Hermes map layout. Chain React Native global handlers with bounded fatal delivery, default platform, and add a bundle-specific release helper and Expo/EAS guide.
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.
Hermes frames such as
at r (address at index.android.bundle:1:165)previously retainedaddress atin the filename and could not find uploaded maps. They now resolve to the fixture throw sitecheckout.js:7:14and its original call sites. Native scheme filenames and iOS absolute paths also match; HTTP-to-HTTP matching keeps host/path checks.React Native now chains its previous global handler, attempts fatal error delivery for at most one second, installs once per ErrorUtils instance, and defaults platform to
react-nativewhile preserving explicit overrides. Core error-object deduplication prevents duplicate manual/global reports. Eight RN tests cover this behavior, including a test with the actual core SDK.OTA design:
buildBundleRelease(nativeVersion, bundleId)validates and encodes bundle identity. Require a distinct release per JS bundle and separate app labels per platform, since artifacts are not platform-keyed. Match verified device sourceURL/path (or its basename); no single-artifact fallback for unknown OTA hashes and no cross-release fallback. Reject multiple matches and conservatively refuse releases at the 128-ref metadata cap. Release uniqueness cannot be inferred or guaranteed by the server; the guide states the operational requirement.Function-name decision: retain existing labels, as explicitly permitted by the task when a reliable correction cannot be confirmed. Tests show
originalPositionForreturns the callee tokencomputeTotalat anonPressPaycall site in both the Hermes composed map and the web packager map. Sentry uses scope information and caller-name heuristics, rather than blindly assigning each token name or shifting all names by one frame (implementation). A universally safe enclosing-name recovery was not established for TT's map-only pipeline. This remaining limitation is documented.Guide:
docs/expo-hermes-source-maps.md, linked from SDK React Native docs,/docs/react-native, and/error-tracking/react-native. Covers SDK setup and identity convention, Android/iOS EAS Build maps and iOS SOURCEMAP_FILE, Expo Update exports and conditional Hermes composition, JSON API upload, an EAS success hook and existing GitHub Action, and runtime bundle URLs. Limits: JS errors only/no native crash capture, 10 MiB map JSON limit, no debug IDs, no automatic EAS integration, function-name limitations and best-effort fatal delivery. No claim of full Expo support. The action's existing.mapfilename fallback suffices for the staged maps; no extension change was needed.Validation:
pnpm install --frozen-lockfile: passed after adding the RN test dependency to the lockfile.pnpm lint: passed, zero warnings.pnpm test: 1,435 passed, 128 DB-gated tests skipped, zero failures. API 1,060; dashboard 227; core 67; vite-plugin 14; node 27; next 15; RN 8; publish guards 17.pnpm build: passed for all workspace packages including Next production build.tsc -p tsconfig.build.json --noEmitand RNtsc --noEmit: passed.tsc --noEmit: 106 existing test-file errors, identical error multiset with the original API test file (line numbers normalized); no new errors. Dashboard broadtsc --noEmit: six existing errors in unchanged google-analytics.test.ts and marketing-seo-head.test.ts. Production build type validation passes.git diff origin/develop..., full working diff/new files,git status, andgit diff --check. HEAD and origin/develop are both 51e1d9d; the local develop ref is stale, so origin/develop was used for comparison. Generated build changes are excluded/restored, as required by the handoff.CI/publication: pending runner publication. No git-state writes, PR writes, merge, deployment, package publication or EAS update publication performed. No existing branch PR was found with
gh pr list --head codex/hermes-sourcemaps --state all. The runner should open one normal PR against develop and attach its URL; hosted CI/review cannot start before that step.UNVERIFIED QA (must be checked on supported Expo/RN versions):