Skip to content

Automate updating plugin versions#2242

Merged
stefanvanburen merged 1 commit intomainfrom
svanburen/auto-bump-latest-plugin-versions
Feb 6, 2026
Merged

Automate updating plugin versions#2242
stefanvanburen merged 1 commit intomainfrom
svanburen/auto-bump-latest-plugin-versions

Conversation

@stefanvanburen
Copy link
Member

First step towards removing some of the work we do when updating plugin versions. This simply looks for the latest plugin version that already exists in the plugins directory, and bumps the deps: key to the latest version for plugins.

I don't think this handles the case where the update to a dep is in the same PR as the update to the consuming plugin (I think the syncer can handle that case?), so we could maybe extend this further to detect that situation.

I think we can also go further and start to look for updates to certain deps (e.g., a gRPC runtime package) on registries.

First step towards removing some of the work we do when updating plugin
versions. This simply looks for the latest plugin version that already
exists in the plugins directory, and bumps the `deps:` key to the latest
version for plugins.

I _don't_ think this handles the case where the update to a dep is in
the same PR as the update to the consuming plugin (I think the syncer
can handle that case?), so we could maybe extend this further to detect
that situation.

I think we can also go further and start to look for updates to certain
deps (e.g., a gRPC runtime package) on registries.
@stefanvanburen
Copy link
Member Author

This is specifically targeting this sort of update: #2241 (comment)

Copy link
Member

@pkwarren pkwarren left a comment

Choose a reason for hiding this comment

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

Nice!

@stefanvanburen stefanvanburen merged commit be39419 into main Feb 6, 2026
4 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/auto-bump-latest-plugin-versions branch February 6, 2026 16:18
stefanvanburen added a commit that referenced this pull request Feb 6, 2026
In #2242, I mentioned:

> I don't think this handles the case where the update to a dep is in
the same PR as the update to the consuming plugin (I think the syncer
can handle that case?), so we could maybe extend this further to detect
that situation.

This attempts to handle that situation, by refactoring the fetcher a
little bit: we first take a pass to grab all the pending updates, and
then subsequently run the updates (in dependency order), updating the
`latestPluginVersions` as we go so that consumers can be updated with
the latest dependency.

This just needed a tiny bit of tweaking to have an "integration" test
over `run` (making the fetcher an interface), so added that as well.
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