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

Increase test coverage for persistent cache indexing #5213

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

cherylEnkidu
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 31, 2023

📝 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.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 31, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 44.63% (f2a0fa3) to 44.62% (5647871) by -0.00%.

    FilenameBase (f2a0fa3)Merge (5647871)Diff
    LruGarbageCollector.java97.27%93.64%-3.64%
    RemoteSerializer.java79.62%79.83%+0.21%
    SetMutation.java94.44%97.22%+2.78%
    Target.java95.79%96.26%+0.47%

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented Jul 31, 2023

Unit Test Results

   164 files   -    656     164 suites   - 656   2m 43s ⏱️ - 36m 5s
1 205 tests  - 3 797  1 189 ✔️  - 3 791  16 💤  -   5  0  - 1 
2 410 runs   - 7 503  2 378 ✔️  - 7 492  32 💤  - 10  0  - 1 

Results for commit b6c3465. ± Comparison against base commit f2a0fa3.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 31, 2023

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (f2a0fa3)Merge (5647871)Diff
    aar1.36 MB1.36 MB+2 B (+0.0%)
    apk (release)3.95 MB3.95 MB+28 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 31, 2023

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-fst

    DeviceStatisticsDistributions
    oriole-32
    Percentilef2a0fa35647871DiffSignificant (?)
    p10315 ±19 μs324 ±21 μs+9.16 μs (+2.9%)NO
    p25333 ±23 μs336 ±26 μs+3.27 μs (+1.0%)NO
    p50354 ±31 μs365 ±49 μs+10.9 μs (+3.1%)NO
    p75391 ±50 μs429 ±108 μs+38.5 μs (+9.9%)NO
    p90461 ±83 μs575 ±260 μs+114 μs (+24.7%)NO

    20 test runs in comparison
    CommitTest Runs
    f2a0fa3
    • 2023-08-16_20:49:23.572658_AiVl
    • 2023-08-16_20:49:23.576531_vDAe
    • 2023-08-16_20:49:23.576550_BHxJ
    • 2023-08-16_20:49:23.576559_AdUb
    • 2023-08-16_20:49:23.576565_ZzWZ
    • 2023-08-16_20:49:23.576571_uQvL
    • 2023-08-16_20:49:23.576578_csqp
    • 2023-08-16_20:49:23.576584_Onsb
    • 2023-08-16_20:49:23.576596_eKYW
    • 2023-08-16_20:49:23.576615_JBAF
    5647871
    • 2023-08-17_15:29:46.641322_BvyJ
    • 2023-08-17_15:29:46.646752_HKZr
    • 2023-08-17_15:29:46.646764_sXMi
    • 2023-08-17_15:29:46.646773_tqTT
    • 2023-08-17_15:29:46.646779_DzJJ
    • 2023-08-17_15:29:46.646785_ypkN
    • 2023-08-17_15:29:46.646790_IzEv
    • 2023-08-17_15:29:46.646948_Nwef
    • 2023-08-17_15:29:46.646954_ukaJ
    • 2023-08-17_15:29:46.646960_sLkC
    redfin-30
    Percentilef2a0fa35647871DiffSignificant (?)
    p10598 ±27 μs627 ±63 μs+28.6 μs (+4.8%)NO
    p25615 ±32 μs651 ±86 μs+36.3 μs (+5.9%)NO
    p50636 ±39 μs715 ±202 μs+79.2 μs (+12.5%)NO
    p75668 ±49 μs771 ±245 μs+103 μs (+15.4%)NO
    p90737 ±153 μs875 ±372 μs+138 μs (+18.8%)NO

    20 test runs in comparison
    CommitTest Runs
    f2a0fa3
    • 2023-08-16_20:49:23.572658_AiVl
    • 2023-08-16_20:49:23.576531_vDAe
    • 2023-08-16_20:49:23.576550_BHxJ
    • 2023-08-16_20:49:23.576559_AdUb
    • 2023-08-16_20:49:23.576565_ZzWZ
    • 2023-08-16_20:49:23.576571_uQvL
    • 2023-08-16_20:49:23.576578_csqp
    • 2023-08-16_20:49:23.576584_Onsb
    • 2023-08-16_20:49:23.576596_eKYW
    • 2023-08-16_20:49:23.576615_JBAF
    5647871
    • 2023-08-17_15:29:46.641322_BvyJ
    • 2023-08-17_15:29:46.646752_HKZr
    • 2023-08-17_15:29:46.646764_sXMi
    • 2023-08-17_15:29:46.646773_tqTT
    • 2023-08-17_15:29:46.646779_DzJJ
    • 2023-08-17_15:29:46.646785_ypkN
    • 2023-08-17_15:29:46.646790_IzEv
    • 2023-08-17_15:29:46.646948_Nwef
    • 2023-08-17_15:29:46.646954_ukaJ
    • 2023-08-17_15:29:46.646960_sLkC
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentilef2a0fa35647871DiffSignificant (?)
    p10204 ±6 ms205 ±3 ms+1.54 ms (+0.8%)NO
    p25210 ±7 ms212 ±3 ms+2.09 ms (+1.0%)NO
    p50218 ±8 ms219 ±3 ms+1.49 ms (+0.7%)NO
    p75226 ±8 ms229 ±4 ms+3.37 ms (+1.5%)NO
    p90235 ±9 ms242 ±4 ms+7.12 ms (+3.0%)NO

    20 test runs in comparison
    CommitTest Runs
    f2a0fa3
    • 2023-08-16_20:49:23.572658_AiVl
    • 2023-08-16_20:49:23.576531_vDAe
    • 2023-08-16_20:49:23.576550_BHxJ
    • 2023-08-16_20:49:23.576559_AdUb
    • 2023-08-16_20:49:23.576565_ZzWZ
    • 2023-08-16_20:49:23.576571_uQvL
    • 2023-08-16_20:49:23.576578_csqp
    • 2023-08-16_20:49:23.576584_Onsb
    • 2023-08-16_20:49:23.576596_eKYW
    • 2023-08-16_20:49:23.576615_JBAF
    5647871
    • 2023-08-17_15:29:46.641322_BvyJ
    • 2023-08-17_15:29:46.646752_HKZr
    • 2023-08-17_15:29:46.646764_sXMi
    • 2023-08-17_15:29:46.646773_tqTT
    • 2023-08-17_15:29:46.646779_DzJJ
    • 2023-08-17_15:29:46.646785_ypkN
    • 2023-08-17_15:29:46.646790_IzEv
    • 2023-08-17_15:29:46.646948_Nwef
    • 2023-08-17_15:29:46.646954_ukaJ
    • 2023-08-17_15:29:46.646960_sLkC
    redfin-30
    Percentilef2a0fa35647871DiffSignificant (?)
    p10243 ±3 ms265 ±4 ms+22.5 ms (+9.3%)YES
    p25249 ±3 ms272 ±4 ms+22.9 ms (+9.2%)YES
    p50256 ±3 ms280 ±4 ms+23.6 ms (+9.2%)YES
    p75264 ±3 ms289 ±5 ms+24.7 ms (+9.4%)YES
    p90274 ±4 ms304 ±6 ms+29.2 ms (+10.7%)YES

    20 test runs in comparison
    CommitTest Runs
    f2a0fa3
    • 2023-08-16_20:49:23.572658_AiVl
    • 2023-08-16_20:49:23.576531_vDAe
    • 2023-08-16_20:49:23.576550_BHxJ
    • 2023-08-16_20:49:23.576559_AdUb
    • 2023-08-16_20:49:23.576565_ZzWZ
    • 2023-08-16_20:49:23.576571_uQvL
    • 2023-08-16_20:49:23.576578_csqp
    • 2023-08-16_20:49:23.576584_Onsb
    • 2023-08-16_20:49:23.576596_eKYW
    • 2023-08-16_20:49:23.576615_JBAF
    5647871
    • 2023-08-17_15:29:46.641322_BvyJ
    • 2023-08-17_15:29:46.646752_HKZr
    • 2023-08-17_15:29:46.646764_sXMi
    • 2023-08-17_15:29:46.646773_tqTT
    • 2023-08-17_15:29:46.646779_DzJJ
    • 2023-08-17_15:29:46.646785_ypkN
    • 2023-08-17_15:29:46.646790_IzEv
    • 2023-08-17_15:29:46.646948_Nwef
    • 2023-08-17_15:29:46.646954_ukaJ
    • 2023-08-17_15:29:46.646960_sLkC

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

