-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21773][BUILD][DOCS] Installs mkdocs if missing in the path in SQL documentation build #18984
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
|
cc @jkbradley and @srowen. Would you have some time to take a look for this one? |
|
Test build #80819 has finished for PR 18984 at commit
|
|
Let me merge this one and see if the doc build passes. |
|
Merged to master. |
|
It looks still failed. Now it looks during mkdocs installation - https://amplab.cs.berkeley.edu/jenkins/job/spark-master-docs/3588/consoleFull but I believe the fix itself is still okay and no need to revert. Hi @shaneknapp, I guess, without a close look, we could simply install this by |
|
how long has this been failing in this way? i'll take a closer look
tomorrow afternoon.
…On Sun, Aug 20, 2017 at 4:31 AM, Hyukjin Kwon ***@***.***> wrote:
It looks still failed during mkdocs installation -
https://amplab.cs.berkeley.edu/jenkins/job/spark-master-
docs/3588/consoleFull
Missing mkdocs in your path, trying to install mkdocs for SQL documentation generation.
Collecting mkdocs
Downloading mkdocs-0.16.3-py2.py3-none-any.whl (1.2MB)
Collecting livereload>=2.5.1 (from mkdocs)
Downloading livereload-2.5.1-py2-none-any.whl
Requirement already satisfied: Jinja2>=2.7.1 in /home/anaconda/lib/python2.7/site-packages (from mkdocs)
Collecting click>=3.3 (from mkdocs)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
Collecting Markdown>=2.3.1 (from mkdocs)
Downloading Markdown-2.6.9.tar.gz (271kB)
Requirement already satisfied: PyYAML>=3.10 in /home/anaconda/lib/python2.7/site-packages (from mkdocs)
Collecting tornado>=4.1 (from mkdocs)
Downloading tornado-4.5.1.tar.gz (483kB)
Requirement already satisfied: six in /home/anaconda/lib/python2.7/site-packages (from livereload>=2.5.1->mkdocs)
Collecting singledispatch (from tornado>=4.1->mkdocs)
Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado>=4.1->mkdocs)
Downloading certifi-2017.7.27.1-py2.py3-none-any.whl (349kB)
Collecting backports_abc>=0.4 (from tornado>=4.1->mkdocs)
Downloading backports_abc-0.5-py2.py3-none-any.whl
Building wheels for collected packages: Markdown, tornado
Running setup.py bdist_wheel for Markdown: started
Running setup.py bdist_wheel for Markdown: finished with status 'done'
Stored in directory: /home/jenkins/.cache/pip/wheels/bf/46/10/c93e17ae86ae3b3a919c7b39dad3b5ccf09aeb066419e5c1e5
Running setup.py bdist_wheel for tornado: started
Running setup.py bdist_wheel for tornado: finished with status 'done'
Stored in directory: /home/jenkins/.cache/pip/wheels/84/83/cd/6a04602633457269d161344755e6766d24307189b7a67ff4b7
Successfully built Markdown tornado
Installing collected packages: singledispatch, certifi, backports-abc, tornado, livereload, click, Markdown, mkdocs
Exception:
Traceback (most recent call last):
File "/home/anaconda/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/anaconda/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/anaconda/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/anaconda/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/anaconda/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/anaconda/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/anaconda/lib/python2.7/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/home/anaconda/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/home/anaconda/lib/python2.7/site-packages/singledispatch_helpers.pyc
...
but I believe the fix itself is still okay and no need to revert.
Hi @shaneknapp <https://github.com/shaneknapp>, I *guess* we could simply
install this by sudo pip install mkdocs without a close look. Maybe,
would you please be able to check this and install mkdocs package for SQL
documentation build?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18984 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABiDrApK8GAj2mZuL1ClAnk-afIdLJN5ks5saBj8gaJpZM4O7CFW>
.
|
|
Here is the context I got: #18702 broke the documentation build in https://amplab.cs.berkeley.edu/jenkins/job/spark-master-docs/. It failed in this way roughly about 20ish days. That PR adds SQL documentation build but with the dependency, To fix this, in this PR, I manually added some install command here to install It has failed in this way roughly about 1 day. |
|
okie dokie. installing mkdocs now. |
|
done: |
|
Nice! Thank you so much @shaneknapp! |
|
… On Mon, Aug 21, 2017 at 4:30 PM, Hyukjin Kwon ***@***.***> wrote:
Nice! Thank you so much @shaneknapp <https://github.com/shaneknapp>!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18984 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABiDrGlb922ovqE6RcvHJ_NvwE9Pdbxbks5sahMcgaJpZM4O7CFW>
.
|
|
hmm. the build seems to be hanging:
INFO - Cleaning site directory
INFO - Building documentation to directory:
/home/jenkins/workspace/spark-master-docs/spark/sql/site
Moving back into docs dir.
Making directory api/sql
cp -r ../sql/site/. api/sql
Source: /home/jenkins/workspace/spark-master-docs/spark/docs
Destination: /home/jenkins/workspace/spark-master-docs/spark/docs/_site
Generating...
done.
Auto-regeneration: disabled. Use --watch to enable.
Copying release documentation to
/home/****/public_html/spark-nightly/spark-master-docs/spark-2.3.0-SNAPSHOT-2017_08_21_16_25-84b5b16-docs
…On Mon, Aug 21, 2017 at 4:36 PM, shane knapp ☠ ***@***.***> wrote:
building now:
https://amplab.cs.berkeley.edu/jenkins/job/spark-master-docs/3594/console
On Mon, Aug 21, 2017 at 4:30 PM, Hyukjin Kwon ***@***.***>
wrote:
> Nice! Thank you so much @shaneknapp <https://github.com/shaneknapp>!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#18984 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABiDrGlb922ovqE6RcvHJ_NvwE9Pdbxbks5sahMcgaJpZM4O7CFW>
> .
>
|
|
nvm... i checked the last successful build and it took ~90 mins.
…On Mon, Aug 21, 2017 at 5:08 PM, shane knapp ☠ ***@***.***> wrote:
hmm. the build seems to be hanging:
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/jenkins/workspace/spark-master-docs/spark/sql/site
Moving back into docs dir.
Making directory api/sql
cp -r ../sql/site/. api/sql
Source: /home/jenkins/workspace/spark-master-docs/spark/docs
Destination: /home/jenkins/workspace/spark-master-docs/spark/docs/_site
Generating...
done.
Auto-regeneration: disabled. Use --watch to enable.
Copying release documentation to /home/****/public_html/spark-nightly/spark-master-docs/spark-2.3.0-SNAPSHOT-2017_08_21_16_25-84b5b16-docs
On Mon, Aug 21, 2017 at 4:36 PM, shane knapp ☠ ***@***.***>
wrote:
> building now:
> https://amplab.cs.berkeley.edu/jenkins/job/spark-master-docs/3594/console
>
> On Mon, Aug 21, 2017 at 4:30 PM, Hyukjin Kwon ***@***.***>
> wrote:
>
>> Nice! Thank you so much @shaneknapp <https://github.com/shaneknapp>!
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#18984 (comment)>, or mute
>> the thread
>> <https://github.com/notifications/unsubscribe-auth/ABiDrGlb922ovqE6RcvHJ_NvwE9Pdbxbks5sahMcgaJpZM4O7CFW>
>> .
>>
>
>
|
|
Thanks for your effort @shaneknapp. I just checked the green. |
What changes were proposed in this pull request?
This PR proposes to install
mkdocsbypip installif missing in the path. Mainly to fix Jenkins's documentation build failure inspark-master-docs. See https://amplab.cs.berkeley.edu/jenkins/job/spark-master-docs/3580/console.It also adds
mkdocsas requirements indocs/README.md.How was this patch tested?
I manually ran
jekyll buildunderdocsdirectory after manually removingmkdocsviapip uninstall mkdocs.Also, tested this in the same way but on CentOS Linux release 7.3.1611 (Core) where I built Spark few times but never built documentation before and
mkdocsis not installed.