Builds: isolated builders (development environment)#311
Conversation
Small changes to use `readthedocs-builder` repository to isolate builds.
| # mount as populated and skips ``git clone`` so you can iterate | ||
| # on the runner / worker code by editing on the host and | ||
| # restarting the container. | ||
| - ${PWD}/${RTDDEV_PATH_BUILDER:-../readthedocs-builder}:/opt/readthedocs-builder |
There was a problem hiding this comment.
This seems not super consistent, why the different path in /opt/ here? We're using /usr/src/app/ for the app, why not /usr/src/builder/?
| # The entrypoint script itself, bind-mounted so edits don't | ||
| # need a rebuild (matches how celery.sh / build.sh wire up). |
There was a problem hiding this comment.
How is this different from the normal pattern used in other services in this file?
Speaking generally on what I assume llm generated code, I think this is a case of overly verbose commenting from the llm. I'm noticing similar in a lot of output. Having a lot of comments to wade through actually makes it more confusing and harder work to process. We don't note these things anywhere else in the file, so I need to read through all these comments to figure out what is actually important and different from the rest of the file.
| # Runner venv + managed Python install: host-daemon-recognized | ||
| # names of the named volumes defined at the top of this file. | ||
| # Compose prefixes volume names with the project (``community`` | ||
| # for the default community-edition project). The worker passes | ||
| # these as ``-v <name>:<path>:ro`` and the daemon resolves them | ||
| # as named-volume mounts. | ||
| - RTD_HOST_RUNNER_VENV_PATH=community_runner-venv | ||
| - RTD_HOST_PYTHON_INSTALL_PATH=community_uv-python |
There was a problem hiding this comment.
The comment here isn't super clear. If these are volumes, then why are they referred to as paths? Shouldn't this be:
| # Runner venv + managed Python install: host-daemon-recognized | |
| # names of the named volumes defined at the top of this file. | |
| # Compose prefixes volume names with the project (``community`` | |
| # for the default community-edition project). The worker passes | |
| # these as ``-v <name>:<path>:ro`` and the daemon resolves them | |
| # as named-volume mounts. | |
| - RTD_HOST_RUNNER_VENV_PATH=community_runner-venv | |
| - RTD_HOST_PYTHON_INSTALL_PATH=community_uv-python | |
| # Runner venv + managed Python install: host-daemon-recognized | |
| # names of the named volumes defined at the top of this file. | |
| # Compose prefixes volume names with the project (``community`` | |
| # for the default community-edition project). The worker passes | |
| # these as ``-v <name>:<path>:ro`` and the daemon resolves them | |
| # as named-volume mounts. | |
| - RTD_HOST_RUNNER_VENV_VOLUME=community_runner-venv | |
| - RTD_HOST_PYTHON_INSTALL_VOLUME=community_uv-python |
Required by: readthedocs/readthedocs.org#13133