Skip to content

Commit e932604

Browse files
dcalhounclaude
andcommitted
build: upload prototype source maps under the embedded release
Prototype builds set `VERSION_SHORT` to `pr_or_branch`, so the app's runtime Sentry release is `<app_identifier>@<pr_or_branch>+<build_number>` (e.g. `com.jetpack.alpha@PR #25800+33210`). The source-map uploads were keyed to `release_version_current` (the marketing version, e.g. `27.0`), which never matches that runtime release — so prototype-build events stayed unsymbolicated. Pass `pr_or_branch` as the release version for both the GutenbergKit and the existing React Native source-map uploads on prototype builds. This fixes GutenbergKit symbolication and also a pre-existing gap in the React Native prototype upload. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1a9b4d0 commit e932604

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

fastlane/lanes/build.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,16 +536,22 @@ def build_and_upload_prototype_build(scheme:, output_app_name:, firebase_app_con
536536
path: lane_context[SharedValues::DSYM_OUTPUT_PATH]
537537
)
538538

539+
# Source maps must be uploaded under the SAME release the app embeds at
540+
# runtime. Prototype builds set `VERSION_SHORT` to `pr_or_branch` (not the
541+
# marketing version), so the Sentry release is
542+
# `<app_identifier>@<pr_or_branch>+<build_number>`. Uploading under
543+
# `release_version_current` here would not match the runtime event, leaving
544+
# frames unsymbolicated.
539545
upload_gutenberg_sourcemaps(
540546
sentry_project_slug: sentry_project_slug,
541-
release_version: release_version_current,
547+
release_version: pr_or_branch,
542548
build_version: build_number,
543549
app_identifier: app_identifier
544550
)
545551

546552
upload_gutenberg_kit_sourcemaps(
547553
sentry_project_slug: sentry_project_slug,
548-
release_version: release_version_current,
554+
release_version: pr_or_branch,
549555
build_version: build_number,
550556
app_identifier: app_identifier
551557
)

0 commit comments

Comments
 (0)