Skip to content

Move log and non-fatal persistence to disk write worker #6133

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 30, 2024

Conversation

themiswang
Copy link
Contributor

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

Copy link
Contributor

github-actions bot commented Jul 29, 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 29, 2024

Coverage Report 1

Affected Products

  • firebase-crashlytics

    Overall coverage changed from 11.16% (c928402) to 11.17% (2209557) by +0.01%.

    FilenameBase (c928402)Merge (2209557)Diff
    CrashlyticsCore.java0.62%0.61%-0.01%
    SessionReportingCoordinator.java42.11%42.44%+0.34%

Test Logs

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

Copy link
Contributor

github-actions bot commented Jul 29, 2024

Unit Test Results

  8 files   -   56    8 suites   - 56   28s ⏱️ - 5m 34s
22 tests  - 464  22 ✔️  - 464  0 💤 ±0  0 ±0 
44 runs   - 934  44 ✔️  - 934  0 💤 ±0  0 ±0 

Results for commit 6ef3aa9. ± Comparison against base commit c928402.

This pull request removes 486 and adds 22 tests. Note that renamed tests count towards both.
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testNoWrappedIntent
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testNullIntent
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_notOButTargetingO
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_notOButTargetingO[21]
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_notOButTargetingO[22]
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_notOButTargetingO[23]
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_notOButTargetingO[24]
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_preO
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_preO[21]
com.google.firebase.iid.FirebaseInstanceIdWithFcmReceiverRoboTest ‑ testStartsService_preO[22]
…
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_disabledAnrs_doesNotPersistsAppExitInfo
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_doesNotPersistsAppExitInfoIfItDoesntExist
com.google.firebase.crashlytics.internal.common.CrashlyticsControllerRobolectricTest ‑ testDoCloseSession_enabledAnrs_persistsAppExitInfoIfItExists
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testDefaultDataCollection_usedWhenNoOverrideOrManifestSetting
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testManifestMetadata_respectedWhenNoOverride
com.google.firebase.crashlytics.internal.common.DataCollectionArbiterRobolectricTest ‑ testSetCrashlyticsDataCollectionEnabled_overridesOtherSettings
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAnrBeforeSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_notPersistIfAppExitInfoNotAnrButWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession
com.google.firebase.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testAppExitInfoEvent_persistIfAnrWithinSession_multipleAppExitInfo
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 29, 2024

Size Report 1

