Skip to content

docs: don't fail -W builds when intersphinx inventories are unreachable - #88

Open
beykyle wants to merge 1 commit into
mainfrom
docs-intersphinx-warning
Open

docs: don't fail -W builds when intersphinx inventories are unreachable#88
beykyle wants to merge 1 commit into
mainfrom
docs-intersphinx-warning

Conversation

@beykyle

@beykyle beykyle commented Sep 4, 2026

Copy link
Copy Markdown
Owner

GitHub runners intermittently time out fetching docs.scipy.org (and friends), and Sphinx logs "failed to reach any of the inventories" without a warning type, so suppress_warnings cannot silence it and sphinx-build -W fails the whole docs build. Install a logging filter on the intersphinx logger in conf.py that drops that one message, and set intersphinx_timeout so a dead host fails fast instead of hanging.

This feels like a nasty workaround, but github runners aren't reliable so shrug

GitHub runners intermittently time out fetching docs.scipy.org (and
friends), and Sphinx logs "failed to reach any of the inventories" without
a warning type, so suppress_warnings cannot silence it and sphinx-build -W
fails the whole docs build. Install a logging filter on the intersphinx
logger in conf.py that drops that one message, and set
intersphinx_timeout so a dead host fails fast instead of hanging.

Claude-Session: https://claude.ai/code/session_014PvAXNJiHj9E9CiGeH45Pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant