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

Move sum&avg composite index tests to compositeIndexQueryTest.java #5470

Merged

Conversation

milaGGL
Copy link
Contributor

@milaGGL milaGGL commented Oct 23, 2023

  • update terraform to accept collection group index and array membership query
  • add new composite indexes required for testing
  • move sum&avg composite index tests to compositeIndexQueryTest.java(some of the field names are changed to be the same with web SDK, so that indexes in terraform are consistent)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2023

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

google-oss-bot commented Oct 23, 2023

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 44.76% (4998f4f) to 44.75% (0ffee90) by -0.02%.

    FilenameBase (4998f4f)Merge (0ffee90)Diff
    DeleteMutation.java95.24%90.48%-4.76%
    LruGarbageCollector.java97.27%93.64%-3.64%
    SetMutation.java94.44%97.22%+2.78%

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2023

Unit Test Results

   180 files  +   174     180 suites  +174   2m 47s ⏱️ + 2m 24s
1 222 tests +1 204  1 206 ✔️ +1 188  16 💤 +16  0 ±0 
2 468 runs  +2 432  2 436 ✔️ +2 400  32 💤 +32  0 ±0 

Results for commit e2b6de2. ± Comparison against base commit 4998f4f.

This pull request removes 18 and adds 1222 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.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.crashlytics.internal.common.SessionReportingCoordinatorRobolectricTest ‑ testconvertInputStreamToString_worksSuccessfully
com.google.firebase.crashlytics.internal.model.CrashlyticsReportTest ‑ testGetBinaryImageUuidUtf8Bytes_returnsNullWhenUuidIsNull
com.google.firebase.crashlytics.internal.model.CrashlyticsReportTest ‑ testGetBinaryImageUuidUtf8Bytes_returnsProperBytes
…
com.google.firebase.TimestampTest ‑ testCompare
com.google.firebase.TimestampTest ‑ testFromDate
com.google.firebase.TimestampTest ‑ testRejectBadDates
com.google.firebase.TimestampTest ‑ testTimestampParcelable
com.google.firebase.firestore.AggregateQuerySnapshotTest ‑ createWithCountShouldReturnInstanceWithTheGivenQueryAndCount
com.google.firebase.firestore.AggregateQueryTest ‑ testSourceMustNotBeNull
com.google.firebase.firestore.BlobTest ‑ testComparison
com.google.firebase.firestore.BlobTest ‑ testEquals
com.google.firebase.firestore.BlobTest ‑ testMutableBytes
com.google.firebase.firestore.CollectionReferenceTest ‑ testEquals
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Oct 23, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Oct 23, 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
    Percentile4998f4f0ffee90DiffSignificant (?)
    p10496 ±50 μs465 ±32 μs-31.2 μs (-6.3%)NO
    p25520 ±57 μs486 ±38 μs-33.5 μs (-6.4%)NO
    p50563 ±78 μs515 ±50 μs-47.1 μs (-8.4%)NO
    p75651 ±130 μs593 ±128 μs-57.5 μs (-8.8%)NO
    p90782 ±211 μs711 ±270 μs-71.3 μs (-9.1%)NO

    20 test runs in comparison
    CommitTest Runs
    4998f4f
    • 2023-10-24_14:39:25.499633_kuQx
    • 2023-10-24_14:39:25.505703_BSgY
    • 2023-10-24_14:39:25.505714_ysOM
    • 2023-10-24_14:39:25.505721_dLRy
    • 2023-10-24_14:39:25.505727_qMnW
    • 2023-10-24_14:39:25.505733_PYpz
    • 2023-10-24_14:39:25.505740_OozP
    • 2023-10-24_14:39:25.505746_ENJX
    • 2023-10-24_14:39:25.505751_KbsE
    • 2023-10-24_14:39:25.505759_YPEu
    0ffee90
    • 2023-10-25_14:55:15.479603_wezg
    • 2023-10-25_14:55:15.489228_gOGG
    • 2023-10-25_14:55:15.489249_LakU
    • 2023-10-25_14:55:15.489494_WGqB
    • 2023-10-25_14:55:15.489506_NwvW
    • 2023-10-25_14:55:15.489513_ETRw
    • 2023-10-25_14:55:15.489519_apUG
    • 2023-10-25_14:55:15.489525_sQhV
    • 2023-10-25_14:55:15.489801_Qdgx
    • 2023-10-25_14:55:15.489830_eUbO
    redfin-30
    Percentile4998f4f0ffee90DiffSignificant (?)
    p10603 ±38 μs610 ±27 μs+7.62 μs (+1.3%)NO
    p25616 ±40 μs629 ±31 μs+13.5 μs (+2.2%)NO
    p50639 ±40 μs658 ±36 μs+19.6 μs (+3.1%)NO
    p75675 ±41 μs695 ±45 μs+19.6 μs (+2.9%)NO
    p90717 ±45 μs745 ±60 μs+27.7 μs (+3.9%)NO

    20 test runs in comparison
    CommitTest Runs
    4998f4f
    • 2023-10-24_14:39:25.499633_kuQx
    • 2023-10-24_14:39:25.505703_BSgY
    • 2023-10-24_14:39:25.505714_ysOM
    • 2023-10-24_14:39:25.505721_dLRy
    • 2023-10-24_14:39:25.505727_qMnW
    • 2023-10-24_14:39:25.505733_PYpz
    • 2023-10-24_14:39:25.505740_OozP
    • 2023-10-24_14:39:25.505746_ENJX
    • 2023-10-24_14:39:25.505751_KbsE
    • 2023-10-24_14:39:25.505759_YPEu
    0ffee90
    • 2023-10-25_14:55:15.479603_wezg
    • 2023-10-25_14:55:15.489228_gOGG
    • 2023-10-25_14:55:15.489249_LakU
    • 2023-10-25_14:55:15.489494_WGqB
    • 2023-10-25_14:55:15.489506_NwvW
    • 2023-10-25_14:55:15.489513_ETRw
    • 2023-10-25_14:55:15.489519_apUG
    • 2023-10-25_14:55:15.489525_sQhV
    • 2023-10-25_14:55:15.489801_Qdgx
    • 2023-10-25_14:55:15.489830_eUbO
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile4998f4f0ffee90DiffSignificant (?)
    p10201 ±3 ms205 ±3 ms+4.15 ms (+2.1%)NO
    p25207 ±4 ms211 ±3 ms+4.20 ms (+2.0%)NO
    p50215 ±5 ms219 ±3 ms+4.64 ms (+2.2%)NO
    p75222 ±5 ms229 ±3 ms+6.78 ms (+3.1%)NO
    p90230 ±6 ms242 ±7 ms+12.4 ms (+5.4%)NO

    20 test runs in comparison
    CommitTest Runs
    4998f4f
    • 2023-10-24_14:39:25.499633_kuQx
    • 2023-10-24_14:39:25.505703_BSgY
    • 2023-10-24_14:39:25.505714_ysOM
    • 2023-10-24_14:39:25.505721_dLRy
    • 2023-10-24_14:39:25.505727_qMnW
    • 2023-10-24_14:39:25.505733_PYpz
    • 2023-10-24_14:39:25.505740_OozP
    • 2023-10-24_14:39:25.505746_ENJX
    • 2023-10-24_14:39:25.505751_KbsE
    • 2023-10-24_14:39:25.505759_YPEu
    0ffee90
    • 2023-10-25_14:55:15.479603_wezg
    • 2023-10-25_14:55:15.489228_gOGG
    • 2023-10-25_14:55:15.489249_LakU
    • 2023-10-25_14:55:15.489494_WGqB
    • 2023-10-25_14:55:15.489506_NwvW
    • 2023-10-25_14:55:15.489513_ETRw
    • 2023-10-25_14:55:15.489519_apUG
    • 2023-10-25_14:55:15.489525_sQhV
    • 2023-10-25_14:55:15.489801_Qdgx
    • 2023-10-25_14:55:15.489830_eUbO
    redfin-30
    Percentile4998f4f0ffee90DiffSignificant (?)
    p10247 ±7 ms269 ±5 ms+22.3 ms (+9.1%)MAYBE
    p25253 ±7 ms275 ±5 ms+22.2 ms (+8.8%)MAYBE
    p50260 ±8 ms283 ±5 ms+22.7 ms (+8.7%)NO
    p75269 ±8 ms295 ±9 ms+25.5 ms (+9.5%)MAYBE
    p90280 ±8 ms316 ±16 ms+36.4 ms (+13.0%)NO

    20 test runs in comparison
    CommitTest Runs
    4998f4f
    • 2023-10-24_14:39:25.499633_kuQx
    • 2023-10-24_14:39:25.505703_BSgY
    • 2023-10-24_14:39:25.505714_ysOM
    • 2023-10-24_14:39:25.505721_dLRy
    • 2023-10-24_14:39:25.505727_qMnW
    • 2023-10-24_14:39:25.505733_PYpz
    • 2023-10-24_14:39:25.505740_OozP
    • 2023-10-24_14:39:25.505746_ENJX
    • 2023-10-24_14:39:25.505751_KbsE
    • 2023-10-24_14:39:25.505759_YPEu
    0ffee90
    • 2023-10-25_14:55:15.479603_wezg
    • 2023-10-25_14:55:15.489228_gOGG
    • 2023-10-25_14:55:15.489249_LakU
    • 2023-10-25_14:55:15.489494_WGqB
    • 2023-10-25_14:55:15.489506_NwvW
    • 2023-10-25_14:55:15.489513_ETRw
    • 2023-10-25_14:55:15.489519_apUG
    • 2023-10-25_14:55:15.489525_sQhV
    • 2023-10-25_14:55:15.489801_Qdgx
    • 2023-10-25_14:55:15.489830_eUbO

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

Copy link
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

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

Same questions as web and iOS about batch writes and re-using existing field names. Otherwise, things look good.

@milaGGL milaGGL merged commit f6b5ecb into master Oct 25, 2023
@milaGGL milaGGL deleted the mila/move-some-sum&avg-tests-to-composite-index-testing branch October 25, 2023 19:26
@firebase firebase locked and limited conversation to collaborators Nov 25, 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.

4 participants