Skip to content

chore: pin buf to 1.71.0 in Makefile and CI to fix format drift#8929

Merged
abigailliang-aks-sig-node merged 1 commit into
mainfrom
fix/pin-buf-version-in-ci
Jul 14, 2026
Merged

chore: pin buf to 1.71.0 in Makefile and CI to fix format drift#8929
abigailliang-aks-sig-node merged 1 commit into
mainfrom
fix/pin-buf-version-in-ci

Conversation

@abigailliang-aks-sig-node

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

Copy link
Copy Markdown
Contributor

Summary

While working on PR #8812 (remove streamingConnectionIdleTimeout for k8s >= 1.34), I ran make proto-generate to regenerate kubelet_config.pb.go after marking the proto field as [deprecated = true]. This produced a 241-line formatting diff — the local buf format (v1.47.2 pinned in the Makefile) reformatted all /* */ comment blocks from 3-space to 5-space indentation.

CI uses bufbuild/buf-action@v1 which pulls the latest buf version. The latest buf (1.71.0) expects 3-space indentation (matching what's already on main), so the locally-generated 5-space format fails CI's format check.

Root cause: Version drift between the Makefile (bufbuild/buf:1.47.2) and CI (bufbuild/buf-action@v1 → unpinned latest).

Fix:

  1. Upgrade the Makefile's buf docker image from 1.47.2 to 1.71.0
  2. Pin CI's buf-action to version: 1.71.0 so both local and CI use the same version

This ensures make proto-generate locally and CI produce identical formatting. Future buf upgrades require changing both files together.

Changes

  • aks-node-controller/Makefile: bufbuild/buf:1.47.2bufbuild/buf:1.71.0
  • .github/workflows/buf.yaml: add version: 1.71.0 to pin CI

Test plan

  • docker run bufbuild/buf:1.71.0 format --diff on main produces no output
  • make proto-generate with 1.71.0 does not change any proto file formatting on main
  • Build passes after version bump

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 updates the aks-node-controller developer tooling to align the locally-pinned Buf version with what CI is currently using, reducing buf format drift when regenerating protobuf outputs.

Changes:

  • Bump the Buf Docker image used by aks-node-controller/Makefile from bufbuild/buf:1.47.2 to bufbuild/buf:1.71.0.

Comment thread aks-node-controller/Makefile Outdated
Comment thread aks-node-controller/Makefile Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 01:04
@abigailliang-aks-sig-node abigailliang-aks-sig-node changed the title chore: upgrade buf version from 1.47.2 to 1.71.0 chore: pin buf version to 1.71.0 in both Makefile and CI Jul 14, 2026
@abigailliang-aks-sig-node abigailliang-aks-sig-node changed the title chore: pin buf version to 1.71.0 in both Makefile and CI chore: pin buf to 1.71.0 in Makefile and CI to fix format drift Jul 14, 2026
@github-actions

github-actions Bot commented Jul 14, 2026

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 14, 2026, 3:36 PM

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 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 14, 2026 01:11

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 2 out of 2 changed files in this pull request and generated no new comments.

Comment thread .github/workflows/buf.yaml Outdated
- uses: bufbuild/buf-action@v1
with:
input: aks-node-controller
version: 1.71.0

@djsly djsly Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

would there be an easy way to turn this into a constant. it would be preferable to have it aligned between both locations.

Aligns local `make proto-generate` formatting output with the CI
buf-action which uses the latest buf version. This prevents format
drift where local buf 1.47.2 produces 5-space indentation in proto
comments while CI expects 3-space indentation.
Copilot AI review requested due to automatic review settings July 14, 2026 15:35

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 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +22 to +24
- name: Extract buf version from Makefile
id: buf-version
run: echo "version=$(grep '^BUF_VERSION' aks-node-controller/Makefile | cut -d'=' -f2 | tr -d ' ')" >> "$GITHUB_OUTPUT"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: Extract buf version from Makefile

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.

might be better to store pinned version in a separate file under /aks-node-controller/ that we can reference from here and the Makefile?

@abigailliang-aks-sig-node abigailliang-aks-sig-node merged commit 6b8fe9e into main Jul 14, 2026
36 checks passed
@abigailliang-aks-sig-node abigailliang-aks-sig-node deleted the fix/pin-buf-version-in-ci branch July 14, 2026 17:15
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.

6 participants