-
Notifications
You must be signed in to change notification settings - Fork 192
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
readthedocs documentation no longer building #1472
Comments
I have been taking a look and the problems seem to be twofold:
The OOM was probably introduced because we switched the requirement for However, now we are still hitting the timeout, but according to this thread this is a general problem with RTD servers and they say to try again later |
Thanks for the update! |
I had misread Mar 2 as May 2 and was a bit hasty with my conclusion. Probably wishful thinking is to blame :) Then I am not sure what causes the increase in build time. Maybe we were already close to it and just a little extra tipped the bucket |
FYI the last build of |
That's because the removal of |
But the same is true for the last workflows build... |
Hm... maybe you were lucky? Also: Does anybody happen to know why there are always two builds triggered after a new commit? |
Check also #1524 for a graph of memory consumption and additional notes on what readthedocs is working on |
I report here some more detailed memory reporting. Memory usage for the
|
Actually, I have to correct what I was saying before, because I tried again to run a fresh build, and then rebuilding, and the memory at the first step was
While in the second run more like
(these numbers fluctuating a bit, VM in the range 250-320MB). Note also the huge Virtual memory (w.r.t. the real memory, in the previous plots!) These would correspond to runs where I left all files in place and just emptied the |
I don't quite follow the maths - according to your tests, singlehtml without apidoc is ~560MB and singlehtml with apidoc is ~880MB. Anyhow, I have read on the rtd github issues that the resource usage of the singlehtml build depends significantly on the length of the documentation (see related issue here ). |
In the issue above, they just asked and they increased the memory usage for the project. We could try the same. |
A few comments, done after emptying the documentation but keeping the files around, and trying to monitor memory. I managed to track down to a few files (removing the automatic apidoc) that increase a lot the memory:
Unfortunately it becomes a bit too much work to track which specific import in there might require so much memory... Also we have e.g. database connections, these might require some memory (also because we use an in-memory SQLite DB, even if this should be the main problem - my tests above are done with PostgreSQL). |
In readthedocs/readthedocs.org#3220 they say that there is now a way to remove the unnecessary compilation! I'm going to prepare a PR for this |
At the moment we just configure the formats, in particular disabling the htmlzip format, that was causing a lot of memory usage and, as a consequence, the builds to fail, see aiidateam#1472 This should close aiidateam#1472 if it works as expected
Seems to have worked, even if we need to wait a few builds to be more sure! There were three builds triggered at the same time
So hard to say if it really worked... We can reopen this if we see it didn't work. |
But this time for the release 0.12.1 branch
But this time for the release 0.12.1 branch
But this time for the release 0.12.1 branch
Perhaps someone is already working on this, but just so that we don't replicate work -
I'm currently getting flooded with emails pointing out that the readthedocs builds are failing because of timeouts (both for the
latest
and theworkflows
branch).I suggest that
One straightforward idea to save time would be to disable thejson is used for searchjson
build which, I guess, is completely unnecessaryThey mention that they can increase the build time for specific projects. Perhaps one just needs to ask?
On top of this, one should still look at the build itself and see whether the long build time makes sense and could be reduced.
P.S. Currently the readthedocs build notifications go to @giovannipizzi @DropD @szoupanos and me.
Since @sphuber is doing a lot of merges lately, should I add you as well?
Alternatively, we could define someone who is responsible for the readthedocs builds and reduce the number of people who get notified about this.
The text was updated successfully, but these errors were encountered: