Skip to content

Background update #2254

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
Dec 21, 2020
Merged

Background update #2254

merged 6 commits into from
Dec 21, 2020

Conversation

annzimmer
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 14, 2020

Coverage Report

Affected SDKs

  • firebase-ml-modeldownloader

    SDK overall coverage changed from 88.29% (ee74cd0) to 88.57% (5555c9a5) by +0.28%.

    Filename Base (ee74cd0) Head (5555c9a5) Diff
    FirebaseModelDownloader.java 92.86% 94.29% +1.43%

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 (5555c9a5) is created by Prow via merging commits: ee74cd0 5220062.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-ml-modeldownloader:
error: Added field com.google.firebase.ml.modeldownloader.internal.ModelFileManager.CUSTOM_MODEL_ROOT_PATH [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 Dec 14, 2020

Binary Size Report

Affected SDKs

  • firebase-ml-modeldownloader

    Type Base (ee74cd0) Head (5555c9a5) Diff
    aar 36.7 kB 37.2 kB +475 B (+1.3%)
    apk (release) 704 kB 704 kB +132 B (+0.0%)

Test Logs

Notes

Head commit (5555c9a5) is created by Prow via merging commits: ee74cd0 5220062.

// check for latest model and download newest
break;
// check for latest model, wait for download if newer model exists
return getCustomModelTask(modelName, conditions);
Copy link
Member

Choose a reason for hiding this comment

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

Should localModel.getModelHash() be passed here, to avoid triggering a download if there is no newer model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, fixed.

}

// if modelHash matches current local model just return local model.
if (currentModel
Copy link
Member

Choose a reason for hiding this comment

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

Can this be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in current flow no - but in theory it's a possibility - fixed and added a few more unit tests.

…al proto. This allows for proper json to proto conversion and in local tests messages now reach the spanner queue.
@annzimmer annzimmer merged commit ec78ab8 into master Dec 21, 2020
@annzimmer annzimmer deleted the backgroundUpdate branch December 21, 2020 14:25
@firebase firebase locked and limited conversation to collaborators Jan 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants