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

Unified emulator settings for Firestore #1690

Merged
merged 8 commits into from
Jun 24, 2020

Conversation

samtstern
Copy link
Contributor

Follow up to #1672 but for FirebaseFirestore

Note:

  • This now throws an IlegalStateException if the developer tries to set the host through the EmulatedServiceSettings as well as FirebaseFirestoreSettings. The settings method already throws unchecked exceptions so I thought this was the correct behavior, but I could convert it to a warning.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-firestore:
error: Added field com.google.firebase.firestore.FirebaseFirestore.EMULATOR [AddedField]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 19, 2020

Binary Size Report

Affected SDKs

  • firebase-common

    Type Base (59db590) Head (0598f8a1) Diff
    aar ? 38.1 kB ? (?)
    apk (aggressive) ? 82.7 kB ? (?)
    apk (debug) ? 772 kB ? (?)
    apk (release) ? 637 kB ? (?)
  • firebase-components

    Type Base (59db590) Head (0598f8a1) Diff
    aar ? 34.5 kB ? (?)
    apk (aggressive) ? 11.0 kB ? (?)
    apk (debug) ? 35.9 kB ? (?)
    apk (release) ? 25.4 kB ? (?)
  • firebase-database-collection

    Type Base (59db590) Head (0598f8a1) Diff
    aar ? 34.2 kB ? (?)
    apk (aggressive) ? 314 kB ? (?)
    apk (debug) ? 1.07 MB ? (?)
    apk (release) ? 913 kB ? (?)
  • firebase-firestore

    Type Base (59db590) Head (0598f8a1) Diff
    aar ? 996 kB ? (?)
    apk (aggressive) ? 461 kB ? (?)
    apk (debug) ? 3.79 MB ? (?)
    apk (release) ? 3.16 MB ? (?)
  • protolite-well-known-types

    Type Base (59db590) Head (0598f8a1) Diff
    aar ? 998 kB ? (?)
    apk (aggressive) ? 140 kB ? (?)
    apk (debug) ? 768 kB ? (?)
    apk (release) ? 657 kB ? (?)

Test Logs

Notes

Head commit (0598f8a1) is created by Prow via merging commits: 59db590 d90d91f.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 19, 2020

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 45.76% (59db590) to 46.71% (0598f8a1) by +0.95%.

    Click to show coverage changes in 13 files.
    Filename Base (59db590) Head (0598f8a1) Diff
    AbstractStream.java 34.52% 36.90% +2.38%
    AsyncQueue.java 69.85% 76.88% +7.04%
    ComponentProvider.java 97.14% 100.00% +2.86%
    Datastore.java 31.08% 33.78% +2.70%
    DocumentReference.java 11.68% 13.14% +1.46%
    EmptyCredentialsProvider.java 12.50% 37.50% +25.00%
    FirebaseClientGrpcMetadataProvider.java 0.00% 52.94% +52.94%
    FirebaseFirestore.java 0.00% 43.38% +43.38%
    FirebaseFirestoreSettings.java 31.03% 67.24% +36.21%
    FirestoreClient.java 0.00% 33.67% +33.67%
    FirestoreMultiDbComponent.java 0.00% 66.67% +66.67%
    FirestoreRegistrar.java 0.00% 100.00% +100.00%
    MemoryComponentProvider.java 96.55% 100.00% +3.45%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (0598f8a1) is created by Prow via merging commits: 59db590 d90d91f.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-firestore:
error: Added field com.google.firebase.firestore.FirebaseFirestore.EMULATOR [AddedField]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@samtstern
Copy link
Contributor Author

Note: the failure in the api file comes from messaging:

> Task :firebase-inappmessaging:apiInformation FAILED
Aborting: Your changes have resulted in differences in the signature file
for the public API.
The changes may be compatible, but the signature file needs to be updated.
Diffs:
--- /home/prow/go/src/github.com/firebase/firebase-android-sdk/firebase-inappmessaging/api.txt	2020-06-22 16:47:15.984360721 +0000
+++ /home/prow/go/src/github.com/firebase/firebase-android-sdk/build/apiinfo/firebase-inappmessaging_api.txt	2020-06-22 16:52:35.872100325 +0000
@@ -18,7 +18,7 @@
     method public void setAutomaticDataCollectionEnabled(boolean);
     method public void setMessageDisplayComponent(@NonNull com.google.firebase.inappmessaging.FirebaseInAppMessagingDisplay);
     method public void setMessagesSuppressed(@NonNull Boolean);
-    method public void triggerEvent(String);
+    method public void triggerEvent(@NonNull String);
   }

This could be because the api check job was silently failing sometimes before the latest change by @rosariopfernandes

@thatfiredev
Copy link
Member

@samtstern the same error occurred on #1693 . Should be fixed by #1699

@samtstern
Copy link
Contributor Author

@schmidt-sebastian all review comments address, thank you!

@samtstern
Copy link
Contributor Author

Not sure what this is about:

* What went wrong:
Execution failed for task ':checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
  Duplicate class com.google.protobuf.AbstractMessageLite$Builder found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
  Duplicate class com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)
  Duplicate class com.google.protobuf.AbstractParser found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)

@schmidt-sebastian schmidt-sebastian removed their assignment Jun 23, 2020
@google-oss-bot
Copy link
Contributor

@samtstern: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
smoke-tests d90d91f link /test smoke-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@samtstern
Copy link
Contributor Author

@rlazo says we can merge this anyway, so merging.

@samtstern samtstern merged commit 0eaca5e into master Jun 24, 2020
@samtstern samtstern mentioned this pull request Jun 24, 2020
2 tasks
@firebase firebase locked and limited conversation to collaborators Jul 25, 2020
@kaibolay kaibolay deleted the ss-firestore-emulator-settings branch September 14, 2022 17:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants