Skip to content

[Plugins] Fix broken bundle test #7089

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[Plugins] Fix broken bundle test #7089

wants to merge 1 commit into from

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Jun 27, 2025

The test still verifies that vertex is generated when it should be firebase-ai instead.

The test still verifies that vertex is generated when it should be
firebase-ai instead.
@rlazo rlazo requested review from VinayGuthal and davidmotson June 27, 2025 07:13
Copy link
Contributor

Firebase AI Mock Responses Check ⚠️

A newer major version of the mock responses for Firebase AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v14.1

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @rlazo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a broken test within the plugins module. The test was failing because it was asserting against an outdated dependency name (firebase-vertexai) when the correct dependency name should be firebase-ai. The changes update the test's expectations to align with the current dependency naming, ensuring the test passes as intended.

Highlights

  • Test Fix: Updated the GenerateTutorialBundleTests.kt to correctly reference the firebase-ai dependency instead of firebase-vertexai.
  • Dependency Name Update: Corrected the expected artifact ID and associated XML entity definition within the test file from firebase-vertexai to firebase-ai.
Using Gemini Code Assist

The 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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and 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 to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request fixes a broken bundle test by replacing firebase-vertexai with firebase-ai in the test configuration. The review focuses on verifying the correctness of the dependency replacement.

Comment on lines +85 to +86
<!-- Firebase AI Logic -->
<!ENTITY firebase-ai-dependency "com.google.firebase:firebase-ai:9.2.3">

Choose a reason for hiding this comment

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

high

This change replaces vertex-dependency with firebase-ai-dependency. Ensure that this is the correct entity and that firebase-ai-dependency is the intended replacement.

Suggested change
<!-- Firebase AI Logic -->
<!ENTITY firebase-ai-dependency "com.google.firebase:firebase-ai:9.2.3">
<!ENTITY firebase-ai-dependency "com.google.firebase:firebase-ai:9.2.3">

Copy link
Contributor

plugins test results

68 tests   68 ✅  1m 10s ⏱️
12 suites   0 💤
12 files     0 ❌

Results for commit 6004cab.

Copy link
Contributor

Test Results

 1 058 files  ±0   1 058 suites  ±0   35m 58s ⏱️ +17s
 5 985 tests ±0   5 962 ✅  - 1  22 💤 ±0  1 ❌ +1 
12 033 runs  ±0  11 988 ✅  - 1  44 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 6004cab. ± Comparison against base commit c12b5d1.

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

Coverage Report 1

Affected Products

  • firebase-installations

    Overall coverage changed from ? (c12b5d1) to 58.17% (6b59d95) by ?.

    23 individual files with coverage change

    FilenameBase (c12b5d1)Merge (6b59d95)Diff
    AutoValue_InstallationResponse.java?58.93%?
    AutoValue_PersistedInstallationEntry.java?56.98%?
    AutoValue_TokenResult.java?42.22%?
    AwaitListener.java?0.00%?
    Clock.java?0.00%?
    CrossProcessLock.java?51.85%?
    FirebaseInstallations.java?96.62%?
    FirebaseInstallationServiceClient.java?4.80%?
    FirebaseInstallationsException.java?78.57%?
    FirebaseInstallationsRegistrar.java?100.00%?
    GetAuthTokenListener.java?100.00%?
    GetIdListener.java?70.00%?
    IidStore.java?22.39%?
    InstallationResponse.java?100.00%?
    Installations.kt?40.00%?
    PersistedInstallation.java?97.01%?
    PersistedInstallationEntry.java?100.00%?
    RandomFidGenerator.java?20.00%?
    RequestLimiter.java?100.00%?
    StateListener.java?0.00%?
    SystemClock.java?100.00%?
    TokenResult.java?100.00%?
    Utils.java?95.00%?

  • firebase-ml-modeldownloader

    Overall coverage changed from ? (c12b5d1) to 82.11% (6b59d95) by ?.

    36 individual files with coverage change

    FilenameBase (c12b5d1)Merge (6b59d95)Diff
    AutoFirebaseMlLogEventEncoder.java?100.00%?
    AutoValue_FirebaseMlLogEvent.java?56.60%?
    AutoValue_FirebaseMlLogEvent_DeleteModelLogEvent.java?58.33%?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent.java?56.96%?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent_ModelOptions.java?60.00%?
    AutoValue_FirebaseMlLogEvent_ModelDownloadLogEvent_ModelOptions_ModelInfo.java?56.25%?
    AutoValue_FirebaseMlLogEvent_SystemInfo.java?54.93%?
    CustomModel.java?72.13%?
    CustomModelDownloadConditions.java?88.46%?
    CustomModelDownloadService.java?79.89%?
    CustomModelDownloadService_Factory.java?0.00%?
    CustomModel_Factory.java?0.00%?
    CustomModel_Factory_Impl.java?0.00%?
    DaggerModelDownloaderComponent.java?100.00%?
    DataTransportMlEventSender.java?100.00%?
    DataTransportMlEventSender_Factory.java?0.00%?
    DownloadType.java?100.00%?
    FirebaseMlException.java?100.00%?
    FirebaseMlLogEvent.java?97.92%?
    FirebaseMlLogger.java?88.89%?
    FirebaseMlLogger_Factory.java?0.00%?
    FirebaseModelDownloader.java?84.66%?
    FirebaseModelDownloaderRegistrar.java?100.00%?
    FirebaseModelDownloader_Factory.java?0.00%?
    ModelDownloader.kt?91.67%?
    ModelDownloaderComponent.java?25.00%?
    ModelDownloaderComponent_MainModule_AppPackageNameFactory.java?0.00%?
    ModelDownloaderComponent_MainModule_AppVersionCodeFactory.java?0.00%?
    ModelDownloaderComponent_MainModule_FirebaseOptionsFactory.java?0.00%?
    ModelDownloaderComponent_MainModule_PersistenceKeyFactory.java?0.00%?
    ModelFileDownloadService.java?88.46%?
    ModelFileDownloadService_Factory.java?0.00%?
    ModelFileManager.java?82.28%?
    ModelFileManager_Factory.java?0.00%?
    SharedPreferencesUtil.java?97.26%?
    SharedPreferencesUtil_Factory.java?0.00%?

  • firebase-storage

    Overall coverage changed from 84.33% (c12b5d1) to 83.96% (6b59d95) by -0.37%.

    FilenameBase (c12b5d1)Merge (6b59d95)Diff
    StorageException.java69.09%65.45%-3.64%
    StorageTask.java83.99%83.38%-0.60%
    UploadTask.java83.17%81.52%-1.65%
  • firebase-firestore

    FilenameBase (c12b5d1)Merge (6b59d95)Diff
    DeleteMutation.java90.48%95.24%+4.76%
    SetMutation.java97.22%94.44%-2.78%

Test Logs

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

@google-oss-bot
Copy link
Contributor

Startup Time Report 1

The report is too large (122,570 chars) to be displayed on GitHub. Please check this report on GCS.

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

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

Successfully merging this pull request may close these issues.

2 participants