-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[MLModelDL] Remove legacy telemetry #15680
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
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. |
|
/gemini review |
9f0d41f to
4d8be64
Compare
Generated by 🚫 Danger |
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request successfully removes the legacy telemetry and the swift-protobuf dependency, which simplifies the codebase. The changes are mostly correct, but I've found a critical issue where a completion handler is no longer called in an error path, which could leave consumers of the API waiting indefinitely. Please see the specific comment for details.
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively removes the legacy telemetry from the ML Model Downloader. The changes are clean and focused, successfully eliminating the TelemetryLogger and all related calls across ModelDownloadTask, ModelDownloader, and ModelInfoRetriever. The removal of the swift-protobuf and GoogleDataTransport dependencies from the FirebaseMLModelDownloader target is a great improvement, as it reduces complexity and the overall binary size. The code modifications are straightforward and correctly implemented. Overall, this is a solid cleanup effort.
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively removes the legacy telemetry functionality from the ML Model Downloader, successfully eliminating the swift-protobuf and GoogleDataTransport dependencies. The changes are clean and consistent across all modified files, including ModelDownloadTask.swift, ModelDownloader.swift, and ModelInfoRetriever.swift. The removal of the TelemetryLogger.swift and associated protobuf files, along with the updates to Package.swift, completes the cleanup. This is a solid improvement that simplifies the codebase and reduces its dependency footprint.
|
/gemini summarize |
Summary of ChangesThis pull request focuses on streamlining the ML Model Downloader by eradicating its outdated telemetry infrastructure. The primary goal is to reduce the project's dependency footprint and simplify the underlying code by removing unnecessary logging mechanisms and the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
|
ncooke3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 2 non-blocking comments. Also, please add changelog entry.
Co-authored-by: Nick Cooke <[email protected]>
andrewheard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good to me! 🚢
Remove unnecessary ML Model Downloader telemetry along with the expensive swift-protobuf dependency.
Fix #15649