Skip to content

Fix UI tests deserialization of envelope items#3028

Merged
stefanosiano merged 1 commit intomainfrom
tests/fix-item-deserialization
Nov 7, 2023
Merged

Fix UI tests deserialization of envelope items#3028
stefanosiano merged 1 commit intomainfrom
tests/fix-item-deserialization

Conversation

@stefanosiano
Copy link
Contributor

📜 Description

improved deserialization of envelope items using header type to avoid oom errors
removed screen refresh rate from maximum allowed timestamp

#skip-changelog

💡 Motivation and Context

Fixes errors like https://github.com/getsentry/sentry-java/actions/runs/6743234669/job/18330770480

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

… oom errors

removed screen refresh rate from maximum allowed timestamp
@stefanosiano stefanosiano marked this pull request as ready for review November 6, 2023 16:26
@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2023

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 377.20 ms 445.20 ms 68.00 ms
Size 1.72 MiB 2.29 MiB 577.53 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
0bf143e 368.35 ms 437.47 ms 69.12 ms
3d8bd2b 364.76 ms 469.98 ms 105.22 ms
bc4be3b 360.40 ms 435.04 ms 74.64 ms
93a76ca 377.41 ms 448.22 ms 70.81 ms
86f0096 371.86 ms 439.78 ms 67.92 ms
c7e2fbc 398.35 ms 468.52 ms 70.17 ms
93a76ca 381.08 ms 459.22 ms 78.14 ms
93a76ca 391.54 ms 475.65 ms 84.11 ms
7ca9895 364.31 ms 460.46 ms 96.15 ms
0404ea3 332.47 ms 401.12 ms 68.66 ms

App size

Revision Plain With Sentry Diff
0bf143e 1.72 MiB 2.29 MiB 576.50 KiB
3d8bd2b 1.72 MiB 2.29 MiB 577.53 KiB
bc4be3b 1.72 MiB 2.29 MiB 576.53 KiB
93a76ca 1.72 MiB 2.29 MiB 576.75 KiB
86f0096 1.72 MiB 2.29 MiB 576.50 KiB
c7e2fbc 1.72 MiB 2.29 MiB 576.40 KiB
93a76ca 1.72 MiB 2.29 MiB 576.75 KiB
93a76ca 1.72 MiB 2.29 MiB 576.75 KiB
7ca9895 1.72 MiB 2.29 MiB 576.51 KiB
0404ea3 1.72 MiB 2.29 MiB 577.52 KiB

@codecov
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
...main/java/io/sentry/android/core/ContextUtils.java 72.00% <ø> (ø)

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

Good stuff 🚀

@stefanosiano stefanosiano merged commit d8c92f2 into main Nov 7, 2023
@stefanosiano stefanosiano deleted the tests/fix-item-deserialization branch November 7, 2023 10:25
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