Readthedocs.org: Build exited due to time out for PlatformIO Docs

Created on 1 Oct 2019  路  33Comments  路  Source: readthedocs/readthedocs.org

Details

Is it possible to increase timeout for PlatformIO?

Support

Most helpful comment

THANK YOU SO MUCH! 馃槉

All 33 comments

Is the epub format required for your project? I think if you disable it the build could pass. https://docs.readthedocs.io/en/stable/guides/build-using-too-many-resources.html#reduce-formats-you-re-building

Hi @stsewd. I've just disabled epub but it didn't help. See https://readthedocs.org/projects/platformio/builds/9742637/

PDF is important for us. Our docs has a lot of pages, maybe this is a problem. In any case, we generate good traffic for your service. We would be happy to stay with your service.

Is it possible to increase this timeout for PlatformIO?

Under "good traffic" - I mean "embedded developers", this is a unique audience.

@ivankravets we are ok increasing the build time, but first I wan to try other options.

Do you need the htmlzip output? You can enable just the pdf output with https://docs.readthedocs.io/en/stable/config-file/v2.html#formats

formats:
    - pdf

Is it possible to configure this from "Advanced Settings" panel without creating extra YAML? I don't see this option.

@ivankravets no, that's only possible using a configuration file.

Wow! Full empty docs https://docs.platformio.org/en/latest/#

https://github.com/platformio/platformio-core/blob/develop/.readthedocs.yml

How to revert back? It seems we have huge problems now. We can't build a new version, and can't revert to old.

Screen Shot 2019-10-02 at 20 52 16

@ivankravets you are missing to set up the sphinx configuration and probably the requirements installation too, check a minimal example at the beggining https://docs.readthedocs.io/en/stable/config-file/v2.html#configuration-file-v2

We put some defaults otherwise, that may not fit your project.

I remove that config, I'm not sure that it works correctly. I also disabled all formats from WEB. Let see if it works. We have a lot of files in docs and it makes problems for your servers. We will move docs to our server.

We put some defaults otherwise, that may not fit your project.

I tried differently - it does not work :(

See initial version https://github.com/platformio/platformio-core/commit/47ba1277338182b7618e55817f2dbe5fcb1b14c5

version: 2

sphinx:
  configuration: docs/conf.py

formats:
  - pdf

Build: https://readthedocs.org/projects/platformio/builds/9744430/

@ivankravets you are missing to specify the requirements file or requirements that should be used to build your docs, and looks like you use submodules, you should include the submodules on the config file.

You can check https://docs.readthedocs.io/en/stable/config-file/v2.html#migrating-from-v1 to have an overview of what you should change, or read all the options.

How about to have default values? If a user does not specify some options, you will do the same what you do now without config.

I'm not sure that it's a good idea to write a full configuration file with Python, PIP, deps, etc. Tomorrow you change something in your config and docs again is offline. It's even better for you if we don't do this manually.

@ivankravets we have some defaults, but not all projects fit that (you can check the default value on each option). Like we don't fetch submodules by default bc not all projects require that, or we don't try to install the first requirements file that we find (this was causing a lot of problems to some users). We also don't merge the options from the web interface when using a config file, this is to have only one canonical source of settings.

Default values are good for us. Is it possible to increase timeout just for our project? Or this value is global?

@ivankravets yes, we can increase the build time for your project, but we would appreciate if you first try the other suggestions like disabling the formats that you don't need, since our resources are limited.

No, but thanks for disabling the other formats. I'll play increasing the build time now, I'll be triggering some builds on latest, please keep the changes for a minute.

Thanks! Should I close this issue?

I have increased the build time to 20 minutes (it was timing out around 14). Builds are passing now https://readthedocs.org/projects/platformio/builds/9745570/

THANK YOU SO MUCH! 馃槉

It seems that 20 minutes is not enough :(

It takes a few minutes on my machine for the full build. However, I've not tested latex. The only html.

Could we increase to 30 minutes?

This is weird, some times the build takes ~700 seconds and others +1200 seconds.

I triggered 3 consecutive builds, all of them passed. Not sure if it is going to time out in another builds.

Screenshot_2019-10-02 Builds Read the Docs

https://readthedocs.org/projects/platformio/builds/

Did you make any changes a few days ago? It has been working well for the last 3 years. Could we increase the timeout to 30min? It seems that it depends on general server loading. It's better to decrease CPU resources but increase timeout. So, builds will not fail. Thanks!

so, I found the problem.

We are testing using a new build server, looks like the I/O operations are slower than the others. I put your project out of that builder for now. I'm reporting this back to allow us to improve it.

Hi @stsewd !

Sorry, we experience this issue again :( https://readthedocs.org/projects/platformio/builds/10428325/

Thanks in advance for your help!

@ivankravets sorry for the late reply, I can see some of your builds are passing, but not consistently. I have increased the build resources for your project.

Thanks, Santos! 馃

Hi @stsewd ,

Could you help with https://readthedocs.org/projects/platformio/builds/?

We can't build docs :(

P.S: Do you have problems only with us? :(

Could you help with readthedocs.org/projects/platformio/builds?

@ivankravets I understand that build worked. Although, since there are lot of "LaTex Warnings", RTD chunked the output to be able to save it on the DB: Output is too big. Chunked at 4718592 bytes

Unfortunately, the build is reporting as FAILED, but that's not true. This is a bug, but you should see your PDF updated properly. Can you double check that?

Can you double check that?

You are right, docs is updated. Thanks, I will ignore this error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cagataycali picture cagataycali  路  4Comments

goerz picture goerz  路  4Comments

humitos picture humitos  路  3Comments

enielse picture enielse  路  4Comments

dxgldotorg picture dxgldotorg  路  3Comments