Skip to content

Update dependencies and protobuf generation using Buf #9155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 8, 2025

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Jun 7, 2025

Fix #9153
Fix #9154

@nopcoder nopcoder self-assigned this Jun 7, 2025
@nopcoder nopcoder added dependencies Pull requests that update a dependency file infrastructure build, deploy and release processes labels Jun 7, 2025
@nopcoder nopcoder added the exclude-changelog PR description should not be included in next release changelog label Jun 7, 2025
@nopcoder nopcoder requested a review from a team June 7, 2025 19:15
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Thanks - new build process looks neater (not just newer).

I don't understand (and this is not blocking, given that CI passes): where did the .pb.go files go? Are they now auto-generated? This would make me really happy 🥳 . But in that case - did we have no checks-validator check that we correctly updated them?

GOLANGCI_LINT=github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.5
BUF_CLI_VERSION=v1.28.1
GOLANGCI_LINT=github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
BUF_CLI_VERSION=v1.54.0
Copy link
Contributor

Choose a reason for hiding this comment

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

This is really weird: the old Buf CLI version was the same as the action version, now they're different. Did they really do this??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I thought they will sync the version of the action with the version of the cli - but it is not the case.

@@ -107,6 +107,7 @@ gen-docs: ## Generate CLI docs automatically
gen-metastore: ## Run Metastore Code generation
@thrift -r --gen go --gen go:package_prefix=github.com/treeverse/lakefs/pkg/metastore/hive/gen-go/ -o pkg/metastore/hive pkg/metastore/hive/hive_metastore.thrift

.PHONY: tools
Copy link
Contributor

Choose a reason for hiding this comment

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

🥳 ❗

@nopcoder
Copy link
Contributor Author

nopcoder commented Jun 8, 2025

We check-in the generated code and the CI verify that the checked-in generated code is aligned with the current tool's output.

@nopcoder nopcoder merged commit c69e95b into master Jun 8, 2025
42 of 43 checks passed
@nopcoder nopcoder deleted the chore/update-proto branch June 8, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file exclude-changelog PR description should not be included in next release changelog infrastructure build, deploy and release processes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Buf cli and protocol buffer compiler versions Makefile: make tools does not run
2 participants