Skip to content

Update logging flag to match recommended style and execution. #2392

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 6 commits into from
Feb 5, 2021

Conversation

annzimmer
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 1, 2021

Coverage Report

Affected SDKs

  • firebase-ml-modeldownloader

    SDK overall coverage changed from ? (29e73e5) to 84.58% (d4b0c9ce) by ?.

    Click to show coverage changes in 19 files.
    Filename Base (29e73e5) Head (d4b0c9ce) Diff
    AutoFirebaseMlLogEventEncoder.java ? 100.00% ?
    AutoValue_FirebaseMlLogEvent.java ? 57.45% ?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent.java ? 65.82% ?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent_ModelOptions.java ? 62.96% ?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent_ModelOptions_ModelInfo.java ? 64.58% ?
    AutoValue_FirebaseMlLogEvent_SystemInfo.java ? 63.38% ?
    CustomModel.java ? 73.02% ?
    CustomModelDownloadConditions.java ? 88.46% ?
    CustomModelDownloadService.java ? 83.80% ?
    DataTransportMlEventSender.java ? 100.00% ?
    DownloadType.java ? 100.00% ?
    FirebaseMlException.java ? 100.00% ?
    FirebaseMlLogEvent.java ? 97.70% ?
    FirebaseMlLogger.java ? 89.00% ?
    FirebaseModelDownloader.java ? 85.12% ?
    FirebaseModelDownloaderRegistrar.java ? 94.87% ?
    ModelFileDownloadService.java ? 90.80% ?
    ModelFileManager.java ? 81.71% ?
    SharedPreferencesUtil.java ? 99.23% ?

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 (d4b0c9ce) is created by Prow via merging commits: 29e73e5 c9b443d.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 1, 2021

Binary Size Report

Affected SDKs

  • firebase-ml-modeldownloader

    Type Base (29e73e5) Head (d4b0c9ce) Diff
    aar 87.7 kB 87.9 kB +145 B (+0.2%)

Test Logs

Notes

Head commit (d4b0c9ce) is created by Prow via merging commits: 29e73e5 c9b443d.

@annzimmer
Copy link
Contributor Author

/test smoke-tests

@annzimmer annzimmer marked this pull request as ready for review February 1, 2021 18:45
@annzimmer annzimmer requested review from rlazo and vkryachko February 1, 2021 18:45
@@ -61,7 +61,7 @@ package com.google.firebase.ml.modeldownloader {
method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.ml.modeldownloader.CustomModel> getModel(@NonNull String, @NonNull com.google.firebase.ml.modeldownloader.DownloadType, @Nullable com.google.firebase.ml.modeldownloader.CustomModelDownloadConditions);
method public long getModelDownloadId(@NonNull String);
method @NonNull public com.google.android.gms.tasks.Task<java.util.Set<com.google.firebase.ml.modeldownloader.CustomModel>> listDownloadedModels();
method public void setStatsCollectionEnabled(boolean);
method public void setDataCollectionMlDownloaderState(boolean);
Copy link
Member

Choose a reason for hiding this comment

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

I think the approved naming pattern is set${product}CollectionEnabled(Boolean)

cc @VinayGuthal to confirm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking through - your recommendation is the format used by crashlytics and performance - so updated to match.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vkryachko is right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - updated method to setModelDownloaderCollectionEnabled(Boolean) and added null edges to reset to default firebase level data collection.

@annzimmer annzimmer requested a review from VinayGuthal February 3, 2021 14:56
@annzimmer annzimmer merged commit 41aa55a into master Feb 5, 2021
@annzimmer annzimmer deleted the mlStatsLogging branch February 5, 2021 15:09
@firebase firebase locked and limited conversation to collaborators Mar 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants