Skip to content

chore(android): upload webview source map during android and ios build - #16449

Open
ermshiperete wants to merge 3 commits into
masterfrom
chore/web/uploadsourcemaps
Open

chore(android): upload webview source map during android and ios build#16449
ermshiperete wants to merge 3 commits into
masterfrom
chore/web/uploadsourcemaps

Conversation

@ermshiperete

@ermshiperete ermshiperete commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Previously we uploaded the webview source map during a web build. This can lead to problems because that is not the actual artifact used for Android and iOS.

This change therefore moves uploading the webview source map to Sentry to the android and ios builds.

Build-bot: skip release:web,android,ios
Test-bot: skip

Previously we uploaded the webview source map during a web build. This
can lead to problems because that is not the actual artifact used for
Android and iOS.

This change therefore moves uploading the webview source map to Sentry
to the android and ios builds.

Build-bot: skip build:web,android,ios
Test-bot: skip
@keymanapp-test-bot

keymanapp-test-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

Comment thread ios/build.sh
}

builder_run_action test:help do_test_help
builder_run_child_actions publish-symbols

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think publish-symbols is ever called for iOS, would need to be added to resources/teamcity/ios?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Done

@mcdurdin

Copy link
Copy Markdown
Member

Suggest changing the build bot so we can verify the symbol upload:

Build-bot: skip release:web,android,ios

Build-bot: skip release:web,android,ios
@ermshiperete
ermshiperete dismissed mcdurdin’s stale review August 28, 2026 13:37

Requesting re-review

@ermshiperete
ermshiperete requested a review from mcdurdin August 28, 2026 13:38

@mcdurdin mcdurdin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just polish nits. Thanks for working on this!

fi
}

function sentry_upload_web () {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment on parameters and tweak to use a local VAR=$1 pattern at the top of the function like we do elsewhere in shared scripts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

return
fi

echo "Uploading $1 to Sentry..."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use builder_echo throughout


function sentry_upload_web () {
if ! isSentryConfigured; then
echo "Skipping Sentry upload: SENTRY_ORG and/or SENTRY_PROJECT are unset."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Skipping Sentry upload: SENTRY_ORG and/or SENTRY_PROJECT are unset."
builder_warn "Skipping Sentry upload: SENTRY_ORG and/or SENTRY_PROJECT are unset."

Comment on lines +51 to +52
# --strip-common-prefix does not take an argument, unlike --strip-prefix. It auto-detects
# the most common prefix instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a terribly useful comment (I know you didn't write it).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we do a direct call here but use builder_launch in the new code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess not. The new code was copied from Android.

I now changed the calls here to use builder_launch as well.

@keyman-server keyman-server modified the milestones: A19S36, B19S1 Aug 30, 2026
Co-authored-by: Marc Durdin <marc@durdin.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants