Skip to content
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

refactor(storage): update to support buf lint and generation automation #419

Merged
merged 7 commits into from
Jan 18, 2024

Conversation

artek-koltun
Copy link
Contributor

@artek-koltun artek-koltun commented Dec 15, 2023

Transition storage to the buf lint and buf generate operation to allow for automation of the protobuf file generation.

Support for cpp and java are being removed at this time. Generation supports go and python. Support for other languages can be added as needed by the buf.gen.yaml file.

Be aware that the .proto files are moved up from the v1alpha1 directory to support the buf operation and to keep the version of the generated files in a separate (v1, v1alpha1, etc.) directory structure. This will allow for the future ability to autogenerate the files and place them in a separate repo location.

uuid message is replaced to string type, based on the internal discussion and an intention to remove common package at all.

grpc-gateway is generated as a part of the build, so fixes #332

@artek-koltun artek-koltun force-pushed the storage-automate branch 2 times, most recently from b4e4d75 to 4728070 Compare December 15, 2023 14:06
@artek-koltun artek-koltun marked this pull request as ready for review December 15, 2023 14:08
@artek-koltun artek-koltun requested a review from a team as a code owner December 15, 2023 14:08
@artek-koltun artek-koltun force-pushed the storage-automate branch 2 times, most recently from 7bbbd85 to 4728070 Compare December 15, 2023 15:04
Copy link
Contributor

@sandersms sandersms left a comment

Choose a reason for hiding this comment

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

Changes look good - same as the ones I was working with the addition of the removal of the uuid.proto and the common directory.

uuid type is just a string value in dedicated message. No need in that
type if we can use string type directly.

Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
we are not using those bindings at the moment. Can be added back when
required.

Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
to satisfy linters. scsi parent annotations are not correct and
should be fixed later.

Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
required to support buf operations

Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
@artek-koltun artek-koltun merged commit 972ce8a into opiproject:main Jan 18, 2024
10 checks passed
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants