You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parallel build fails with sphinx-argparse v0.6.0 #98
Since the v0.6.0 release of sphinx-argparse, our Sphinx builds launched in parallel (-j auto) fail with the following error:
Traceback
=========
File ".../python3.12/site-packages/sphinx/util/parallel.py", line 126, in terminate
self._result_funcs.pop(tid)
KeyError: 0
This is clearly related to sphinx-argparse since the error disappears when the extension is not loaded in Sphinx.
I attach a ZIP containing a basic repo to reproduce the error: sphinx_parallel.zip
Running sphinx-build -j auto doc _build in the repo root produces the aforementioned error. Commenting the extensions = ["sphinxarg.ext"] in conf.py or using -j 1 makes the error disappear.
I opened the duplicate issue above and forgot to mention that when the tool crashes, it hangs and has to be manually cancelled (ctrl-c or CI timeout). CI log show below - check the timestamps.
2026-07-07T15:23:40.183797Z 01E Traceback
2026-07-07T15:23:40.183798Z 01E =========
2026-07-07T15:23:40.183798Z 01E
2026-07-07T15:23:40.183799Z 01E File "/builds/jbariskmanagement/code/farmmap/.venv/lib/python3.12/site-packages/sphinx/util/parallel.py", line 126, in terminate
2026-07-07T15:23:40.183800Z 01E self._result_funcs.pop(tid)
2026-07-07T15:23:40.183801Z 01E KeyError: 3
2026-07-07T15:23:40.183955Z 01E
2026-07-07T15:23:40.183999Z 01E
2026-07-07T15:23:40.187295Z 01E The full traceback has been saved in:
2026-07-07T15:23:40.187300Z 01E /tmp/sphinx-err-cw1a73xt.log
2026-07-07T15:23:40.187365Z 01E
2026-07-07T15:23:40.187367Z 01E To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
2026-07-07T15:23:40.187368Z 01E Please also report this if it was a user error, so that a better error message can be provided next time.
2026-07-07T16:22:55.041380Z 00O section_end:1783441375:step_script
2026-07-07T16:22:55.041386Z 00O+�[0K�[0;33mWARNING: step_script could not run to completion because the timeout was exceeded. For more control over job and script timeouts see: https://docs.gitlab.com/ci/runners/configure_runners/#set-script-and-after_script-timeouts�[0;m
2026-07-07T16:22:55.763048Z 00O �[31;1mERROR: Job failed: execution took longer than 1h0m0s seconds�[0;m
Should this be opened as a separate issue and if so, where?
Activity
jontwo commentedon Jul 9, 2026
I opened the duplicate issue above and forgot to mention that when the tool crashes, it hangs and has to be manually cancelled (ctrl-c or CI timeout). CI log show below - check the timestamps.
Should this be opened as a separate issue and if so, where?
build(docs): disable parallel Sphinx builds
build(docs): disable parallel Sphinx builds
Guts commentedon Jul 27, 2026
I'm facing the same issue: https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli/actions/runs/30259236103/job/89954970271. I found out that PR fixes it: #99
@RobertoRoos or @AA-Turner or any maintainer, is it possible to review it please?
fix(ci): disable sphinx parallel build since 'sphinx-argparse' is not…
fix(docs): pin sphinx-argprase to <0.6.0 waiting for parallelism fix
fix(docs): pin sphinx-argprase to <0.6.0 waiting for parallelism fix
fix(docs): pin sphinx-argparse to <0.6.0 and use Python 3.12 to fix d…
fix(docs): disable parallel build because of upstream issue (#423)
RobertoRoos commentedon Aug 19, 2026
I'm finally finding this, sorry it took to long. #99 looks good, I'll try to get it merged soon.
RobertoRoos commentedon Aug 19, 2026
@Guts I cannot find the commit belonging to your linked failing job, so I cannot check if the tip of
mainfixes the problem.Are you in a position to test our
main? Then I can confidently tag a minor release immediately.Guts commentedon Aug 19, 2026
Hello,
I van give it a tomorrow.
Guts commentedon Aug 21, 2026
I've just tested it on a local clone of https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli/:
And it works 🥳 !
RobertoRoos commentedon Aug 21, 2026
Great, thanks for letting us know. I just released
v0.6.1, I hope CI builds will now work as expected.build(docs): re-enable parallel Sphinx builds
Bump sphinx-argparse from 0.6.0 to 0.6.1 (PR #10736)
Bump sphinx-argparse from 0.6.0 to 0.6.1 (PR #10737)
chore(deps-dev): update sphinx-argparse requirement from <0.5 to <0.7 (…