Skip to content

ci: Simply renovate bot config to only propose google sdk, testing, and ci dep updates#4155

Draft
lqiu96 wants to merge 2 commits intomainfrom
renovate-config
Draft

ci: Simply renovate bot config to only propose google sdk, testing, and ci dep updates#4155
lqiu96 wants to merge 2 commits intomainfrom
renovate-config

Conversation

@lqiu96
Copy link
Member

@lqiu96 lqiu96 commented Mar 18, 2026

Renovate bot is hitting quota issues and the dependency dashboard does not work. Configure renovate bot to only propose a subset of dependencies (we already ignore dep upgrade PRs and manually create them ad-hoc when needed).

This config can be updated as we discover more deps to upgrade.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Mar 18, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 streamlines the Renovate bot's operation by narrowing its scope of dependency monitoring. The changes aim to alleviate quota issues and improve the dependency dashboard's functionality by focusing automated updates solely on critical areas such as testing, CI/CD, and core Google SDK components. This shift supports a more controlled, ad-hoc approach for other dependency upgrades.

Highlights

  • Renovate Bot Configuration Simplified: The Renovate bot configuration has been significantly streamlined by reducing the number of active 'packageRules' to focus on essential dependency types.
  • Focused Dependency Updates: Automated dependency updates are now concentrated on specific categories: testing libraries, Maven plugins, CI/CD configurations, Google Auth/HTTP Client libraries, Java SDK shared configuration, and the upper bound dependencies file.
  • Disabled Broad Dependency Upgrades: All other dependency updates are now disabled by default, shifting towards a strategy of manual, ad-hoc upgrades for less critical components.
  • Vulnerability Alerts Enabled: The configuration now explicitly enables vulnerability alerts for both general and OSV (Open Source Vulnerability) sources to enhance security monitoring.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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 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.

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

@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

This pull request simplifies the Renovate bot configuration to reduce the number of proposed dependency updates, addressing quota issues. The approach of disabling all updates by default and then selectively enabling specific groups of dependencies (like testing libraries, Google SDKs, and CI/CD tools) is a good simplification. The change also enables vulnerability alerts, which is a great security improvement. I've left one comment regarding the potential loss of specific semanticCommitType configurations for some dependency groups, which might affect commit message consistency.

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@lqiu96
Copy link
Member Author

lqiu96 commented Mar 18, 2026

/gemini review

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

This pull request simplifies the Renovate bot configuration to reduce the number of proposed dependency updates. The approach of disabling all updates by default and then selectively enabling specific categories is a good simplification. My review focuses on ensuring the new configuration aligns with the stated goal of updating only Google SDK, testing, and CI dependencies.

I've identified two potential issues:

  1. The regex for dependencies.txt is very broad and will enable updates for all dependencies in that file, including many third-party libraries, which seems to contradict the PR's goal.
  2. Some Google SDK-related dependencies for the GAPIC generator appear to be unintentionally disabled by the new configuration.

Please see my detailed comments in the code.

"dependencies.txt"
],
"matchStrings": [
"(?<depName>.*),(.*)=(?<currentValue>.*)"
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The regex (?<depName>.*) is very broad and will match all dependencies in dependencies.txt, including many third-party libraries (e.g., slf4j, jackson, httpcomponents).

Given the PR's goal is to "only propose google sdk, testing, and ci dep updates", this might generate more update PRs than intended. Previously, other rules might have disabled some of these, but with the new "disable all, then enable specific" structure, this rule for dependencies.txt will enable updates for everything in that file.

If the intention is to limit updates to Google-related dependencies from this file, consider making the regex more specific. For example, the suggestion below would limit matches to dependencies from com.google.*, io.grpc.*, and dev.cel.* group IDs. Please adjust the regex to match the intended scope.

Suggested change
"(?<depName>.*),(.*)=(?<currentValue>.*)"
"(?<depName>(?:com\\.google|io\\.grpc|dev\\.cel).*),.*=(?<currentValue>.*)"

}
]
}
],
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The new configuration disables updates for all packages by default, and then selectively re-enables them. It seems that updates for com.google.cloud:gapic-generator-java-transport and com.google.cloud:gapic-generator-java-rest-numeric-enums, which are tracked via a regex manager on rules_java_gapic/java_gapic.bzl, are now disabled as they are not re-enabled by any rule.

Given that the PR intends to keep "google sdk" updates, was this intentional? If not, you might want to add a new package rule to re-enable them, for example:

    {
      "matchPackageNames": [
        "com.google.cloud:gapic-generator-java-transport",
        "com.google.cloud:gapic-generator-java-rest-numeric-enums"
      ],
      "groupName": "GAPIC Generator Dependencies",
      "enabled": true,
      "semanticCommitType": "chore",
      "semanticCommitScope": "deps"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant