numaflow-go
numaflow-go copied to clipboard
chore: centralize proto files
https://github.com/numaproj/numaflow/pull/1402
Should we completely delete the proto file from here or just indicate in the CI process that it has diverged? Otherwise developing new changes might get tricker as it pulls from the main branch of numaflow.
Should we completely delete the proto file from here or just indicate in the CI process that it has diverged? Otherwise developing new changes might get tricker as it pulls from the
mainbranch of numaflow.
Good question.
I believe this would be the right process for any other sdks other than golang - however golang will always be the 1st one if there's any change to the protocols, we need to think about how to make it smooth for golang.
I imagine the process of introducing proto file changes would be:
- A PR in numaflow repo for proto file changes.
- During Go sdk development, temporarily points to the numaflow PR branch to download proto files for codegen, and raise a PR;
- Merge numaflow PR;
- Merge Go sdk PR.
- Work on other SDKs implementation.
- Add a non-blocking CI to run
make protofor all the sdks, to indicate if there's drift on the codegen.
Another option is, use Go SDK repo as the the location for centralized proto files.
@vigith - WDYT?
I imagine the process of introducing proto file changes would be:
- A PR in numaflow repo for proto file changes.
- During Go sdk development, temporarily points to the numaflow PR branch to download proto files for codegen, and raise a PR;
- Merge numaflow PR;
- Merge Go sdk PR.
- Work on other SDKs implementation.
- Add a non-blocking CI to run
make protofor all the sdks, to indicate if there's drift on the codegen.
Sounds good to me.
I think we can make the main in this URL path can be overrideable via ENV var? This will help in fetching the proto file easier for development without editing the script.
I imagine the process of introducing proto file changes would be:
- A PR in numaflow repo for proto file changes.
- During Go sdk development, temporarily points to the numaflow PR branch to download proto files for codegen, and raise a PR;
- Merge numaflow PR;
- Merge Go sdk PR.
- Work on other SDKs implementation.
- Add a non-blocking CI to run
make protofor all the sdks, to indicate if there's drift on the codegen.Sounds good to me.
I think we can make the
mainin this URL path can be overrideable via ENV var? This will help in fetching the proto file easier for development without editing the script.
Makes sense.
Could we please hold off on merging this pull request for now? I am currently making some changes to the proto files in two of my pending PRs. Merging this right now could create conflicts with those changes.
@yhl25 - can you remove the change request?
Proto Generate will be green after https://github.com/numaproj/numaflow/pull/1466 is merged.