Repository navigation
ci: hold the buf, grpcio-tools and CircleCI Go pins in lockstep - #2474
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_VERSION(v1.57.2) against eight literal download URLs inpr.yml,rebaseline.ymland.circleci/config.yml. A bump of one side makes the regenerate-and-diff gates compare two generators.GRPC_GENERATED_VERSIONin the committed Python stubs (1.83.0) against fivegrpcio-tools==pins inpip-cache.yml,pr.yml,rebaseline.ymland.circleci/config.yml.go.mod'stoolchain go1.27.4against CircleCI'scimg/go:1.27andcimg/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 togolang:1.27.4-alpine).tests/hygiene/tool_pins_test.goadds one test per tool that reads the declared version and fails on any CI file that names another. The two CircleCI images are pinned tocimg/go:1.27.4andcimg/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/hygienepasses. With.circleci/config.ymlas ondevelop,TestCircleCIRunsThePinnedToolchainfails once per image.circleci config validate .circleci/config.yml: valid.go vet ./tests/hygiene,gofmt -l,scripts/changelog.py check,scripts/check-doc-ids.pypass.make testandmake lintwere not run locally.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogImplemented in session Fix OpenSysML CI, release and supply chain findings
Review with Devin · Open in Devin Desktop