-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[BUG] redirect-from sphinx extension is not parallel safe #24058
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
Comments
We should probably figure out why we get the error Also note that since we introduced this mechanism, I think there is a proper package that does this. Whether they handle parallel better or not I'm not sure. Finally, we don't host on GitPages any longer and could do this with .htaccess now if we chose (I think). |
It may be that our redirect directive is not thread-safe. Maybe we have to revert #19686 instead. - Either way, we definitively want parallelism for speed, and need to find a different solution. |
Please accept my apology. I included the same redirect in two different files. This error didn't show up for non-parallel builds: the second redirect just overwrites the first one. I fixed this mistake and the docs build in parallel without errors. |
I'll reopen because the error hit again in a recent CI run. I rename the issue to state the problem. Simply not building in parallel cannot be a solution because of the performance impact. The error seems rare enough so that the best temporary solution is continuing as is and restarting Circle CI when the error hits. Mid-term, we should either make |
Do we understand why this directive would not be parallel safe? |
What was the error in that recent run? I think that the original error is not related to parallel execution, but just re-thrown as a |
In the recent run, the error was exactly the same as above. The error is thrown from here matplotlib/doc/sphinxext/redirect_from.py Lines 92 to 103 in 2e64a9e
which should only be run once per
|
Btw. it just hit again in a run of #24769: |
Summary
CI builds the docs in parallel since #20718.
This doesn't work correctly with redirects: in #24054 it raises
(see also #21876)
Proposed fix
Revert afef2e6.
The text was updated successfully, but these errors were encountered: