Skip to content

Parallel docs build improvements

Antonin Godard yocto-docs 1 version In review

Get series with b4
b4 am [email protected] change-id 20251218-concurrent-safety-e3a1a2394064

Versions newest first

  1. v1 Latest8 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tools/build-docs-container: guarantee the image to run matches the just-built imagedocumentation/tools/build-docs-container+10 -60 replies
2/8Makefile: allow to specify build directorydocumentation/Makefile+1 -10 replies
3/8tools/build-docs-container: build in separate directory for each distrodocumentation/tools/build-docs-container+2 -00 replies
4/8tools/build-docs-container: create symlink to latest build outputdocumentation/tools/build-docs-container+4 -01 reply
5/8Makefile: wrap set_versions.py with flockdocumentation/.gitignore documentation/Makefile+5 -41 reply
6/8tools/build-docs-container: allow running non-interactivelydocumentation/tools/build-docs-container+11 -21 reply
7/8tools/build-docs-container: allow passing extra args to $OCI rundocumentation/tools/build-docs-container+6 -01 reply
8/8tools/build-docs-container: make it possible to print the distro listdocumentation/tools/build-docs-container+32 -171 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchQuentin Schulz
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] Parallel docs build improvements

The aim of this series is to take the work of Quentin[1] and with additional commit that improve the concurrent safety of the docs build, and some general improvements to the build-docs-container script.

This allows building the docs on all supported distros with this bash snippet:

```
declare -a distros=( $(./documentation/tools/build-docs-container supported_distros) )

for distro in "${distros[@]}"; do
  ./documentation/tools/build-docs-container $distro "$target" >/tmp/docs-build-"$distro".log 2>&1 &
done

wait
```

---
Antonin Godard (6):
tools/build-docs-container: build in separate directory for each distro tools/build-docs-container: create symlink to latest build output
Makefile: wrap set_versions.py with flock tools/build-docs-container: allow running non-interactively tools/build-docs-container: allow passing extra args to $OCI run tools/build-docs-container: make it possible to print the distro list

Quentin Schulz (2):
tools/build-docs-container: guarantee the image to run matches the just-built image
Makefile: allow to specify build directory

 documentation/.gitignore                 |  1 +
 documentation/Makefile                   | 10 ++--
 documentation/tools/build-docs-container | 90 +++++++++++++++++++++++---------
 3 files changed, 71 insertions(+), 30 deletions(-)

---
base-commit: f9042e1da554017fe46460c1fd2bdf8c74b3fa18
change-id: 20251218-concurrent-safety-e3a1a2394064