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

Refactor transaction #6188

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

tom-andersen
Copy link
Contributor

@tom-andersen tom-andersen commented Aug 16, 2024

Moves logic out of SyncEngine.

  • Transactions run independently of SyncEngine.
  • runAggregateQuery can be run directly on RemoteStore.

Copy link
Contributor

github-actions bot commented Aug 16, 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

google-oss-bot commented Aug 16, 2024

Coverage Report 1

Affected Products

  • firebase-firestore

    Overall coverage changed from 46.05% (8ad9ef5) to 46.05% (f8d6e1f) by +0.00%.

    FilenameBase (8ad9ef5)Merge (f8d6e1f)Diff
    SyncEngine.java89.22%89.76%+0.54%

Test Logs

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

Copy link
Contributor

github-actions bot commented Aug 16, 2024

Unit Test Results

   186 files  +   122     186 suites  +122   4m 43s ⏱️ - 1m 32s
1 234 tests +   747  1 218 ✔️ +   731  16 💤 +16  0 ±0 
2 492 runs  +1 512  2 460 ✔️ +1 480  32 💤 +32  0 ±0 

Results for commit 5f0586c. ± Comparison against base commit 8ad9ef5.

This pull request removes 487 and adds 1234 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.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
com.google.firebase.firestore.DocumentChangeTest ‑ randomTests
com.google.firebase.firestore.DocumentChangeTest ‑ testAdditions
com.google.firebase.firestore.DocumentChangeTest ‑ testChangesWithSortOrderChange
com.google.firebase.firestore.DocumentChangeTest ‑ testDeletions
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 16, 2024

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (8ad9ef5)Merge (f8d6e1f)Diff
    aar1.44 MB1.44 MB-335 B (-0.0%)
    apk (release)11.3 MB11.3 MB-200 B (-0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 16, 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-fst

    DeviceStatisticsDistributions
    oriole-32
    Percentile8ad9ef5f8d6e1fDiffSignificant (?)
    p10311 ±21 μs320 ±20 μs+9.71 μs (+3.1%)NO
    p25325 ±29 μs336 ±24 μs+11.0 μs (+3.4%)NO
    p50344 ±43 μs370 ±45 μs+25.2 μs (+7.3%)NO
    p75386 ±78 μs443 ±97 μs+57.2 μs (+14.8%)NO
    p90423 ±99 μs534 ±104 μs+110 μs (+26.1%)NO

    20 test runs in comparison
    CommitTest Runs
    8ad9ef5
    • 2024-09-10_15:09:27.596572_gpCE
    • 2024-09-10_15:09:27.596619_groB
    • 2024-09-10_15:09:27.596631_LbcP
    • 2024-09-10_15:09:27.596639_DqSu
    • 2024-09-10_15:09:27.596648_WMah
    • 2024-09-10_15:09:27.596655_BWNh
    • 2024-09-10_15:09:27.596662_Xrrn
    • 2024-09-10_15:09:27.596675_FDOr
    • 2024-09-10_15:09:27.596683_uRaD
    • 2024-09-10_15:09:27.596690_uLcB
    f8d6e1f
    • 2024-09-11_15:06:23.985859_suVl
    • 2024-09-11_15:06:23.985907_CrQo
    • 2024-09-11_15:06:23.985917_KEdZ
    • 2024-09-11_15:06:23.985926_akNN
    • 2024-09-11_15:06:23.985935_ebwc
    • 2024-09-11_15:06:23.985943_FoZs
    • 2024-09-11_15:06:23.985950_aBHR
    • 2024-09-11_15:06:23.985957_AeJm
    • 2024-09-11_15:06:23.985965_ieoz
    • 2024-09-11_15:06:23.985981_LSfJ
    redfin-30
    Percentile8ad9ef5f8d6e1fDiffSignificant (?)
    p10618 ±35 μs661 ±172 μs+43.2 μs (+7.0%)NO
    p25640 ±44 μs678 ±178 μs+37.8 μs (+5.9%)NO
    p50674 ±54 μs707 ±181 μs+32.5 μs (+4.8%)NO
    p75719 ±64 μs747 ±193 μs+27.3 μs (+3.8%)NO
    p90869 ±234 μs801 ±206 μs-68.6 μs (-7.9%)NO

    20 test runs in comparison
    CommitTest Runs
    8ad9ef5
    • 2024-09-10_15:09:27.596572_gpCE
    • 2024-09-10_15:09:27.596619_groB
    • 2024-09-10_15:09:27.596631_LbcP
    • 2024-09-10_15:09:27.596639_DqSu
    • 2024-09-10_15:09:27.596648_WMah
    • 2024-09-10_15:09:27.596655_BWNh
    • 2024-09-10_15:09:27.596662_Xrrn
    • 2024-09-10_15:09:27.596675_FDOr
    • 2024-09-10_15:09:27.596683_uRaD
    • 2024-09-10_15:09:27.596690_uLcB
    f8d6e1f
    • 2024-09-11_15:06:23.985859_suVl
    • 2024-09-11_15:06:23.985907_CrQo
    • 2024-09-11_15:06:23.985917_KEdZ
    • 2024-09-11_15:06:23.985926_akNN
    • 2024-09-11_15:06:23.985935_ebwc
    • 2024-09-11_15:06:23.985943_FoZs
    • 2024-09-11_15:06:23.985950_aBHR
    • 2024-09-11_15:06:23.985957_AeJm
    • 2024-09-11_15:06:23.985965_ieoz
    • 2024-09-11_15:06:23.985981_LSfJ
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile8ad9ef5f8d6e1fDiffSignificant (?)
    p10202 ±4 ms205 ±4 ms+3.04 ms (+1.5%)NO
    p25208 ±5 ms211 ±4 ms+3.30 ms (+1.6%)NO
    p50216 ±5 ms219 ±4 ms+2.52 ms (+1.2%)NO
    p75224 ±5 ms229 ±5 ms+4.52 ms (+2.0%)NO
    p90231 ±6 ms242 ±10 ms+11.1 ms (+4.8%)NO

    20 test runs in comparison
    CommitTest Runs
    8ad9ef5
    • 2024-09-10_15:09:27.596572_gpCE
    • 2024-09-10_15:09:27.596619_groB
    • 2024-09-10_15:09:27.596631_LbcP
    • 2024-09-10_15:09:27.596639_DqSu
    • 2024-09-10_15:09:27.596648_WMah
    • 2024-09-10_15:09:27.596655_BWNh
    • 2024-09-10_15:09:27.596662_Xrrn
    • 2024-09-10_15:09:27.596675_FDOr
    • 2024-09-10_15:09:27.596683_uRaD
    • 2024-09-10_15:09:27.596690_uLcB
    f8d6e1f
    • 2024-09-11_15:06:23.985859_suVl
    • 2024-09-11_15:06:23.985907_CrQo
    • 2024-09-11_15:06:23.985917_KEdZ
    • 2024-09-11_15:06:23.985926_akNN
    • 2024-09-11_15:06:23.985935_ebwc
    • 2024-09-11_15:06:23.985943_FoZs
    • 2024-09-11_15:06:23.985950_aBHR
    • 2024-09-11_15:06:23.985957_AeJm
    • 2024-09-11_15:06:23.985965_ieoz
    • 2024-09-11_15:06:23.985981_LSfJ
    redfin-30
    Percentile8ad9ef5f8d6e1fDiffSignificant (?)
    p10245 ±4 ms263 ±7 ms+17.5 ms (+7.1%)NO
    p25251 ±4 ms270 ±8 ms+18.8 ms (+7.5%)NO
    p50258 ±5 ms278 ±7 ms+20.4 ms (+7.9%)MAYBE
    p75266 ±5 ms289 ±8 ms+22.8 ms (+8.6%)MAYBE
    p90277 ±8 ms306 ±9 ms+29.3 ms (+10.6%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    8ad9ef5
    • 2024-09-10_15:09:27.596572_gpCE
    • 2024-09-10_15:09:27.596619_groB
    • 2024-09-10_15:09:27.596631_LbcP
    • 2024-09-10_15:09:27.596639_DqSu
    • 2024-09-10_15:09:27.596648_WMah
    • 2024-09-10_15:09:27.596655_BWNh
    • 2024-09-10_15:09:27.596662_Xrrn
    • 2024-09-10_15:09:27.596675_FDOr
    • 2024-09-10_15:09:27.596683_uRaD
    • 2024-09-10_15:09:27.596690_uLcB
    f8d6e1f
    • 2024-09-11_15:06:23.985859_suVl
    • 2024-09-11_15:06:23.985907_CrQo
    • 2024-09-11_15:06:23.985917_KEdZ
    • 2024-09-11_15:06:23.985926_akNN
    • 2024-09-11_15:06:23.985935_ebwc
    • 2024-09-11_15:06:23.985943_FoZs
    • 2024-09-11_15:06:23.985950_aBHR
    • 2024-09-11_15:06:23.985957_AeJm
    • 2024-09-11_15:06:23.985965_ieoz
    • 2024-09-11_15:06:23.985981_LSfJ

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants