Trying to speed up docs build with Docker
What is the change? Why is it being made?
The ARMI docs build on GitHub is failing or hanging a lot lately. I am testing out solutions.
SCR Information
Change Type: docs
One-Sentence Description: Trying to speed up docs build One-Sentence Rationale: The doc build takes a long time, and slow CI can slow down projects.
One-line Impact on Requirements: NA
Checklist
- [x] This PR has only one purpose or idea.
- [x] Tests have been added/updated to verify any new/changed code.
- [x] The documentation is still up-to-date in the
docfolder. - [x] The code style follows good practices.
- [x] The dependencies are still up-to-date in
pyproject.toml.
Okay, I am going to do some testing. I will rerun the docs build for this PR and record the time it takes for each attempt.
- 19m 35s
- 8 min - then FAILED
- 20m 19s
- 17m 16s
- 19m 33s
- 53 m 51s
- ?
Most recent one was 53 min. Was that with the --fix-missing? This is a really sad state of affairs! What is causing this wild variation with apt-get update?!
Most recent one was 53 min. Was that with the
--fix-missing? This is a really sad state of affairs! What is causing this wild variation withapt-get update?!
Yup, this was with --fix-missing.
I mean, I guess apt-get update and apt-get install are both slow and variable. But, the ARMI docs build needs to install pandoc and some latex stuff for the PDFs. Maybe I could try to install those manually, and that would solve the issue, I don't know.