dask: ReadTheDocs PR builds are failing
Looks like we’re getting timeout errors on RTD builds for PRs:
Truncating the output, here is the failure message:
$ /home/docs/checkouts/readthedocs.org/user_builds/dask/envs/8225/bin/python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
...
writing output... [ 84%] generated/dask.dataframe.groupby.DataFrameGroupBy.count
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.cov
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.cumcount
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.cumprod
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.cumsum
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.first
writing output... [ 85%] generated/dask.dataframe.groupby.DataFrameGroupBy.get_group
Command killed due to excessive memory consumption
Has a recent PR significantly increased the docs size?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (15 by maintainers)
I saw this pop up in my notifications and was like oh god what have we broken now?! 😆
Thanks for looking into this @choldgraf!
I also think it might be easy to get a quick speed up in the pydata theme, will see if my hunch is correct today
Just a note that we recently got a little numfocus grant to work on the pydata theme, so I suspect improving performance will be something that happens once that gets rolling
Ok i think i figured out a way to selectively remove navigation entries so that you can still autogenerate API docs with stub pages, but not have them show up in the navigation bar. Can you try adding the function here to your docs build and see if that fixes the speed issues? https://github.com/pydata/pydata-sphinx-theme/pull/492/files#diff-381cb883eeefc0f20f80b41392b657f8a6f8c12dc106954c84ed0c7402e37c64R475
In that case my vote would be to either ask or pay for our build times to be increased 😃
tl;dr: Looks like there were no changes in Dask that produced this slowdown, but somehow the newer dask-sphinx-theme seems to make a huge difference. The solution for now is to set
dask-sphinx-theme>=1.3.5,<2indocs/requirements-docs.txt.I launched two builds on https://github.com/astrojuanlu/dask/pull/1, one for 049d803 (which passed 3 days ago) and another one for ba29ba3, which failed 2 days ago. They got built on our large builders so they passed - but they took ~1400 seconds, whereas
mainused to take ~400 seconds.This step:
took 200 seconds on the good build, and
took 1140 s on the bad build. Therefore, there were no code changes in Dask that produced this slowdown.
The only relevant difference in dependencies I saw was dask-sphinx-theme-1.3.6 vs dask-sphinx-theme-2.0.0. So I went ahead and pinned it, and that seemed to do the trick. https://readthedocs.org/projects/dask-astrojuanlu/builds/14928907/ took less than 400 seconds. Therefore, for now the solution is
Most importantly, the “excessive memory consumption” is misleading: the builds are failing because of timeout.
The last passing build of
mainappears to be https://readthedocs.org/projects/dask/builds/14901502/, which took half the time it’s taking now. Suspicious.I’ll inspect this more closely in the coming hours.