Skip to content

docs: full Sphinx build hangs in typing.get_type_hints() while documenting pcapkit/const/reg #744

Description

@JarryShaw

A full-tree Sphinx build hangs indefinitely while documenting pcapkit/const/reg, on the repo venv (Python 3.14.7, Sphinx 9.1.0).

  • Confirmed CPU-bound, not a memory leak.
  • Hangs inside typing.get_type_hints(), called from autodoc.
  • Reproduces on both -b dummy and -b html.
  • Reaches ~32% of reading sources, so it is past most of the tree.

Workaround that gets a build through: -D exclude_patterns=pcapkit/const/reg.rst.

Why this matters beyond the inconvenience

It invalidates the warning-count baseline every changelog round has been measured against. #657's rounds compared against build succeeded, 53 warnings (raw grep -c 55, the two extras being the Scapy content lines use_2_bytes_asn: True and CARP overwrites VRRP !). With reg.rst excluded the same head measures 36 real / 38 raw — a different scope, so the two numbers are not comparable. Any future "no new warnings" check needs either this fixed or the exclusion applied consistently on both sides.

Not yet established

Found while running round 9 of #657. Worth knowing that gh-pages deploys from a docs build, so if this reproduces in CI the docs site is affected too — I have not checked whether the CI build hits it, since CI uses a different install path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocsPull requests that change documentation only (docs: subject prefix)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions