Skip to content

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Jun 18, 2025

Tests will use the Config.OLDEST_SDK instead of a hardcoded SDK if the corresponding hardcoded SDK would be below our intended minSdk.

I'll also need to re-evaluate whether these tests are necessary to keep around, or if they are irrelevant when bumping the minSdk.

Related to cl/769913180

…e corresponding hardcoded SDK would be below our intended minSdk.

I'll also need to re-evaluate whether these tests are necessary to keep around, or if they are irrelevant when bumping the minSdk.

Related to cl/769913180
Copy link
Contributor

@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 refactors a test configuration to replace a hardcoded Android SDK version with a configurable constant. The change aims to improve the maintainability and robustness of the test suite by ensuring tests are always run against the project's defined minimum SDK, thereby reducing the need for manual updates when the minSdk is incremented.

Highlights

  • Test Configuration Update: Updated the @Config annotation in DataCollectionPreNDefaultDisabledTest.java to use Config.OLDEST_SDK instead of a hardcoded SDK version (21). This ensures the test automatically adapts to changes in the project's minimum supported SDK.
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
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
Contributor

github-actions bot commented Jun 18, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

Copy link
Contributor

@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 replaces a hardcoded SDK version with Config.OLDEST_SDK in a test configuration. The main concern is to ensure that the change in the test's target SDK aligns with the original intent and doesn't negatively impact coverage.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 18, 2025

Copy link
Contributor

github-actions bot commented Jun 18, 2025

Test Results

 4 files   -  1 054   4 suites   - 1 054   10s ⏱️ - 35m 42s
12 tests  -  5 973  12 ✅  -  5 951  0 💤  - 22  0 ❌ ±0 
24 runs   - 12 009  24 ✅  - 11 965  0 💤  - 44  0 ❌ ±0 

Results for commit b4b688b. ± Comparison against base commit f08e0c7.

This pull request removes 5973 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest ‑ create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 18, 2025

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 18, 2025

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • ComponentDiscovery

    DeviceStatisticsDistributions
    oriole-32
    Percentilef08e0c78773c87DiffSignificant (?)
    p10969 ±28 μs955 ±42 μs-14.4 μs (-1.5%)NO
    p251.07 ±0.05 ms1.04 ±0.03 ms-24.0 μs (-2.2%)NO
    p501.19 ±0.06 ms1.17 ±0.03 ms-18.2 μs (-1.5%)NO
    p751.43 ±0.08 ms1.39 ±0.04 ms-37.5 μs (-2.6%)NO
    p901.71 ±0.1 ms1.73 ±0.1 ms+27.9 μs (+1.6%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
    redfin-30
    Percentilef08e0c78773c87DiffSignificant (?)
    p10828 ±47 μs830 ±47 μs+2.48 μs (+0.3%)NO
    p25867 ±51 μs869 ±48 μs+1.24 μs (+0.1%)NO
    p50943 ±59 μs939 ±46 μs-4.77 μs (-0.5%)NO
    p751.12 ±0.06 ms1.14 ±0.09 ms+20.6 μs (+1.8%)NO
    p901.49 ±0.1 ms1.63 ±0.2 ms+140 μs (+9.4%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
  • Firebase

    DeviceStatisticsDistributions
    oriole-32
    Percentilef08e0c78773c87DiffSignificant (?)
    p105.44 ±0.1 ms5.39 ±0.08 ms-50.4 μs (-0.9%)NO
    p255.71 ±0.2 ms5.63 ±0.07 ms-77.3 μs (-1.4%)NO
    p506.09 ±0.2 ms5.99 ±0.1 ms-94.9 μs (-1.6%)NO
    p756.66 ±0.2 ms6.56 ±0.2 ms-104 μs (-1.6%)NO
    p907.39 ±0.3 ms7.20 ±0.2 ms-189 μs (-2.6%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
    redfin-30
    Percentilef08e0c78773c87DiffSignificant (?)
    p108.72 ±0.7 ms8.63 ±0.5 ms-95.0 μs (-1.1%)NO
    p258.99 ±0.7 ms8.92 ±0.6 ms-68.8 μs (-0.8%)NO
    p509.46 ±0.7 ms9.34 ±0.6 ms-126 μs (-1.3%)NO
    p7510.3 ±0.7 ms10.2 ±0.6 ms-85.0 μs (-0.8%)NO
    p9011.7 ±1 ms11.5 ±0.7 ms-208 μs (-1.8%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
  • Runtime

    DeviceStatisticsDistributions
    oriole-32
    Percentilef08e0c78773c87DiffSignificant (?)
    p104.34 ±0.1 ms4.32 ±0.06 ms-17.2 μs (-0.4%)NO
    p254.52 ±0.2 ms4.46 ±0.05 ms-57.6 μs (-1.3%)NO
    p504.79 ±0.2 ms4.70 ±0.06 ms-85.1 μs (-1.8%)NO
    p755.22 ±0.2 ms5.13 ±0.07 ms-97.5 μs (-1.9%)NO
    p905.81 ±0.3 ms5.65 ±0.2 ms-161 μs (-2.8%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
    redfin-30
    Percentilef08e0c78773c87DiffSignificant (?)
    p107.74 ±0.6 ms7.63 ±0.5 ms-112 μs (-1.5%)NO
    p257.99 ±0.7 ms7.91 ±0.5 ms-80.2 μs (-1.0%)NO
    p508.35 ±0.7 ms8.25 ±0.5 ms-103 μs (-1.2%)NO
    p758.99 ±0.7 ms8.83 ±0.5 ms-155 μs (-1.7%)NO
    p909.95 ±0.9 ms9.80 ±0.6 ms-150 μs (-1.5%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentilef08e0c78773c87DiffSignificant (?)
    p10199 ±4 ms201 ±2 ms+1.90 ms (+1.0%)NO
    p25204 ±4 ms206 ±2 ms+2.07 ms (+1.0%)NO
    p50211 ±4 ms213 ±1 ms+2.60 ms (+1.2%)NO
    p75218 ±4 ms222 ±2 ms+4.12 ms (+1.9%)NO
    p90226 ±4 ms231 ±3 ms+4.78 ms (+2.1%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL
    redfin-30
    Percentilef08e0c78773c87DiffSignificant (?)
    p10227 ±7 ms248 ±12 ms+21.6 ms (+9.5%)NO
    p25234 ±8 ms255 ±13 ms+21.6 ms (+9.2%)NO
    p50243 ±11 ms263 ±14 ms+20.0 ms (+8.2%)NO
    p75253 ±14 ms272 ±14 ms+19.6 ms (+7.8%)NO
    p90264 ±19 ms283 ±14 ms+18.7 ms (+7.1%)NO

    20 test runs in comparison
    CommitTest Runs
    f08e0c7
    • 2025-06-17_14:04:00.219665_jVxl
    • 2025-06-17_14:04:00.219701_GrrJ
    • 2025-06-17_14:04:00.219713_tzRQ
    • 2025-06-17_14:04:00.219721_BWWY
    • 2025-06-17_14:04:00.219729_UsGW
    • 2025-06-17_14:04:00.219737_ejuQ
    • 2025-06-17_14:04:00.219743_LPho
    • 2025-06-17_14:04:00.219751_iHPe
    • 2025-06-17_14:04:00.219758_Mzxq
    • 2025-06-17_14:04:00.219765_dSnp
    8773c87
    • 2025-06-18_16:34:02.315244_NvBD
    • 2025-06-18_16:34:02.315286_RsPi
    • 2025-06-18_16:34:02.315297_RDTU
    • 2025-06-18_16:34:02.315306_tZiI
    • 2025-06-18_16:34:02.315314_hrvx
    • 2025-06-18_16:34:02.315322_kiHB
    • 2025-06-18_16:34:02.315329_eNfF
    • 2025-06-18_16:34:02.315336_SUKF
    • 2025-06-18_16:34:02.315343_JJZi
    • 2025-06-18_16:34:02.315350_cOOL

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

@rlazo rlazo assigned rlazo and unassigned rlazo Jun 18, 2025
@rlazo rlazo merged commit 3b7bfef into main Jun 18, 2025
30 of 32 checks passed
@rlazo rlazo deleted the update-sdk-config branch June 18, 2025 18:31
@firebase firebase locked and limited conversation to collaborators Jul 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants