Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

monorepo: move grpc spec into proto subdir, and update make tools #80

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

BlaineEXE
Copy link
Contributor

Move the core required files for gRPC specification to ./proto
directory. Do not make any file modifications at this point.


in a new commit:

Fix some package deprecations in proto/hack/fake-gen


In the final and largest commit:

Modeled after:
container-storage-interface/spec#552

Update to the latest, non-deprecated versions of Google's tools for
protobuf generation.

Also update make tools to allow working with go modules outside of
GOPATH, and to build on ARM-based Macbooks.

New tools are significantly different from prior tools. Notably, the
grpc plugin is no longer supported, so the --go-gprc_out flag is used,
which moves some generated content from cosi.pb.go to a new
cosi_grpc.pb.go file.

We are still able to keep fake-gen by continuing to use deprecated tool
versions for that purpose. There's a chance that it may not serve the
COSI project long-term, but it should still work for now.

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 13, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot requested a review from saad-ali July 13, 2024 00:10
@BlaineEXE
Copy link
Contributor Author

I still have some cleanup to do on this, but the biggest part of making this work is done I think

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BlaineEXE

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from xing-yang July 13, 2024 00:10
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 13, 2024
Move the core required files for gRPC specification to ./proto
directory. Do not make any file modifications at this point.

Signed-off-by: Blaine Gardner <[email protected]>
Fix some package deprecations in proto/hack/fake-gen

Signed-off-by: Blaine Gardner <[email protected]>
@BlaineEXE BlaineEXE marked this pull request as ready for review July 18, 2024 18:46
@k8s-ci-robot k8s-ci-robot removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 18, 2024
Modeled after:
container-storage-interface/spec#552

Update to the latest, non-deprecated versions of Google's tools for
protobuf generation.

Also update make tools to allow working with go modules outside of
GOPATH, and to build on ARM-based Macbooks.

New tools are significantly different from prior tools. Notably, the
grpc plugin is no longer supported, so the `--go-gprc_out` flag is used,
which moves some generated content from `cosi.pb.go` to a new
`cosi_grpc.pb.go` file.

We are still able to keep fake-gen by continuing to use deprecated tool
versions for that purpose. There's a chance that it may not serve the
COSI project long-term, but it should still work for now.

Signed-off-by: Blaine Gardner <[email protected]>
@shanduur
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 25, 2024
@k8s-ci-robot k8s-ci-robot merged commit 48247f2 into kubernetes-retired:monorepo Jul 25, 2024
4 checks passed
@BlaineEXE BlaineEXE deleted the proto-dir branch July 25, 2024 18:12
shanduur pushed a commit to shanduur/container-object-storage-interface-api that referenced this pull request Aug 2, 2024
…d-in-cloudbuild

push images using PROJECT_ID in cloudbuild
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants