Skip to content

chore: add Renovate auto-update for buf version#8981

Open
abigailliang-aks-sig-node wants to merge 2 commits into
mainfrom
renovate-buf-version
Open

chore: add Renovate auto-update for buf version#8981
abigailliang-aks-sig-node wants to merge 2 commits into
mainfrom
renovate-buf-version

Conversation

@abigailliang-aks-sig-node

@abigailliang-aks-sig-node abigailliang-aks-sig-node commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extract pinned buf version into aks-node-controller/.buf-version as a single source of truth
  • Update Makefile to read version from .buf-version via $(shell cat ...)
  • Add Renovate custom regex manager to track bufbuild/buf Docker image releases automatically

Test plan

  • CI passes (validates make proto-generate works with version read from .buf-version)
  • Renovate local dry-run confirms config works:
    • npx -p renovate@43 renovate --dry-run --platform=local successfully matched aks-node-controller/.buf-version and queried Docker Hub for bufbuild/buf tags
    • Key log lines:
      Matched 1 file(s) for manager regex: aks-node-controller/.buf-version
      getLabels(https://index.docker.io, bufbuild/buf, latest)
      

Extract pinned buf version into aks-node-controller/.buf-version
and add a Renovate custom regex manager to track bufbuild/buf
Docker image releases automatically.

Copilot AI 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.

Pull request overview

This PR centralizes the pinned buf CLI version for the aks-node-controller module into a dedicated .buf-version file and wires Renovate to automatically propose updates when new bufbuild/buf Docker image tags are released.

Changes:

  • Moved the pinned buf version into aks-node-controller/.buf-version as a single source of truth.
  • Updated aks-node-controller/Makefile to read BUF_VERSION from .buf-version.
  • Added a Renovate regex custom manager to track and update .buf-version from the bufbuild/buf Docker datasource.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
aks-node-controller/Makefile Reads buf version from .buf-version for the dockerized buf invocation.
aks-node-controller/.buf-version New single-source file containing the pinned buf version.
.github/renovate.json Adds a custom regex manager to update .buf-version automatically via Renovate.

# Run buf in docker, mounting the full repo into the container
# Emulate running "buf" in the current directory
BUF_VERSION = 1.71.0
BUF_VERSION = $(shell cat $(CURDIR)/.buf-version)
The workflow was grepping BUF_VERSION from Makefile, which now
contains a $(shell ...) expression instead of a literal version.
Read directly from .buf-version and add it to the paths trigger.
Copilot AI review requested due to automatic review settings July 18, 2026 03:39
@github-actions

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJul 18, 2026, 3:39 AM

Copilot AI 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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

# Run buf in docker, mounting the full repo into the container
# Emulate running "buf" in the current directory
BUF_VERSION = 1.71.0
BUF_VERSION = $(shell cat $(CURDIR)/.buf-version)
Comment on lines +24 to +26
- name: Read buf version
id: buf-version
run: echo "version=$(grep '^BUF_VERSION' aks-node-controller/Makefile | cut -d'=' -f2 | tr -d ' ')" >> "$GITHUB_OUTPUT"
run: echo "version=$(cat aks-node-controller/.buf-version)" >> "$GITHUB_OUTPUT"
Comment thread .github/renovate.json
Comment on lines +835 to +842
"matchStringsStrategy": "any",
"matchStrings": [
"(?<currentValue>\\S+)"
],
"depNameTemplate": "bufbuild/buf",
"datasourceTemplate": "docker",
"extractVersionTemplate": "^(?<version>.*)$"
},
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