Skip to content

BUG: docs build CI job is not failing on error #23821

Open
@bsipocz

Description

@bsipocz

One of the docs examples has a missing import, and correctly produces an error in the CI log, yet the overall status is a very misleading green pass.

https://app.circleci.com/pipelines/github/numpy/numpy/19500/workflows/f8df500a-7943-4420-a3e7-bcee6f1b4b92/jobs/31883

reading sources... [100%] user/basics.io.genfromtxt .. user/whatisnumpy

/home/circleci/repo/venv/lib/python3.9/site-packages/numpy/__init__.py:docstring of numpy.bartlett:78: WARNING: Exception occurred in plotting numpy-bartlett-1
 from /home/circleci/repo/doc/source/reference/generated/numpy.bartlett.rst:
Traceback (most recent call last):
  File "/home/circleci/repo/venv/lib/python3.9/site-packages/matplotlib/sphinxext/plot_directive.py", line 481, in _run_code
    exec(code, ns)
  File "<string>", line 3, in <module>
NameError: name 'plt' is not defined
/home/circleci/repo/venv/lib/python3.9/site-packages/numpy/__init__.py:docstring of numpy.blackman:70: WARNING: Exception occurred in plotting numpy-blackman-1
 from /home/circleci/repo/doc/source/reference/generated/numpy.blackman.rst:
Traceback (most recent call last):
  File "/home/circleci/repo/venv/lib/python3.9/site-packages/matplotlib/sphinxext/plot_directive.py", line 481, in _run_code
    exec(code, ns)
  File "<string>", line 3, in <module>
NameError: name 'plt' is not defined
/home/circleci/repo/doc/source/dev/depending_on_numpy.rst:: ERROR: Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
/home/circleci/repo/venv/lib/python3.9/site-packages/numpy/__init__.py:docstring of numpy.kaiser:100: WARNING: Exception occurred in plotting numpy-kaiser-1
 from /home/circleci/repo/doc/source/reference/generated/numpy.kaiser.rst:
Traceback (most recent call last):
  File "/home/circleci/repo/venv/lib/python3.9/site-packages/matplotlib/sphinxext/plot_directive.py", line 481, in _run_code
    exec(code, ns)
  File "<string>", line 3, in <module>
NameError: name 'plt' is not defined
looking for now-outdated files... none found
pickling environment... done

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions