Skip to content

update heartbeat to provide support for c++ sdks #5011

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
May 17, 2023

Conversation

VinayGuthal
Copy link
Contributor

@VinayGuthal VinayGuthal commented May 17, 2023

Only take all heartbeats until today.. Donot send heartbeats of today and don't delete them as well

@github-actions
Copy link
Contributor

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@VinayGuthal VinayGuthal requested review from rlazo and chkuang-g May 17, 2023 16:11
@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 May 17, 2023

Coverage Report 1

Affected Products

  • firebase-common

    Overall coverage changed from 53.60% (fce5c40) to 54.25% (a25b043) by +0.65%.

    FilenameBase (fce5c40)Merge (a25b043)Diff
    FirebaseApp.java56.36%56.56%+0.20%
    HeartBeatInfoStorage.java92.37%93.23%+0.86%

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented May 17, 2023

Unit Test Results

  34 files  +28    34 suites  +28   1m 10s ⏱️ +49s
  58 tests +47    58 ✔️ +47  0 💤 ±0  0 ±0 
116 runs  +94  116 ✔️ +94  0 💤 ±0  0 ±0 

Results for commit 23be982. ± Comparison against base commit fce5c40.

This pull request removes 11 and adds 58 tests. Note that renamed tests count towards both.
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when false)
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should build callable with FAC settings (when true)
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallable should not use limited-use tokens by default
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when false)
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl callable with FAC settings (when true)
com.google.firebase.functions.ktx.AppCheckLimitedUseTest ‑ FirebaseFunctions#getHttpsCallableFromUrl should not use limited-use tokens by default
com.google.firebase.functions.ktx.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp, region)
com.google.firebase.functions.ktx.FunctionsTests ‑ Firebase#functions should delegate to FirebaseFunctions#getInstance(region)
com.google.firebase.functions.ktx.FunctionsTests ‑ FirebaseApp#functions should delegate to FirebaseFunctions#getInstance(FirebaseApp)
com.google.firebase.functions.ktx.FunctionsTests ‑ functions should delegate to FirebaseFunctions#getInstance()
…
com.google.firebase.DataCollectionPostNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_shouldDefaultToTrue
com.google.firebase.DataCollectionPostNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_whenPrefsFalse_shouldReturnFalse
com.google.firebase.DataCollectionPostNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_whenPrefsTrue_shouldReturnTrue
com.google.firebase.DataCollectionPostNDefaultEnabledTest ‑ setDataCollectionDefaultEnabledFalse_shouldUpdateSharedPrefs
com.google.firebase.DataCollectionPostNDefaultEnabledTest ‑ setDataCollectionDefaultEnabled_shouldNotAffectOtherFirebaseAppInstances
com.google.firebase.DataCollectionPreNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_shouldDefaultToTrue
com.google.firebase.DataCollectionPreNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_whenPrefsFalse_shouldReturnFalse
com.google.firebase.DataCollectionPreNDefaultEnabledTest ‑ isDataCollectionDefaultEnabled_whenPrefsTrue_shouldReturnTrue
com.google.firebase.DataCollectionPreNDefaultEnabledTest ‑ setDataCollectionDefaultEnabledFalse_shouldUpdateSharedPrefs
com.google.firebase.DataCollectionPreNDefaultEnabledTest ‑ setDataCollectionDefaultEnabled_shouldNotAffectOtherFirebaseAppInstances
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 17, 2023

Size Report 1

