-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make parallel documentation builds threadsafe #11009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jacobtomlinson
wants to merge
10
commits into
pydata:main
Choose a base branch
from
jacobtomlinson:doc/threadsafe-docs-builds
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Make parallel documentation builds threadsafe #11009
jacobtomlinson
wants to merge
10
commits into
pydata:main
from
jacobtomlinson:doc/threadsafe-docs-builds
+255
−102
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for more information, see https://pre-commit.ci
Contributor
Author
|
Hmm collision happened in CI, must've missed one. Will pick this up next week. |
…n/xarray into doc/threadsafe-docs-builds
Closed
Contributor
Author
|
Ok, I think that's all of them. I've run the This is ready for review @max-sixty @dcherian |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow on to #11003
This PR attempts to make multiple concurrent docs builds threadsafe. The main problem is that some jupyter-execute sections create, read and delete files. When run concurrently there can be collisions.
To resolve this I added some hidden cells which ensure files are created in unique tempdirs. This also has the added benefit of not littering your workdir with these files in the case of a docs build failure.
I also enabled parallel builds in
sphinx-llmagain because there should be no more collisions.I've run the build multiple times locally and have not observed a collision so hopefully I got them all.