@cherylEnkidu cherylEnkidu force-pushed the cheryllin/readability branch 3 times, most recently from 99b25a4 to 09498d1 Compare August 10, 2023 18:51
@cherylEnkidu cherylEnkidu force-pushed the cheryllin/readability branch 2 times, most recently from a921927 to d326e29 Compare August 11, 2023 03:48
@cherylEnkidu cherylEnkidu changed the title Improve readability Increase test coverage for persistent cache indexing Aug 11, 2023
@cherylEnkidu cherylEnkidu requested a review from dconeybe August 11, 2023 04:34
Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

Just one tiny nit about line length.

Note that in the web port of client-side index auto creation (firebase/firebase-js-sdk#7542) I added "testing hooks" that provide a way for integration tests to verify that the indexes are (or are not) created, as expected. This is something we should consider porting to android and ios IMO. The "testing hooks" infrastructure exists in android and ios too (it was created for the bloom filter work) so we'd just need to add to it.

@dconeybe dconeybe assigned cherylEnkidu and unassigned dconeybe Aug 11, 2023
@cherylEnkidu
Copy link
Contributor Author

As discussed in the meeting, testing hook will be added in a separated PR. Tracking number: b/296100693

Copy link
Contributor

@dconeybe dconeybe left a comment

Choose a reason for hiding this comment

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

A few minor nits, but mostly LGTM.

@dconeybe dconeybe removed their assignment Aug 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants