Skip to content

Check for notification_open duplicate logging based on message ID. #6112

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 3 commits into from
Aug 7, 2024

Conversation

gsakakihara
Copy link
Contributor

- Changed to use the message ID when checking for duplicate notification_open logging instead of the Activity's Intent. This should avoid logging again when an app starts another activity using a copy of the notification's intent (#6091).
Copy link
Contributor

github-actions bot commented Jul 18, 2024

Release note changes

The following release notes were modified. Please ensure they look correct.

Release Notes
firebase-messaging
### {{messaging_longer}} version 24.0.1 {: #messaging_v24-0-1}

* {{changed}} Retry Topic Subscribe/Unsubscribe operations with exponential
  backoff if they hit a quota error.

* {{changed}} Checked for notification_open duplicate logging based on message ID
  instead of the Activity's Intent.

#### {{messaging_longer}} Kotlin extensions version 24.0.1 {: #messaging-ktx_v24-0-1}

The Kotlin extensions library transitively includes the updated
`firebase-messaging` library. The Kotlin extensions library has no additional
updates.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 18, 2024

Size Report 1

Affected Products

  • firebase-messaging

    TypeBase (9ed73c4)Merge (337e371)Diff
    aar148 kB148 kB+117 B (+0.1%)
    apk (aggressive)578 kB578 kB-28 B (-0.0%)
    apk (release)5.30 MB5.30 MB+12 B (+0.0%)

Test Logs

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

Copy link
Contributor

github-actions bot commented Jul 18, 2024

Unit Test Results

  64 files  +  56    64 suites  +56   6m 19s ⏱️ + 5m 52s
487 tests +465  487 ✔️ +465  0 💤 ±0  0 ±0 
980 runs  +936  980 ✔️ +936  0 💤 ±0  0 ±0 

Results for commit 530196b. ± Comparison against base commit 9ed73c4.

This pull request removes 22 and adds 487 tests. Note that renamed tests count towards both.
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
…
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]
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 18, 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-fcm

    DeviceStatisticsDistributions
    oriole-32
    Percentile9ed73c4337e371DiffSignificant (?)
    p10878 ±662 μs910 ±895 μs+31.7 μs (+3.6%)NO
    p25939 ±713 μs965 ±953 μs+25.9 μs (+2.8%)NO
    p501.06 ±0.8 ms1.06 ±1 ms+808 ns (+0.1%)NO
    p751.21 ±0.9 ms1.23 ±1 ms+14.3 μs (+1.2%)NO
    p901.48 ±1 ms1.51 ±1 ms+36.1 μs (+2.4%)NO

    20 test runs in comparison
    CommitTest Runs
    9ed73c4
    • 2024-08-06_18:04:19.854558_fqzS
    • 2024-08-06_18:04:19.854602_xXwX
    • 2024-08-06_18:04:19.854612_RgXy
    • 2024-08-06_18:04:19.854622_GOoW
    • 2024-08-06_18:04:19.854629_rgQV
    • 2024-08-06_18:04:19.854637_UsDL
    • 2024-08-06_18:04:19.854645_eOzE
    • 2024-08-06_18:04:19.854651_KrZL
    • 2024-08-06_18:04:19.854657_uEBJ
    • 2024-08-06_18:04:19.854673_krni
    337e371
    • 2024-08-07_17:00:55.401115_gGxZ
    • 2024-08-07_17:00:55.401164_tskP
    • 2024-08-07_17:00:55.401175_xzwi
    • 2024-08-07_17:00:55.401183_xWUx
    • 2024-08-07_17:00:55.401191_zBNi
    • 2024-08-07_17:00:55.401198_ESqB
    • 2024-08-07_17:00:55.401205_RiVL
    • 2024-08-07_17:00:55.401212_yNEH
    • 2024-08-07_17:00:55.401219_zkeC
    • 2024-08-07_17:00:55.401225_bOHZ
    redfin-30
    Percentile9ed73c4337e371DiffSignificant (?)
    p101.86 ±1 ms1.70 ±1 ms-163 μs (-8.8%)NO
    p252.20 ±2 ms1.95 ±1 ms-248 μs (-11.3%)NO
    p502.69 ±2 ms2.34 ±2 ms-343 μs (-12.8%)NO
    p753.34 ±3 ms2.94 ±2 ms-400 μs (-12.0%)NO
    p904.39 ±3 ms3.93 ±3 ms-455 μs (-10.4%)NO

    20 test runs in comparison
    CommitTest Runs
    9ed73c4
    • 2024-08-06_18:04:19.854558_fqzS
    • 2024-08-06_18:04:19.854602_xXwX
    • 2024-08-06_18:04:19.854612_RgXy
    • 2024-08-06_18:04:19.854622_GOoW
    • 2024-08-06_18:04:19.854629_rgQV
    • 2024-08-06_18:04:19.854637_UsDL
    • 2024-08-06_18:04:19.854645_eOzE
    • 2024-08-06_18:04:19.854651_KrZL
    • 2024-08-06_18:04:19.854657_uEBJ
    • 2024-08-06_18:04:19.854673_krni
    337e371
    • 2024-08-07_17:00:55.401115_gGxZ
    • 2024-08-07_17:00:55.401164_tskP
    • 2024-08-07_17:00:55.401175_xzwi
    • 2024-08-07_17:00:55.401183_xWUx
    • 2024-08-07_17:00:55.401191_zBNi
    • 2024-08-07_17:00:55.401198_ESqB
    • 2024-08-07_17:00:55.401205_RiVL
    • 2024-08-07_17:00:55.401212_yNEH
    • 2024-08-07_17:00:55.401219_zkeC
    • 2024-08-07_17:00:55.401225_bOHZ
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile9ed73c4337e371DiffSignificant (?)
    p10201 ±5 ms204 ±4 ms+3.50 ms (+1.7%)NO
    p25206 ±5 ms210 ±5 ms+3.94 ms (+1.9%)NO
    p50214 ±5 ms218 ±5 ms+4.17 ms (+2.0%)NO
    p75221 ±6 ms226 ±5 ms+5.06 ms (+2.3%)NO
    p90228 ±7 ms239 ±7 ms+10.7 ms (+4.7%)NO

    20 test runs in comparison
    CommitTest Runs
    9ed73c4
    • 2024-08-06_18:04:19.854558_fqzS
    • 2024-08-06_18:04:19.854602_xXwX
    • 2024-08-06_18:04:19.854612_RgXy
    • 2024-08-06_18:04:19.854622_GOoW
    • 2024-08-06_18:04:19.854629_rgQV
    • 2024-08-06_18:04:19.854637_UsDL
    • 2024-08-06_18:04:19.854645_eOzE
    • 2024-08-06_18:04:19.854651_KrZL
    • 2024-08-06_18:04:19.854657_uEBJ
    • 2024-08-06_18:04:19.854673_krni
    337e371
    • 2024-08-07_17:00:55.401115_gGxZ
    • 2024-08-07_17:00:55.401164_tskP
    • 2024-08-07_17:00:55.401175_xzwi
    • 2024-08-07_17:00:55.401183_xWUx
    • 2024-08-07_17:00:55.401191_zBNi
    • 2024-08-07_17:00:55.401198_ESqB
    • 2024-08-07_17:00:55.401205_RiVL
    • 2024-08-07_17:00:55.401212_yNEH
    • 2024-08-07_17:00:55.401219_zkeC
    • 2024-08-07_17:00:55.401225_bOHZ
    redfin-30
    Percentile9ed73c4337e371DiffSignificant (?)
    p10243 ±3 ms270 ±6 ms+27.3 ms (+11.3%)YES
    p25248 ±3 ms277 ±6 ms+29.0 ms (+11.7%)YES
    p50255 ±4 ms284 ±7 ms+29.6 ms (+11.6%)MAYBE
    p75262 ±4 ms294 ±9 ms+31.3 ms (+11.9%)MAYBE
    p90273 ±4 ms308 ±14 ms+35.6 ms (+13.1%)NO

    20 test runs in comparison
    CommitTest Runs
    9ed73c4
    • 2024-08-06_18:04:19.854558_fqzS
    • 2024-08-06_18:04:19.854602_xXwX
    • 2024-08-06_18:04:19.854612_RgXy
    • 2024-08-06_18:04:19.854622_GOoW
    • 2024-08-06_18:04:19.854629_rgQV
    • 2024-08-06_18:04:19.854637_UsDL
    • 2024-08-06_18:04:19.854645_eOzE
    • 2024-08-06_18:04:19.854651_KrZL
    • 2024-08-06_18:04:19.854657_uEBJ
    • 2024-08-06_18:04:19.854673_krni
    337e371
    • 2024-08-07_17:00:55.401115_gGxZ
    • 2024-08-07_17:00:55.401164_tskP
    • 2024-08-07_17:00:55.401175_xzwi
    • 2024-08-07_17:00:55.401183_xWUx
    • 2024-08-07_17:00:55.401191_zBNi
    • 2024-08-07_17:00:55.401198_ESqB
    • 2024-08-07_17:00:55.401205_RiVL
    • 2024-08-07_17:00:55.401212_yNEH
    • 2024-08-07_17:00:55.401219_zkeC
    • 2024-08-07_17:00:55.401225_bOHZ

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

@gsakakihara gsakakihara requested a review from welishr July 18, 2024 17:36
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 6, 2024

Coverage Report 1

Affected Products

  • firebase-messaging

    Overall coverage changed from 84.26% (9ed73c4) to 84.20% (337e371) by -0.06%.

    FilenameBase (9ed73c4)Merge (337e371)Diff
    FcmLifecycleCallbacks.java89.29%86.67%-2.62%
    FirebaseMessaging.java76.40%76.00%-0.40%

Test Logs

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

@gsakakihara gsakakihara merged commit 8c04ec2 into main Aug 7, 2024
38 checks passed
@gsakakihara gsakakihara deleted the gsakakihara/deduplicate_by_message_id branch August 7, 2024 18:09
@firebase firebase locked and limited conversation to collaborators Sep 7, 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