chore: Group upper bound dependencies file deps#3941
Conversation
Summary of ChangesHello @lqiu96, 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 refines the Renovate bot's configuration to better manage and group dependencies, specifically those defined in Highlights
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. 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
|
There was a problem hiding this comment.
Code Review
The pull request modifies the renovate.json file to group dependencies from the dependencies.txt file. The changes involve updating the customManagers configuration to use fileMatch instead of managerFilePatterns and adding a new packageRule to group dependencies from the dependencies.txt file under the name "Upper Bound Dependencies File".
| { | ||
| "customType": "regex", | ||
| "managerFilePatterns": ["/^dependencies\\.txt$/"], | ||
| "fileMatch": ["dependencies.txt"], |
There was a problem hiding this comment.
The regex for managerFilePatterns is more specific and prevents unintended matches. Consider whether fileMatch is sufficient, or if the regex provides necessary precision. If fileMatch is sufficient, this change is fine, but if the regex was there for a reason, this should be reverted.
If the intention is to match the exact filename dependencies.txt, then fileMatch is appropriate and more readable.
| "matchManagers": [ | ||
| "regex" | ||
| ], | ||
| "matchFileNames": ["dependencies.txt"], | ||
| "matchDatasources": ["maven"], | ||
| "groupName": "Upper Bound Dependencies File", | ||
| "description": "Group all dependencies from the Upper Bound Dependencies File" |
There was a problem hiding this comment.
The description field should provide more context about the purpose of grouping these dependencies. Consider adding information about why these dependencies are grouped and what the implications are for dependency updates. This will help future maintainers understand the intent of this configuration.
For example: "Group all dependencies from the Upper Bound Dependencies File to manage their updates collectively and ensure compatibility."
|
|
mpeddada1
left a comment
There was a problem hiding this comment.
Thanks! I'm guessing this would allow renovate-bot to update the dependencies.txt file automatically as opposed to the manual updates we need to do during releases?
yes, exactly |
Tested in lqiu96#22 These rules need to be added to the end as renovate `packageRules` configurations are `mergeable`. This means that it scans the rules top-down and each subsequent matching rules gets its configurations overwritten. This tries to make it so that only the `dependencies.txt` are in its own file.



Tested in lqiu96#22
These rules need to be added to the end as renovate
packageRulesconfigurations aremergeable. This means that it scans the rules top-down and each subsequent matching rules gets its configurations overwritten. This tries to make it so that only thedependencies.txtare in its own file.