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(ttfd): Use TTID end timestamp when TTFD should be updated with an earlier timestamp #3869

Merged
merged 3 commits into from
Jun 7, 2024

Conversation

krystofwoldrich
Copy link
Member

@krystofwoldrich krystofwoldrich commented Jun 6, 2024

📢 Type of change

  • Bugfix

📜 Description

This PR fixes a race condition when TTFD update would be called after TTID, but the provided timestamp was set to earlier point in time than TTID end timestamp.

💚 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

Copy link
Contributor

github-actions bot commented Jun 6, 2024

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 454.80 ms 487.23 ms 32.43 ms
Size 17.73 MiB 19.94 MiB 2.21 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
6e8584e 447.10 ms 474.71 ms 27.61 ms
80b2ce3 385.02 ms 387.36 ms 2.34 ms
728164b 414.34 ms 449.22 ms 34.88 ms
15c80ab+dirty 336.27 ms 350.58 ms 14.31 ms
457e29f 398.10 ms 421.39 ms 23.29 ms
5bb8d5f 431.21 ms 459.40 ms 28.19 ms
d197b5c+dirty 338.94 ms 354.87 ms 15.93 ms
31fcca2 391.22 ms 414.78 ms 23.56 ms
e5c9b8b 409.02 ms 426.66 ms 17.64 ms
12427f4 393.69 ms 414.84 ms 21.14 ms

App size

Revision Plain With Sentry Diff
6e8584e 17.73 MiB 19.86 MiB 2.12 MiB
80b2ce3 17.73 MiB 19.75 MiB 2.02 MiB
728164b 17.73 MiB 19.85 MiB 2.12 MiB
15c80ab+dirty 17.73 MiB 20.04 MiB 2.31 MiB
457e29f 17.73 MiB 19.84 MiB 2.10 MiB
5bb8d5f 17.73 MiB 19.93 MiB 2.20 MiB
d197b5c+dirty 17.73 MiB 20.04 MiB 2.31 MiB
31fcca2 17.73 MiB 19.90 MiB 2.17 MiB
e5c9b8b 17.73 MiB 19.83 MiB 2.10 MiB
12427f4 17.73 MiB 19.85 MiB 2.12 MiB

@krystofwoldrich krystofwoldrich marked this pull request as ready for review June 6, 2024 15:47
Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

LGTM!

@krystofwoldrich krystofwoldrich enabled auto-merge (squash) June 7, 2024 10:29
@krystofwoldrich krystofwoldrich merged commit 04e2444 into main Jun 7, 2024
51 of 53 checks passed
@krystofwoldrich krystofwoldrich deleted the kw/fix-ttfd-ends-before-ttid branch June 7, 2024 10:31
Copy link
Contributor

github-actions bot commented Jun 7, 2024

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1221.91 ms 1235.77 ms 13.86 ms
Size 2.36 MiB 3.03 MiB 680.30 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
6e8584e+dirty 1274.50 ms 1296.82 ms 22.32 ms
d361d38+dirty 1246.04 ms 1267.12 ms 21.08 ms
2534337+dirty 1225.08 ms 1230.26 ms 5.17 ms
5a22220+dirty 1209.49 ms 1220.94 ms 11.45 ms
5bb8d5f+dirty 1235.47 ms 1237.39 ms 1.92 ms
76d1baf+dirty 1244.10 ms 1268.52 ms 24.42 ms
0db0c72+dirty 1275.02 ms 1285.84 ms 10.82 ms
3ffcddd+dirty 1244.47 ms 1264.14 ms 19.67 ms
52a8031+dirty 1280.88 ms 1289.78 ms 8.90 ms
86d6d2c+dirty 1267.55 ms 1286.21 ms 18.66 ms

App size

Revision Plain With Sentry Diff
6e8584e+dirty 2.36 MiB 2.88 MiB 533.17 KiB
d361d38+dirty 2.36 MiB 2.85 MiB 499.84 KiB
2534337+dirty 2.36 MiB 2.88 MiB 525.47 KiB
5a22220+dirty 2.36 MiB 2.92 MiB 570.21 KiB
5bb8d5f+dirty 2.36 MiB 2.92 MiB 570.22 KiB
76d1baf+dirty 2.36 MiB 2.82 MiB 469.45 KiB
0db0c72+dirty 2.36 MiB 2.84 MiB 487.01 KiB
3ffcddd+dirty 2.36 MiB 2.84 MiB 489.60 KiB
52a8031+dirty 2.36 MiB 2.82 MiB 469.44 KiB
86d6d2c+dirty 2.36 MiB 2.82 MiB 462.82 KiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants