Skip to content

ci: hold the buf, grpcio-tools and CircleCI Go pins in lockstep - #2474

Merged
HuiJun merged 1 commit into
developfrom
ci/single-source-tool-pins
Nov 21, 2026
Merged

HuiJun merged 1 commit into
developfrom
ci/single-source-tool-pins

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Part of #2452.

Three tool versions are declared in one place and repeated by hand in the CI files, with nothing failing when they drift:

  • buf: the Makefile's BUF_VERSION (v1.57.2) against eight literal download URLs in pr.yml, rebaseline.yml and .circleci/config.yml. A bump of one side makes the regenerate-and-diff gates compare two generators.
  • grpcio-tools: GRPC_GENERATED_VERSION in the committed Python stubs (1.83.0) against five grpcio-tools== pins in pip-cache.yml, pr.yml, rebaseline.yml and .circleci/config.yml.
  • Go: go.mod's toolchain go1.27.4 against CircleCI's cimg/go:1.27 and cimg/go:1.27-node, tags that move with each patch release, so a release could be compiled by a different patch than the container image (which a hygiene test already holds to golang:1.27.4-alpine).

tests/hygiene/tool_pins_test.go adds one test per tool that reads the declared version and fails on any CI file that names another. The two CircleCI images are pinned to cimg/go:1.27.4 and cimg/go:1.27.4-node, both of which exist on Docker Hub. The buf and grpcio-tools pins already agree, so those tests only guard the next bump.

The tests run in the existing hygiene suite; no job or step is added. The digests beside the buf URLs are not single-sourced here.

How it was verified

  • go test -count=1 ./tests/hygiene passes. With .circleci/config.yml as on develop, TestCircleCIRunsThePinnedToolchain fails once per image.
  • circleci config validate .circleci/config.yml: valid.
  • go vet ./tests/hygiene, gofmt -l, scripts/changelog.py check, scripts/check-doc-ids.py pass.
  • Not verified: a CircleCI run in the pinned image; the full make test and make lint were not run locally.

Checklist

  • make test and make lint pass locally
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Quality Assurance opened this PR for Jason
Implemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop


Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@HuiJun
HuiJun added this pull request to the merge queue Nov 21, 2026
Merged via the queue into develop with commit 3893d8d Nov 21, 2026
54 of 96 checks passed
@HuiJun
HuiJun deleted the ci/single-source-tool-pins branch November 21, 2026 22:58
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.

1 participant