armi icon indicating copy to clipboard operation
armi copied to clipboard

Trying to speed up docs build with Docker

Open john-science opened this issue 4 months ago • 3 comments

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 doc folder.
  • [x] The code style follows good practices.
  • [x] The dependencies are still up-to-date in pyproject.toml.

john-science avatar Aug 27 '25 20:08 john-science

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.

  1. 19m 35s
  2. 8 min - then FAILED
  3. 20m 19s
  4. 17m 16s
  5. 19m 33s
  6. 53 m 51s
  7. ?

john-science avatar Aug 27 '25 21:08 john-science

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?!

opotowsky avatar Aug 28 '25 02:08 opotowsky

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?!

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.

john-science avatar Aug 28 '25 15:08 john-science