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
Enable multiprocess docs generation #4302
Conversation
This command is affected: tox -e docs It is now 40% faster on my workstation: 30s down from 50s. Fixed exclude_patterns path in Sphinx conf.py. Updates version of these packages: Sphinx - bugfix in multiprocess support google-apitools - to clear warnings about oauth2client.contrib.multistore_file six - version 1.11 no longer incompatible with google-apitools
Warnings about oauth2client.contrib.multistore_file appeared after upgrading Sphinx. Exclude patterns were fixed because the multiprocess runs had this warning: |
R: @aaltay |
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.
Pinged a few people for the apitools change, in case there is a potential issue that they are aware of.
@@ -121,7 +119,7 @@ def get_version(): | |||
] | |||
|
|||
GCP_REQUIREMENTS = [ | |||
'google-apitools>=0.5.10,<=0.5.11', |
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.
Have you tested this by running a job on Dataflow?
This is a little scary because the latest version of apitools on github is 0.5.14.
@craigcitro @charlesccychen @chamikaramj (FYI, in case anybody is aware of a known incompatibility.)
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.
Python SDK PostCommit Tests have successfully completed, which use TestDataflowRunner.
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.
Awesome! Thank you.
@@ -167,7 +167,7 @@ EOF | |||
|
|||
# Build the documentation using sphinx | |||
# Reference: http://www.sphinx-doc.org/en/stable/man/sphinx-build.html | |||
python $(type -p sphinx-build) -v -a -E -q target/docs/source \ | |||
python $(type -p sphinx-build) -v -a -E -j 8 -q target/docs/source \ |
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.
Could you use the long forms for these arguments if possible.
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.
AFAIK there isn't a long form for this.
http://www.sphinx-doc.org/en/stable/invocation.html#invocation-of-sphinx-build
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 for checking!
/cc @znewman01 for the apitools question |
@znewman01 Seems like there is a new github repo for apitools: https://github.com/google/apitools, pypi page (https://pypi.python.org/pypi/google-apitools) is still pointing to the old page. |
jenkins: run python postcommit |
run python postcommit |
To answer a couple of questions:
+CC @kevinli7 FYI |
@znewman01 Thank you! I appreciate the detailed information. Could you clarify two points:
|
Thank you @znewman01. We should consider upgrading our apitools dependency post this change (https://issues.apache.org/jira/browse/BEAM-3391) |
No description provided.