Affected Products

  • firebase-crashlytics

    TypeBase (c928402)Merge (2209557)Diff
    aar415 kB415 kB-262 B (-0.1%)
    apk (aggressive)697 kB697 kB+4 B (+0.0%)
    apk (release)5.85 MB5.85 MB+568 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 29, 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
    Percentilec9284022209557DiffSignificant (?)
    p109.99 ±0.7 ms11.9 ±3 ms+1.94 ms (+19.4%)NO
    p2510.6 ±0.7 ms12.6 ±3 ms+2.03 ms (+19.2%)NO
    p5011.5 ±1 ms13.6 ±3 ms+2.15 ms (+18.7%)NO
    p7512.7 ±1 ms14.8 ±3 ms+2.17 ms (+17.1%)NO
    p9014.2 ±1 ms16.4 ±3 ms+2.23 ms (+15.7%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
    redfin-30
    Percentilec9284022209557DiffSignificant (?)
    p1016.2 ±5 ms16.0 ±4 ms-222 μs (-1.4%)NO
    p2517.3 ±6 ms17.0 ±5 ms-250 μs (-1.4%)NO
    p5018.7 ±7 ms18.4 ±5 ms-340 μs (-1.8%)NO
    p7520.6 ±7 ms20.2 ±6 ms-344 μs (-1.7%)NO
    p9023.1 ±9 ms23.4 ±6 ms+266 μs (+1.2%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
  • fire-rc

    DeviceStatisticsDistributions
    oriole-32
    Percentilec9284022209557DiffSignificant (?)
    p10413 ±595 μs283 ±478 μs-130 μs (-31.5%)NO
    p25443 ±640 μs301 ±511 μs-142 μs (-32.1%)NO
    p50508 ±738 μs332 ±552 μs-176 μs (-34.6%)NO
    p75598 ±858 μs392 ±655 μs-206 μs (-34.5%)NO
    p90778 ±1120 μs521 ±886 μs-258 μs (-33.1%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
    redfin-30
    Percentilec9284022209557DiffSignificant (?)
    p10536 ±654 μs248 ±215 μs-287 μs (-53.6%)NO
    p25632 ±782 μs272 ±255 μs-360 μs (-56.9%)NO
    p50767 ±943 μs338 ±398 μs-429 μs (-55.9%)NO
    p75922 ±1125 μs409 ±490 μs-513 μs (-55.6%)NO
    p901.20 ±2 ms583 ±823 μs-620 μs (-51.5%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
  • fire-sessions

    DeviceStatisticsDistributions
    oriole-32
    Percentilec9284022209557DiffSignificant (?)
    p102.94 ±0.7 ms2.89 ±0.8 ms-43.1 μs (-1.5%)NO
    p253.12 ±0.7 ms3.06 ±0.9 ms-63.9 μs (-2.0%)NO
    p503.43 ±0.8 ms3.39 ±1 ms-38.8 μs (-1.1%)NO
    p753.97 ±1 ms3.90 ±1 ms-73.1 μs (-1.8%)NO
    p904.81 ±1 ms4.57 ±1 ms-237 μs (-4.9%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
    redfin-30
    Percentilec9284022209557DiffSignificant (?)
    p106.07 ±2 ms6.19 ±2 ms+129 μs (+2.1%)NO
    p256.54 ±2 ms6.64 ±2 ms+99.8 μs (+1.5%)NO
    p507.31 ±3 ms7.37 ±3 ms+60.3 μs (+0.8%)NO
    p758.53 ±5 ms8.30 ±4 ms-223 μs (-2.6%)NO
    p909.56 ±6 ms9.41 ±5 ms-151 μs (-1.6%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentilec9284022209557DiffSignificant (?)
    p10205 ±8 ms206 ±8 ms+1.55 ms (+0.8%)NO
    p25211 ±10 ms212 ±8 ms+692 μs (+0.3%)NO
    p50221 ±18 ms219 ±9 ms-2.30 ms (-1.0%)NO
    p75230 ±21 ms227 ±9.5 ms-2.34 ms (-1.0%)NO
    p90239 ±26 ms236 ±9.8 ms-2.81 ms (-1.2%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE
    redfin-30
    Percentilec9284022209557DiffSignificant (?)
    p10252 ±15 ms264 ±4 ms+11.6 ms (+4.6%)NO
    p25258 ±15 ms270 ±5 ms+11.6 ms (+4.5%)NO
    p50264 ±16 ms276 ±5 ms+12.0 ms (+4.5%)NO
    p75272 ±17 ms285 ±6 ms+12.5 ms (+4.6%)NO
    p90286 ±19 ms298 ±8 ms+11.6 ms (+4.0%)NO

    20 test runs in comparison
    CommitTest Runs
    c928402
    • 2024-07-30_16:20:34.487437_OOkJ
    • 2024-07-30_16:20:34.487481_UheW
    • 2024-07-30_16:20:34.487490_DZzt
    • 2024-07-30_16:20:34.487497_ccdb
    • 2024-07-30_16:20:34.487504_lVDy
    • 2024-07-30_16:20:34.487511_YnNb
    • 2024-07-30_16:20:34.487517_rTzq
    • 2024-07-30_16:20:34.487523_bVit
    • 2024-07-30_16:20:34.487529_GHyb
    • 2024-07-30_16:20:34.487536_yOPj
    2209557
    • 2024-07-30_17:59:37.833659_ccPo
    • 2024-07-30_17:59:37.833703_WqrU
    • 2024-07-30_17:59:37.833713_sEoA
    • 2024-07-30_17:59:37.833721_RZYA
    • 2024-07-30_17:59:37.833729_Hnjz
    • 2024-07-30_17:59:37.833735_zAcj
    • 2024-07-30_17:59:37.833742_bHTm
    • 2024-07-30_17:59:37.833749_CeNC
    • 2024-07-30_17:59:37.833755_zKDB
    • 2024-07-30_17:59:37.833762_qhEE

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

@themiswang themiswang force-pushed the userActionPersistence branch from 7ebc4d3 to 6ef3aa9 Compare July 30, 2024 17:47
@themiswang themiswang merged commit 10fe142 into main Jul 30, 2024
41 of 42 checks passed
@themiswang themiswang deleted the userActionPersistence branch July 30, 2024 18:06
mrober added a commit that referenced this pull request Aug 19, 2024
@firebase firebase locked and limited conversation to collaborators Aug 30, 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