Allow suppressing unmatched toctree glob warnings - #14626
Open
exhuma wants to merge 3 commits into
Open
Conversation
This fixed an issue that prevented these log-messages from being suppressed via `suppress_warnings`. Fixes sphinx-doc#14625
Author
|
I saw that the CI fails but on my local machine there are no issues. The output is a bit verbose and couldn't spot the tests in question. Not sure if that's from the skipped tests on my local machine or something from the environment. Here's my test-output: |
jdillard
reviewed
Aug 20, 2026
jdillard
left a comment
Member
There was a problem hiding this comment.
An example of the warning output, since I didn't see it posted anywhere:
index.rst:7: WARNING: toctree glob pattern 'modules/*' didn't match any documents [toc.empty_glob]
jdillard
reviewed
Aug 20, 2026
jdillard
requested changes
Aug 20, 2026
Author
|
@jdillard The branch now contains a couple of commits, due to the styling fixes. Would you like me to squash them and force-push the branch? It would keep the history cleaner. |
Member
|
No its fine, everything gets squashed at merge |
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
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.
This fixed an issue that prevented these log-messages from being suppressed via
suppress_warnings.Fixes #14625
Purpose
Currently, "empty-glob" warnings cannot be suppressed. This blocks us from using the "--fail-on-warning" option while also having "placeholder" glob-entries for future documents.
References
See #14625
AI Disclosure
The changes have been made manually (100% human) but AI helped to discover the bug. OpenCode with GPT5.5-Terra was used to pinpoint the root-cause. The code edit, bug-report and PR were all made by hand.