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(replay): Add tests for touch events #3924

Merged
merged 8 commits into from
Jul 2, 2024

Conversation

krystofwoldrich
Copy link
Member

@krystofwoldrich krystofwoldrich commented Jul 1, 2024

📢 Type of change

  • Bugfix
  • Refactoring

📜 Description

This PR adds tests for native replay touch breadcrumbs conversions and fixes an issue with labeled touch without name which caused crash on iOS and null label on Android. (this was not release so no users were impacted)

💚 How did you test it?

sample app, unit tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • All tests passing
  • No breaking changes

#skip-changelog

@krystofwoldrich krystofwoldrich changed the title feat(replay): Add Mobile Replay Alpha (#3714) fix(replay): Add tests for touch events Jul 1, 2024
Copy link
Contributor

github-actions bot commented Jul 1, 2024

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 409.72 ms 452.02 ms 42.30 ms
Size 17.73 MiB 20.04 MiB 2.30 MiB

Baseline results on branch: feat/replay

Startup times

Revision Plain With Sentry Diff
376301c 445.52 ms 474.70 ms 29.18 ms
41db11d 429.33 ms 451.24 ms 21.91 ms

App size

Revision Plain With Sentry Diff
376301c 17.73 MiB 20.04 MiB 2.30 MiB
41db11d 17.73 MiB 20.04 MiB 2.30 MiB

Previous results on branch: kw/replay-touch-events-tests

Startup times

Revision Plain With Sentry Diff
bb8c974 474.27 ms 492.22 ms 17.96 ms
b91c34b 432.18 ms 465.78 ms 33.59 ms

App size

Revision Plain With Sentry Diff
bb8c974 17.73 MiB 20.04 MiB 2.30 MiB
b91c34b 17.73 MiB 20.04 MiB 2.30 MiB

Copy link
Contributor

github-actions bot commented Jul 1, 2024

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 425.57 ms 530.39 ms 104.82 ms
Size 7.15 MiB 8.31 MiB 1.17 MiB

Baseline results on branch: feat/replay

Startup times

Revision Plain With Sentry Diff
41db11d+dirty 374.57 ms 415.25 ms 40.68 ms
376301c+dirty 353.80 ms 388.54 ms 34.74 ms

App size

Revision Plain With Sentry Diff
41db11d+dirty 7.15 MiB 8.31 MiB 1.16 MiB
376301c+dirty 7.15 MiB 8.31 MiB 1.17 MiB

Previous results on branch: kw/replay-touch-events-tests

Startup times

Revision Plain With Sentry Diff
bb8c974+dirty 442.73 ms 455.33 ms 12.60 ms
b91c34b+dirty 446.16 ms 490.98 ms 44.82 ms

App size

Revision Plain With Sentry Diff
bb8c974+dirty 7.15 MiB 8.31 MiB 1.17 MiB
b91c34b+dirty 7.15 MiB 8.31 MiB 1.17 MiB

Copy link
Contributor

github-actions bot commented Jul 1, 2024

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1217.90 ms 1218.39 ms 0.49 ms
Size 2.36 MiB 3.05 MiB 702.89 KiB

Baseline results on branch: feat/replay

Startup times

Revision Plain With Sentry Diff
41db11d+dirty 1207.36 ms 1210.32 ms 2.96 ms
376301c+dirty 1215.73 ms 1219.80 ms 4.06 ms

App size

Revision Plain With Sentry Diff
41db11d+dirty 2.36 MiB 3.04 MiB 698.69 KiB
376301c+dirty 2.36 MiB 3.05 MiB 702.83 KiB

Previous results on branch: kw/replay-touch-events-tests

Startup times

Revision Plain With Sentry Diff
b91c34b+dirty 1228.65 ms 1223.80 ms -4.86 ms
bb8c974+dirty 1224.91 ms 1230.04 ms 5.13 ms

App size

Revision Plain With Sentry Diff
b91c34b+dirty 2.36 MiB 3.05 MiB 702.76 KiB
bb8c974+dirty 2.36 MiB 3.05 MiB 702.79 KiB

Copy link
Contributor

github-actions bot commented Jul 1, 2024

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1235.78 ms 1229.11 ms -6.67 ms
Size 2.92 MiB 3.61 MiB 710.00 KiB

Baseline results on branch: feat/replay

Startup times

Revision Plain With Sentry Diff
41db11d+dirty 1208.60 ms 1210.47 ms 1.87 ms
376301c+dirty 1224.74 ms 1227.00 ms 2.26 ms

App size

Revision Plain With Sentry Diff
41db11d+dirty 2.92 MiB 3.61 MiB 705.84 KiB
376301c+dirty 2.92 MiB 3.61 MiB 709.95 KiB

Previous results on branch: kw/replay-touch-events-tests

Startup times

Revision Plain With Sentry Diff
b91c34b+dirty 1230.57 ms 1221.62 ms -8.95 ms
bb8c974+dirty 1222.94 ms 1216.53 ms -6.41 ms

App size

Revision Plain With Sentry Diff
b91c34b+dirty 2.92 MiB 3.61 MiB 709.85 KiB
bb8c974+dirty 2.92 MiB 3.61 MiB 709.85 KiB

@krystofwoldrich krystofwoldrich force-pushed the kw/replay-touch-events-tests branch from bcec1bd to 9f7aa6e Compare July 1, 2024 15:27
@krystofwoldrich krystofwoldrich changed the base branch from kw/add-sentry-babel-transaformer to feat/replay July 1, 2024 15:32
@krystofwoldrich krystofwoldrich marked this pull request as ready for review July 1, 2024 15:32
@krystofwoldrich krystofwoldrich requested a review from vaind July 1, 2024 15:32
@krystofwoldrich krystofwoldrich merged commit 5f3a5c8 into feat/replay Jul 2, 2024
57 checks passed
@krystofwoldrich krystofwoldrich deleted the kw/replay-touch-events-tests branch July 2, 2024 08:04
bruno-garcia added a commit that referenced this pull request Jul 15, 2024
* feat(replay): Add Mobile Replay Alpha (#3714)

* feat(sample): add running indicator (animation overlay) (#3903)

* feat(replay): Add breadcrumbs mapping from RN to RRWeb format (#3846)

* feat(replay): Add network breadcrumbs (#3912)

* fix(replay): Add tests for touch events (#3924)

* feat(replay): Filter Sentry event breadcrumbs (#3925)

* fix(changelog): Add latest native SDKs details

* release: 5.25.0-alpha.2

* misc(samples): Add console anything examples for replay testing (#3928)

* feat: Add Sentry Babel Transformer (#3916)

* fix(replay): Add app lifecycle breadcrumbs conversion tests (#3932)

* chore(deps): bump sentry-android to 7.12.0-alpha.3

* chore(deps): bump sentry-android to 7.12.0-alpha.4

* fix(replay): Mask SVGs from `react-native-svg` when `maskAllVectors=true` (#3930)

* fix(replay): Add missing properties to android nav breadcrumbs (#3942)

* release: 5.26.0-alpha.3

* misc(replay): Add Mobile Replay Public Beta changelog (#3943)

---------

Co-authored-by: Ivan Dlugos <[email protected]>
Co-authored-by: Ivan Dlugos <[email protected]>
Co-authored-by: getsentry-bot <[email protected]>
Co-authored-by: getsentry-bot <[email protected]>
Co-authored-by: Roman Zavarnitsyn <[email protected]>
Co-authored-by: Bruno Garcia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants