-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add CI actions #11
Add CI actions #11
Conversation
.github/workflows/psm-interop.yaml
Outdated
run: > | ||
python -m grpc_tools.protoc --proto_path=. | ||
--python_out=. --grpc_python_out=. | ||
protos/empty.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should keep the packages path after protos/
: protos/grpc/testing
.
@gnossen - curious what you'd recommend here. Does the path really matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the benefits of keeping it? I thought those are just paths to the .proto
files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do declare package grpc.testing;
, and IRRC file path should correspond to the packages.
In practice, this means that the imports will look different:
from protos.grpc.testing import messages_pb2
instead of
from protos import messages_pb2
Then if we need to embed other protos (f.e. xds), they'd be in their own package too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked with Richard offline, it's better to move them to correct location.
Thank you so much, @XuanWang-Amos, this looks great! Just left some minor notes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much!
* Revert "Remove unreviewed changes (#10)" This reverts commit 7b0e3f1. * Changes for this repo * Fix indent issue * Try not install Python for pylint * Remove strategy * Remvoe name * Changes from comments * Try fix path issue * Move .pylintrc-tests back to root * Use two steps for pylint * try pylint in another folder * Try rename black.toml to pyproject.toml * Move protos * Fix proto path * Changes based on comments --------- Co-authored-by: Sergii Tkachenko <[email protected]>
* Revert "Remove unreviewed changes (#10)" This reverts commit 7b0e3f1. * Changes for this repo * Fix indent issue * Try not install Python for pylint * Remove strategy * Remvoe name * Changes from comments * Try fix path issue * Move .pylintrc-tests back to root * Use two steps for pylint * try pylint in another folder * Try rename black.toml to pyproject.toml * Move protos * Fix proto path * Changes based on comments --------- Co-authored-by: Sergii Tkachenko <[email protected]>
* Revert "Remove unreviewed changes (#10)" This reverts commit 7b0e3f1. * Changes for this repo * Fix indent issue * Try not install Python for pylint * Remove strategy * Remvoe name * Changes from comments * Try fix path issue * Move .pylintrc-tests back to root * Use two steps for pylint * try pylint in another folder * Try rename black.toml to pyproject.toml * Move protos * Fix proto path * Changes based on comments --------- Co-authored-by: Sergii Tkachenko <[email protected]>
Changes in this PR
unittest
,black
,isort
andpylint
check to GitHub actions.