Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix/10812 redundant source map upload #11993

Merged
merged 8 commits into from
Oct 24, 2024

Conversation

Cal-L
Copy link
Contributor

@Cal-L Cal-L commented Oct 24, 2024

Description

This PR introduces two new workflows in Bitrise

  • build_android_release_and_upload_sourcemaps - Runs build_android_release and uploads sourcemaps to Sentry
  • build_ios_release_and_upload_sourcemaps - Runs build_ios_release and uploads sourcemaps to Sentry

By default, both build_android_release and build_ios_release will not automatically upload sourcemaps to Sentry

Related PR - #11490

Related issues

Fixes: #10812

Manual testing steps

To build release AND upload sourcemaps, use the two workflows in Bitrise:

  • build_android_release_and_upload_sourcemaps
  • build_ios_release_and_upload_sourcemaps

To only build release without uploading sourcemaps, use the two workflows in Bitrise:

  • build_android_release
  • build_ios_release

Screenshots/Recordings

Before

After

In this test, we ran the default build_ios_release and build_android_release, which resulted in no sourcemaps being uploaded

In this test, we enabled Sentry sourcemap upload and re-used build_ios_release and build_android_release to mimic the workflows that uploads sourcemaps. We can see in the two builds that it successfully uploads sourcemaps.

Sourcemaps uploaded

  • Android:
Screenshot 2024-10-23 at 6 08 21 PM - iOS: Screenshot 2024-10-23 at 6 08 31 PM

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@Cal-L Cal-L requested review from a team as code owners October 24, 2024 03:14
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

scripts/build.sh Show resolved Hide resolved
bitrise.yml Show resolved Hide resolved
bitrise.yml Show resolved Hide resolved
@Cal-L Cal-L added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) Run Smoke E2E Triggers smoke e2e on Bitrise No QA Needed Apply this label when your PR does not need any QA effort. labels Oct 24, 2024
Copy link
Contributor

github-actions bot commented Oct 24, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 267bbd7
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/c801fe5c-e327-4fcc-af4e-519c94f90a37

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@Cal-L Cal-L mentioned this pull request Oct 24, 2024
7 tasks
Copy link

sonarcloud bot commented Oct 24, 2024

Copy link
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks Cal for this!

@Cal-L Cal-L enabled auto-merge October 24, 2024 23:37
@Cal-L Cal-L added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 8e51d4c Oct 24, 2024
47 of 48 checks passed
@Cal-L Cal-L deleted the fix/10812-redundant-source-map-upload branch October 24, 2024 23:51
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Oct 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
@metamaskbot metamaskbot added the release-7.35.0 Issue or pull request that will be included in release 7.35.0 label Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.35.0 Issue or pull request that will be included in release 7.35.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Prevent redundant Sentry sourcemap uploads
3 participants