-
Notifications
You must be signed in to change notification settings - Fork 144
Add generated protos #42
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
Conversation
# Conflicts: # tests/worker/test_workflow.py
# Conflicts: # .github/workflows/ci.yml # README.md # temporalio/worker/workflow.py # tests/worker/test_workflow.py
| @@ -0,0 +1,33 @@ | |||
| from .message_pb2 import ( | |||
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.
Every file starting here is auto-generated
| with (base_path / "__init__.py").open("w") as f: | ||
| # Add docstring to API's init | ||
| if str(base_path.as_posix()).endswith("/temporal/api"): | ||
| f.write('"""gRPC API."""\n') |
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.
Why?
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.
Because we fail my poe lint-docs test because it's a package with no API. Notice right now at https://python.temporal.io/ we don't have a summary doc for just the temporal.api package. That's because I had traditionally gen'd docs after protos (which is after the doc linter) and didn't have this here.
| - os: ubuntu-latest | ||
| python: 3.10 | ||
| docsTarget: true | ||
| protoCheckTarget: true |
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.
I did this in TS and TBH it's probably better to just have a separate build for docs and proto check to avoid delaying the entire pipeline.
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.
I think it's fast enough, and it's on the fastest target so still gets done before mac/windows. Proto gen is quite fast.
What was changed
Why?