Affected Products

  • firebase-common

    TypeBase (fce5c40)Merge (a25b043)Diff
    aar75.3 kB75.6 kB+267 B (+0.4%)
    apk (aggressive)112 kB112 kB+16 B (+0.0%)
    apk (release)1.26 MB1.26 MB+132 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

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

  • ComponentDiscovery

    DeviceStatisticsDistributions
    oriole-32
    Percentilefce5c40a25b043DiffSignificant (?)
    p10432 ±12 μs437 ±11 μs+4.60 μs (+1.1%)NO
    p25484 ±16 μs477 ±19 μs-6.63 μs (-1.4%)NO
    p50571 ±16 μs570 ±25 μs-1.43 μs (-0.3%)NO
    p75678 ±41 μs663 ±29 μs-14.3 μs (-2.1%)NO
    p90847 ±36 μs841 ±61 μs-6.31 μs (-0.7%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
    redfin-30
    Percentilefce5c40a25b043DiffSignificant (?)
    p10757 ±11 μs760 ±12 μs+3.19 μs (+0.4%)NO
    p25792 ±12 μs799 ±16 μs+7.52 μs (+1.0%)NO
    p50856 ±20 μs871 ±25 μs+15.0 μs (+1.7%)NO
    p751.11 ±0.06 ms1.10 ±0.09 ms-8.49 μs (-0.8%)NO
    p901.54 ±0.1 ms1.56 ±0.3 ms+18.9 μs (+1.2%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
  • Firebase

    DeviceStatisticsDistributions
    oriole-32
    Percentilefce5c40a25b043DiffSignificant (?)
    p104.29 ±0.1 ms4.34 ±0.1 ms+51.6 μs (+1.2%)NO
    p254.50 ±0.2 ms4.58 ±0.2 ms+72.3 μs (+1.6%)NO
    p504.87 ±0.2 ms4.90 ±0.2 ms+33.0 μs (+0.7%)NO
    p755.38 ±0.3 ms5.50 ±0.2 ms+113 μs (+2.1%)NO
    p906.14 ±0.3 ms6.24 ±0.3 ms+105 μs (+1.7%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
    redfin-30
    Percentilefce5c40a25b043DiffSignificant (?)
    p106.55 ±0.2 ms6.62 ±0.1 ms+66.8 μs (+1.0%)NO
    p256.78 ±0.2 ms6.84 ±0.2 ms+57.6 μs (+0.8%)NO
    p507.12 ±0.2 ms7.18 ±0.2 ms+59.7 μs (+0.8%)NO
    p757.76 ±0.2 ms7.92 ±0.2 ms+155 μs (+2.0%)NO
    p909.02 ±0.6 ms9.16 ±0.6 ms+136 μs (+1.5%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
  • Runtime

    DeviceStatisticsDistributions
    oriole-32
    Percentilefce5c40a25b043DiffSignificant (?)
    p103.75 ±0.1 ms3.81 ±0.1 ms+57.4 μs (+1.5%)NO
    p253.92 ±0.2 ms4.00 ±0.1 ms+82.7 μs (+2.1%)NO
    p504.20 ±0.2 ms4.28 ±0.2 ms+75.5 μs (+1.8%)NO
    p754.65 ±0.3 ms4.82 ±0.2 ms+161 μs (+3.5%)NO
    p905.40 ±0.3 ms5.49 ±0.3 ms+95.1 μs (+1.8%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
    redfin-30
    Percentilefce5c40a25b043DiffSignificant (?)
    p105.64 ±0.1 ms5.69 ±0.1 ms+58.1 μs (+1.0%)NO
    p255.82 ±0.2 ms5.88 ±0.1 ms+54.1 μs (+0.9%)NO
    p506.07 ±0.2 ms6.13 ±0.1 ms+65.9 μs (+1.1%)NO
    p756.49 ±0.2 ms6.58 ±0.1 ms+83.1 μs (+1.3%)NO
    p907.31 ±0.4 ms7.42 ±0.5 ms+112 μs (+1.5%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentilefce5c40a25b043DiffSignificant (?)
    p10191 ±4 ms198 ±4 ms+6.85 ms (+3.6%)NO
    p25197 ±3 ms204 ±4 ms+7.18 ms (+3.7%)NO
    p50204 ±3 ms212 ±5 ms+7.82 ms (+3.8%)NO
    p75212 ±5 ms222 ±6 ms+9.75 ms (+4.6%)NO
    p90222 ±8 ms233 ±6 ms+11.2 ms (+5.1%)NO

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov
    redfin-30
    Percentilefce5c40a25b043DiffSignificant (?)
    p10230 ±3 ms255 ±5 ms+25.1 ms (+10.9%)YES
    p25236 ±3 ms261 ±5 ms+25.3 ms (+10.8%)YES
    p50242 ±3 ms269 ±5 ms+26.4 ms (+10.9%)YES
    p75250 ±5 ms277 ±6 ms+27.8 ms (+11.1%)YES
    p90258 ±5 ms289 ±7 ms+31.1 ms (+12.0%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    fce5c40
    • 2023-05-16_19:54:53.798812_DfiQ
    • 2023-05-16_19:54:53.801192_koIE
    • 2023-05-16_19:54:53.801208_IChC
    • 2023-05-16_19:54:53.801215_Dpvd
    • 2023-05-16_19:54:53.801221_vaBM
    • 2023-05-16_19:54:53.801228_UvMg
    • 2023-05-16_19:54:53.801234_Nqwk
    • 2023-05-16_19:54:53.801239_sCFL
    • 2023-05-16_19:54:53.801245_AaSf
    • 2023-05-16_19:54:53.801251_gPwe
    a25b043
    • 2023-05-17_17:00:15.422097_GWqx
    • 2023-05-17_17:00:15.426355_gaOA
    • 2023-05-17_17:00:15.426391_MvTK
    • 2023-05-17_17:00:15.426402_tFri
    • 2023-05-17_17:00:15.426409_IvRg
    • 2023-05-17_17:00:15.426416_vUGJ
    • 2023-05-17_17:00:15.426423_ybyV
    • 2023-05-17_17:00:15.426429_CZeL
    • 2023-05-17_17:00:15.426435_oDfb
    • 2023-05-17_17:00:15.426442_llov

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

@VinayGuthal VinayGuthal merged commit 1c763f0 into master May 17, 2023
@VinayGuthal VinayGuthal deleted the update_heartbeat_for_c++ branch May 17, 2023 17:33
@firebase firebase locked and limited conversation to collaborators Jun 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants