Skip to content

chore(Renovate): Update Renovate config names#15662

Merged
efevans merged 1 commit into
googleapis:mainfrom
efevans:renovate/config-migration
Jun 11, 2026
Merged

chore(Renovate): Update Renovate config names#15662
efevans merged 1 commit into
googleapis:mainfrom
efevans:renovate/config-migration

Conversation

@efevans

@efevans efevans commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

b/521971428

This config change will have Renovate create PRs with up-to-date option names. We regenerate the renovate config ReleaseManager, using the template so once "the most up-to-date" option names change again, renovate will update it's own configs at /.github/renovate.json, which will be overwritten by ReleaseManager and likely continue in a cycle. Need to think what to do here, we could commit these changes and let them run as a one-time change, and mirror those changes over to the template. Or we could figure how to remove renovate regeneration in ReleaseManager, if that's even possible right now.

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

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.

Code Review

This pull request attempts to enable Renovate configuration migration in both .github/renovate.json and generator-input/renovate-template.json by adding ':configMigration' to the extends array. However, configMigration is a top-level boolean configuration option rather than a preset, and adding it to extends will cause a validation error. It is recommended to define it as a top-level property 'configMigration': true instead.

Comment thread .github/renovate.json Outdated
Comment thread generator-input/renovate-template.json Outdated
@amanda-tarafa

amanda-tarafa commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Or we could figure how to remove renovate regeneration in ReleaseManager, if that's even possible right now.

This is not possible. But, can you check if renovate.json can be split in two files? For instance we could have renovate.json with just the fixed configuration an a sort of include: renovate-apis.json and we only generate the renovate-apis.json.

@efevans efevans force-pushed the renovate/config-migration branch 3 times, most recently from 30b4bbc to de7a746 Compare June 11, 2026 18:05
@efevans efevans marked this pull request as ready for review June 11, 2026 18:07
@efevans efevans requested a review from a team as a code owner June 11, 2026 18:07
Comment thread generator-input/renovate-template.json Outdated
{
"extends": [
"config:base",
"config:recommended",

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.

But this template won't be automatically updated, correct? Any time we see a PR coming in for renovate.json with a changed field name we'd need to push a similar PR for the template? We can live with that I think, I want to understand it though.

Did you look into having two files one including the other?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct it won't be updated. I made a change in commits and overall suggestion to do a one-time update based on a local dry run with. Specifically I ran with :configMigration and then took the changes and applied them manually. See my comment below, but the short is that we'd need a separate repo to host a second config and extend from it to use two files, per the Renovate docs.

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.

I think it can be in our own repo, we just have to add the fully qualified name of the repo before the file name. That's fine though and I don't think this will happen so often that we have to make many changes, and we shouldn't invest much in having the perfect renovate config. Let's just change the ones that we know of now as you are doing and call it day.

Comment thread .github/renovate.json Outdated
{
"extends": [
"config:base",
"config:recommended",

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.

What else changes from base to recommended?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

base is deprecated and their docs maintain any references to it. From what I can tell from looking around and asking Gemini, the they are similar and you can see what recommended does here. recommended will also be supported so it's presets may change in the future as the Renovate team updates their idea of best practices.

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.

Let's not make this change then until we know we have time to test it.

@efevans

efevans commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@amanda-tarafa Looks like you can use a file as a preset but that requires hosting this preset in a separate git repo. I'd suggest we do a one-time update of configs and leave this as done for the purposes of the Fixit. The current changes are taking a local dry run and applying its suggested config.

One thing to notice is the the original comment here is not an updated config name. These do separate but similar things, with the depName intending to be a user-friendly name and packageName being a more full package name. For .NET purposes matchPackageNames and matchDepNames always seem to be the same thing.

@efevans efevans changed the title chore(Renovate): Have Renovate update its own config option names chore(Renovate): Update Renovate config names Jun 11, 2026
Comment thread .github/renovate.json Outdated
{
"extends": [
"config:base",
"config:recommended",

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.

Let's not make this change then until we know we have time to test it.

Comment thread generator-input/renovate-template.json Outdated
{
"extends": [
"config:base",
"config:recommended",

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.

I think it can be in our own repo, we just have to add the fully qualified name of the repo before the file name. That's fine though and I don't think this will happen so often that we have to make many changes, and we shouldn't invest much in having the perfect renovate config. Let's just change the ones that we know of now as you are doing and call it day.

@efevans efevans force-pushed the renovate/config-migration branch from de7a746 to 4bc38c7 Compare June 11, 2026 19:53
@efevans

efevans commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@amanda-tarafa Reverted to base

@amanda-tarafa amanda-tarafa left a comment

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.

And also see if these need to be done in the other repos.

@efevans efevans merged commit df53254 into googleapis:main Jun 11, 2026
16 checks passed
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