Skip to content

User action refactor #6120

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

Merged
merged 2 commits into from
Jul 29, 2024
Merged

User action refactor #6120

merged 2 commits into from
Jul 29, 2024

Conversation

themiswang
Copy link
Contributor

@themiswang themiswang commented Jul 24, 2024

  • Creating common and disk worker based on Firebase background common executor
  • Move all user action directly to background thread and remove some unnecessary task submit
  • Add unit tests dependency for firebase common executor
  • Decouple crashlytics backend handler from user metadata and use disk writing working for persistence write.

Copy link
Contributor

github-actions bot commented Jul 24, 2024

Release note changes

No release note changes were detected. If you made changes that should be
present in the next release, ensure you've added an entry in the appropriate
CHANGELOG.md file(s).

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 24, 2024

Coverage Report 1

Affected Products

  • firebase-crashlytics

    Overall coverage changed from 11.14% (96b702f) to 11.16% (2a0650b) by +0.02%.

    FilenameBase (96b702f)Merge (2a0650b)Diff
    CrashlyticsController.java16.06%16.58%+0.52%
    CrashlyticsCore.java0.63%0.62%-0.01%
    UserMetadata.java22.12%22.33%+0.21%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/bHmVwqtMzf.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 24, 2024

Size Report 1

Affected Products

  • firebase-crashlytics

    TypeBase (96b702f)Merge (2a0650b)Diff
    aar416 kB415 kB-1.21 kB (-0.3%)
    apk (aggressive)697 kB697 kB+368 B (+0.1%)
    apk (release)5.85 MB5.85 MB+2.58 kB (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/uzPfPpkoIQ.html

Copy link
Contributor

github-actions bot commented Jul 24, 2024

Unit Test Results

  8 files  ±0    8 suites  ±0   26s ⏱️ ±0s
22 tests ±0  22 ✔️ ±0  0 💤 ±0  0 ±0 
44 runs  ±0  44 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit d4580f4. ± Comparison against base commit 96b702f.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 24, 2024

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • fire-cls

    DeviceStatisticsDistributions
    oriole-32
    Percentile96b702f2a0650bDiffSignificant (?)
    p1012.3 ±3 ms10.9 ±2 ms-1.43 ms (-11.6%)NO
    p2513.1 ±3 ms11.6 ±3 ms-1.50 ms (-11.5%)NO
    p5014.2 ±3 ms12.5 ±3 ms-1.70 ms (-12.0%)NO
    p7515.5 ±3 ms13.7 ±3 ms-1.80 ms (-11.6%)NO
    p9017.3 ±4 ms15.4 ±3 ms-1.89 ms (-10.9%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
    redfin-30
    Percentile96b702f2a0650bDiffSignificant (?)
    p1017.2 ±6 ms17.7 ±7 ms+588 μs (+3.4%)NO
    p2518.3 ±7 ms19.0 ±8 ms+725 μs (+4.0%)NO
    p5019.9 ±8 ms20.5 ±9.5 ms+609 μs (+3.1%)NO
    p7521.8 ±9 ms22.2 ±10 ms+319 μs (+1.5%)NO
    p9024.1 ±9 ms25.2 ±11 ms+1.14 ms (+4.8%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
  • fire-rc

    DeviceStatisticsDistributions
    oriole-32
    Percentile96b702f2a0650bDiffSignificant (?)
    p10456 ±640 μs89.8 ±12 μs-367 μs (-80.3%)NO
    p25481 ±667 μs94.6 ±13 μs-387 μs (-80.4%)NO
    p50523 ±715 μs107 ±19 μs-416 μs (-79.5%)NO
    p75620 ±843 μs132 ±29 μs-488 μs (-78.7%)NO
    p90749 ±1004 μs185 ±73 μs-563 μs (-75.2%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
    redfin-30
    Percentile96b702f2a0650bDiffSignificant (?)
    p10309 ±309 μs430 ±504 μs+120 μs (+38.9%)NO
    p25366 ±402 μs507 ±610 μs+141 μs (+38.5%)NO
    p50457 ±556 μs635 ±742 μs+178 μs (+38.9%)NO
    p75586 ±780 μs838 ±886 μs+252 μs (+43.0%)NO
    p90773 ±1092 μs1.09 ±1 ms+318 μs (+41.2%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
  • fire-sessions

    DeviceStatisticsDistributions
    oriole-32
    Percentile96b702f2a0650bDiffSignificant (?)
    p103.01 ±0.8 ms2.72 ±0.6 ms-293 μs (-9.7%)NO
    p253.21 ±0.9 ms2.91 ±0.6 ms-301 μs (-9.4%)NO
    p503.53 ±1 ms3.36 ±0.7 ms-178 μs (-5.0%)NO
    p754.08 ±1 ms3.97 ±0.9 ms-112 μs (-2.7%)NO
    p904.89 ±1 ms4.95 ±1 ms+59.6 μs (+1.2%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
    redfin-30
    Percentile96b702f2a0650bDiffSignificant (?)
    p105.93 ±1 ms5.86 ±1 ms-70.2 μs (-1.2%)NO
    p256.37 ±2 ms6.23 ±1 ms-146 μs (-2.3%)NO
    p507.08 ±2 ms6.66 ±2 ms-414 μs (-5.8%)NO
    p757.90 ±3 ms7.33 ±2 ms-578 μs (-7.3%)NO
    p908.78 ±4 ms8.39 ±3 ms-392 μs (-4.5%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile96b702f2a0650bDiffSignificant (?)
    p10203 ±3 ms205 ±3 ms+1.98 ms (+1.0%)NO
    p25208 ±3 ms211 ±3 ms+2.66 ms (+1.3%)NO
    p50216 ±3 ms218 ±3 ms+2.28 ms (+1.1%)NO
    p75223 ±5 ms226 ±3 ms+2.57 ms (+1.2%)NO
    p90231 ±7 ms235 ±3 ms+3.93 ms (+1.7%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT
    redfin-30
    Percentile96b702f2a0650bDiffSignificant (?)
    p10246 ±11 ms270 ±6 ms+23.4 ms (+9.5%)NO
    p25251 ±11 ms275 ±7 ms+23.3 ms (+9.2%)NO
    p50258 ±13 ms282 ±9 ms+24.1 ms (+9.3%)NO
    p75268 ±19 ms292 ±11 ms+24.2 ms (+9.0%)NO
    p90280 ±25 ms308 ±25 ms+28.9 ms (+10.3%)NO

    20 test runs in comparison
    CommitTest Runs
    96b702f
    • 2024-07-29_16:44:12.664388_cfAs
    • 2024-07-29_16:44:12.664436_SRPs
    • 2024-07-29_16:44:12.664449_Xupy
    • 2024-07-29_16:44:12.664459_Ufiw
    • 2024-07-29_16:44:12.664468_MbtB
    • 2024-07-29_16:44:12.664478_AClO
    • 2024-07-29_16:44:12.664486_TdVM
    • 2024-07-29_16:44:12.664495_pFBW
    • 2024-07-29_16:44:12.664504_etSg
    • 2024-07-29_16:44:12.664513_FCtm
    2a0650b
    • 2024-07-29_17:40:39.471274_syVN
    • 2024-07-29_17:40:39.471870_BBzg
    • 2024-07-29_17:40:39.471883_eSvc
    • 2024-07-29_17:40:39.471891_KJYR
    • 2024-07-29_17:40:39.471899_HutJ
    • 2024-07-29_17:40:39.471906_KqDQ
    • 2024-07-29_17:40:39.471914_oCIw
    • 2024-07-29_17:40:39.471921_gymr
    • 2024-07-29_17:40:39.471928_hkeZ
    • 2024-07-29_17:40:39.471935_isNT

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/VGDycMKzzG/index.html

@themiswang themiswang force-pushed the userAction branch 2 times, most recently from f828f55 to ec8c005 Compare July 26, 2024 18:27
@themiswang themiswang marked this pull request as ready for review July 26, 2024 18:30
mrober added a commit that referenced this pull request Jul 29, 2024
@themiswang themiswang merged commit 3a4ec18 into main Jul 29, 2024
41 of 42 checks passed
@themiswang themiswang deleted the userAction branch July 29, 2024 17:58
themiswang added a commit that referenced this pull request Jul 30, 2024
Other metadata persistence is already on the right work from the
previous pr #6120
- Move log and non-fatal persistence to disk write worker
- Refine unit tests
- Remove unused functions and interface
mrober added a commit that referenced this pull request Aug 19, 2024
@firebase firebase locked and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants