Skip to content

Conversation

@amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

  1. Improve README for how to install buf dependency and then run the proto generated file script.
  2. Improve the message for out-of-sync check script.

Why are the changes needed?

Improve developer experience either when touching Connect proto files or not touch those files but having master branch out of sync with local branch.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing checks.

@amaliujia
Copy link
Contributor Author

Copy link

@rangadi rangadi left a comment

Choose a reason for hiding this comment

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

LGTM.

```

## Generate proto generated files for the Python client
1. Install `buf`: https://docs.buf.build/installation
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also need to mention the related python packages:

grpcio==1.48.1
protobuf==4.21.6
mypy-protobuf==3.3.0

Copy link
Contributor

@zhengruifeng zhengruifeng Oct 22, 2022

Choose a reason for hiding this comment

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

buf's version in CI is 1.8.0, the latest one is 1.9.0. I think we also need to mention the version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense. I updated this doc with versions.

Copy link
Contributor

@zhengruifeng zhengruifeng left a comment

Choose a reason for hiding this comment

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

LGTM

@zhengruifeng
Copy link
Contributor

merged into master, thank you @amaliujia

## Generate proto generated files for the Python client
1. Install `buf`: https://docs.buf.build/installation
2. Run `pip install grpcio==1.48.1 protobuf==4.21.6 mypy-protobuf==3.3.0`
3. Run `./dev/generate_protos.sh`
Copy link
Contributor

Choose a reason for hiding this comment

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

oops, should be ./connector/connect/dev/generate_protos.sh

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I fix it in #38339

Copy link
Contributor Author

@amaliujia amaliujia Oct 22, 2022

Choose a reason for hiding this comment

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

oops I copied this from my local command which is not under the spark repo root directory.

@zhengruifeng maybe you can BTW update it in the PR that you pin dependency versions?

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…files in Connect Python client

### What changes were proposed in this pull request?

1. Improve README for how to install `buf` dependency and then run the proto generated file script.
2. Improve the message for out-of-sync check script.

### Why are the changes needed?

Improve developer experience either when touching Connect proto files or not touch those files but having master branch out of sync with local branch.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Existing checks.

Closes apache#38335 from amaliujia/python_generate_buf_read_me.

Authored-by: Rui Wang <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants