Skip to content

chore: Add upper bounds dependencies file to renovate config#12562

Merged
lqiu96 merged 3 commits intomainfrom
renovate-upper-bounds
Apr 2, 2026
Merged

chore: Add upper bounds dependencies file to renovate config#12562
lqiu96 merged 3 commits intomainfrom
renovate-upper-bounds

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Apr 1, 2026

No description provided.

Copy link
Copy Markdown
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 updates the renovate.json configuration to group dependencies found in dependencies.txt. The review feedback correctly identifies that the new configuration block is misplaced within the regexManagers array instead of packageRules and lacks the required regex definitions to actually discover and parse the dependencies from the file.

@lqiu96
Copy link
Copy Markdown
Member Author

lqiu96 commented Apr 1, 2026

/gemini review

Copy link
Copy Markdown
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 updates the Renovate configuration to include a new dependency file, sdk-platform-java/dependencies.txt, and migrates managerFilePatterns to fileMatch across several custom managers. A review comment suggests refining the regex used for parsing the new dependency file to be more restrictive and robust against unintended matches.

{
"customType": "regex",
"fileMatch": ["sdk-platform-java/dependencies.txt"],
"matchStrings": ["(?<depName>.*),(.*)=(?<currentValue>.*)"],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The regular expression (?<depName>.*),(.*)=(?<currentValue>.*) is overly broad and potentially fragile. Because .* is greedy and matches almost any character, it could capture leading/trailing whitespace or match unintended lines (such as comments containing a comma and an equals sign). Using more restrictive character classes like [^,\s]+ ensures that Renovate captures only valid package names and versions, preventing lookup failures.

      "matchStrings": ["(?<depName>[^,\s]+),[^=\s]+=(?<currentValue>[^\s]+)"],

@lqiu96 lqiu96 requested a review from diegomarquezp April 1, 2026 21:58
@lqiu96 lqiu96 marked this pull request as ready for review April 1, 2026 21:59
@lqiu96 lqiu96 requested a review from a team as a code owner April 1, 2026 21:59
@lqiu96 lqiu96 merged commit 6ed37d3 into main Apr 2, 2026
108 checks passed
@lqiu96 lqiu96 deleted the renovate-upper-bounds branch April 2, 2026 02:41
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