Bug: Perma documenation ./mach doc | Error: 7 new warnings have been introduced compared to the limit in docs/config.yml
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-08-12 17:57:45+00:00
Resolved: 2024-09-02 06:35:19+00:00

**Filed by:** ctuns [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=470151631&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bWQscThDQ9KztZZhWGQCqQ/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/docs-out/html/_staging/performance/memory/dominators.md:1: WARNING: duplicate label dominators, other instance in /builds/worker/checkouts/gecko/docs-out/html/_staging/devtools-user/memory/dominators/index.rst
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/docs-out/html/_staging/performance/memory/dominators_view.md:1: WARNING: duplicate label dominators view, other instance in /builds/worker/checkouts/gecko/docs-out/html/_staging/devtools-user/memory/dominators_view/index.rst
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/docs-out/html/_staging/performance/memory/tree_map_view.md:1: WARNING: duplicate label tree map view, other instance in /builds/worker/checkouts/gecko/docs-out/html/_staging/devtools-user/memory/tree_map_view/index.rst
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'commandinfo' from module 'mach.commands'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] No module named 'mach.commands.commandinfo'; 'mach.commands' is not a package
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'settings' from module 'mach.commands'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] No module named 'mach.commands.settings'; 'mach.commands' is not a package
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'invoke_mach_command' from module 'mach.test'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] Traceback (most recent call last):
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 143, in import_module
[task 2024-08-12T17:19:17.712Z]     return importlib.import_module(modname)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[task 2024-08-12T17:19:17.712Z]     return _bootstrap._gcd_import(name[level:], package, level)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/test/invoke_mach_command.py", line 4, in <module>
[task 2024-08-12T17:19:17.712Z]     subprocess.check_call([sys.executable] + sys.argv[1:])
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/subprocess.py", line 413, in check_call
[task 2024-08-12T17:19:17.712Z]     raise CalledProcessError(retcode, cmd)
[task 2024-08-12T17:19:17.712Z] subprocess.CalledProcessError: Command '['/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/bin/python', 'doc', '--outdir', 'docs-out', '--no-open', '--no-serve', '--archive', '--fatal-warnings', '--check-num-warnings', '--dump-trees=/builds/worker/artifacts/trees.json']' returned non-zero exit status 2.
[task 2024-08-12T17:19:17.712Z] 
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'zero_microseconds' from module 'mach.test'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] Traceback (most recent call last):
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 143, in import_module
[task 2024-08-12T17:19:17.712Z]     return importlib.import_module(modname)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[task 2024-08-12T17:19:17.712Z]     return _bootstrap._gcd_import(name[level:], package, level)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/test/zero_microseconds.py", line 7, in <module>
[task 2024-08-12T17:19:17.712Z]     old = self._mach_context.post_dispatch_handler
[task 2024-08-12T17:19:17.712Z]           ^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z] AttributeError: 'NoneType' object has no attribute '_mach_context'
[task 2024-08-12T17:19:17.712Z] 
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'conditions_invalid' from module 'mach.test.providers'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] Traceback (most recent call last):
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 143, in import_module
[task 2024-08-12T17:19:17.712Z]     return importlib.import_module(modname)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[task 2024-08-12T17:19:17.712Z]     return _bootstrap._gcd_import(name[level:], package, level)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/test/providers/conditions_invalid.py", line 8, in <module>
[task 2024-08-12T17:19:17.712Z]     @Command("cmd_foo", category="testing", conditions=["invalid"])
[task 2024-08-12T17:19:17.712Z]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/decorators.py", line 196, in __call__
[task 2024-08-12T17:19:17.712Z]     func._mach_command.register(func)
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mach/mach/decorators.py", line 142, in register
[task 2024-08-12T17:19:17.712Z]     raise MachError(msg)
[task 2024-08-12T17:19:17.712Z] mach.base.MachError: Mach command 'cmd_foo' implemented incorrectly. Conditions argument must take a list of functions. Found <class 'str'> instead.
[task 2024-08-12T17:19:17.712Z] 
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/testing/marionette/client/marionette_driver/marionette.py:docstring of marionette_driver.marionette.Marionette.start_session:11: WARNING: Field list ends without a blank line; unexpected unindent.
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'processhandler' from module 'marionette_driver'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] No module named 'psutil'
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'doctor' from module 'mozbuild'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] No module named 'psutil'
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/mozconfig.py:docstring of mozbuild.mozconfig.MozconfigLoader:1: WARNING: duplicate object description of mozbuild.mozconfig.MozconfigLoader, other instance in build/buildsystem/mozconfigs, use :no-index: for one of them
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/mozconfig.py:docstring of mozbuild.mozconfig.MozconfigLoader.read_mozconfig:1: WARNING: duplicate object description of mozbuild.mozconfig.MozconfigLoader.read_mozconfig, other instance in build/buildsystem/mozconfigs, use :no-index: for one of them
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'check_binary' from module 'mozbuild.action'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] Traceback (most recent call last):
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 143, in import_module
[task 2024-08-12T17:19:17.712Z]     return importlib.import_module(modname)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[task 2024-08-12T17:19:17.712Z]     return _bootstrap._gcd_import(name[level:], package, level)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/action/check_binary.py", line 22, in <module>
[task 2024-08-12T17:19:17.712Z]     PLATFORM = buildconfig.substs["OS_TARGET"]
[task 2024-08-12T17:19:17.712Z]                ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/backend/configenvironment.py", line 276, in __getitem__
[task 2024-08-12T17:19:17.712Z]     raise KeyError("'%s'" % key)
[task 2024-08-12T17:19:17.712Z] KeyError: "'OS_TARGET'"
[task 2024-08-12T17:19:17.712Z] 
[task 2024-08-12T17:19:17.712Z] /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/action/process_define_files.py:docstring of mozbuild.action.process_define_files.process_define_file:8: WARNING: Inline emphasis start-string without end-string.
[task 2024-08-12T17:19:17.712Z] WARNING: autodoc: failed to import module 'test_archive' from module 'mozbuild.action'; the following exception was raised:
[task 2024-08-12T17:19:17.712Z] Traceback (most recent call last):
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/docs/lib/python3.11/site-packages/sphinx/ext/autodoc/importer.py", line 143, in import_module
[task 2024-08-12T17:19:17.712Z]     return importlib.import_module(modname)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/fetches/python/lib/python3.11/importlib/__init__.py", line 126, in import_module
[task 2024-08-12T17:19:17.712Z]     return _bootstrap._gcd_import(name[level:], package, level)
[task 2024-08-12T17:19:17.712Z]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
[task 2024-08-12T17:19:17.712Z]   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/action/test_archive.py", line 189, in <module>
[task 2024-08-12T17:19:17.712Z]     "patterns": [
[task 2024-08-12T17:19:17.712Z]                 ^
[task 2024-08-12T17:19:17.712Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/action/test_archive.py", line 190, in <listcomp>
[task 2024-08-12T17:19:17.712Z]     "%s%s" % (f, buildconfig.substs["BIN_SUFFIX"])
[task 2024-08-12T17:19:17.713Z]                  ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
[task 2024-08-12T17:19:17.713Z]   File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/backend/configenvironment.py", line 276, in __getitem__
[task 2024-08-12T17:19:17.713Z]     raise KeyError("'%s'" % key)
[task 2024-08-12T17:19:17.713Z] KeyError: "'BIN_SUFFIX'"
[task 2024-08-12T17:19:17.713Z] 
[task 2024-08-12T17:19:17.713Z] WARNING: invalid signature for automodule ('mozbuild.action.xpidl-process')
[task 2024-08-12T17:19:17.713Z] WARNING: don't know which module to import for autodocumenting 'mozbuild.action.xpidl-process' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)
[task 2024-08-12T17:19:17.713Z] /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/backend/configenvironment.py:docstring of mozbuild.backend.configenvironment.ConfigEnvironment:17: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/context.py:docstring of mozbuild.frontend.context.Path:5: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] WARNING: autodoc: failed to import module 'snap' from module 'mozbuild.repackaging'; the following exception was raised:
[task 2024-08-12T17:19:17.713Z] No module named 'fluent.runtime'
[task 2024-08-12T17:19:17.713Z] WARNING: autodoc: failed to import module 'snapcraft_transform' from module 'mozbuild.repackaging'; the following exception was raised:
[task 2024-08-12T17:19:17.713Z] No module named 'fluent.runtime'
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:89: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:107: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:109: WARNING: Inline emphasis start-string without end-string.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:119: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:122: WARNING: Inline emphasis start-string without end-string.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:128: ERROR: Unexpected indentation.
[task 2024-08-12T17:19:17.713Z] docstring of mozbuild.vendor.moz_yaml.VALID_SOURCE_HOSTS:132: WARNING: Inline emphasis start-string without end-string.
<...>
[task 2024-08-12T17:19:50.877Z] copying images... [ 99%] tools/try/img/treeherder-trigger-symbols.png
[task 2024-08-12T17:19:50.877Z] copying images... [ 99%] tools/try/img/phab-treeherder-link.png
[task 2024-08-12T17:19:50.877Z] copying images... [ 99%] tools/try/img/add-new-jobs.png
[task 2024-08-12T17:19:50.878Z] copying images... [ 99%] tools/try/selectors/fzf.png
[task 2024-08-12T17:19:50.878Z] copying images... [ 99%] widget/windows/windows-pointing-device/touchscreen.jpg
[task 2024-08-12T17:19:50.878Z] copying images... [ 99%] widget/windows/windows-pointing-device/wacom_tablet.png
[task 2024-08-12T17:19:50.879Z] copying images... [ 99%] widget/windows/windows-pointing-device/trackpoint.jpg
[task 2024-08-12T17:19:50.879Z] copying images... [100%] widget/windows/windows-pointing-device/touchpad.jpg
[task 2024-08-12T17:19:50.880Z] copying images... [100%] widget/windows/windows-pointing-device/vrcontroller.jpg
[task 2024-08-12T17:19:50.880Z] copying images... [100%] widget/windows/windows-pointing-device/apple_vision.jpg
[task 2024-08-12T17:19:50.880Z] copying images... [100%] widget/windows/windows-pointing-device/mouse.jpg
[task 2024-08-12T17:19:50.881Z] copying images... [100%] widget/windows/windows-pointing-device/touch_media_queries.png
[task 2024-08-12T17:19:50.881Z] 
[task 2024-08-12T17:19:51.835Z] dumping search index in English (code: en)... done
[task 2024-08-12T17:19:51.938Z] dumping object inventory... done
[task 2024-08-12T17:19:51.938Z] build succeeded, 904 warnings.
[task 2024-08-12T17:19:51.938Z] 
[task 2024-08-12T17:19:51.938Z] The HTML pages are in docs-out/html.
[task 2024-08-12T17:19:51.955Z] TEST-UNEXPECTED-FAILURE | ./mach doc | Error: 8 new warnings have been introduced compared to the limit in docs/config.yml
[task 2024-08-12T17:19:51.961Z] 
[task 2024-08-12T17:19:51.961Z] Generated documentation:
[task 2024-08-12T17:19:51.961Z] docs-out/html
[task 2024-08-12T17:19:51.961Z] Logged 853 warnings
[task 2024-08-12T17:19:51.961Z] 
[taskcluster 2024-08-12 17:20:01.199Z] === Task Finished ===
[taskcluster 2024-08-12 17:20:01.226Z] Artifact "public/docs.tar.gz" not found at "/builds/worker/checkouts/gecko/docs-out/main.tar.gz": (HTTP code 404) no such container - Could not find the file /builds/worker/checkouts/gecko/docs-out/main.tar.gz in container cc7621b3b969298abe753268dfd11b2fc6c760d0705302f32d80a9d26871150b 
[taskcluster 2024-08-12 17:20:01.229Z] Artifact "public/trees.json" not found at "/builds/worker/artifacts/trees.json": (HTTP code 404) no such container - Could not find the file /builds/worker/artifacts/trees.json in container cc7621b3b969298abe753268dfd11b2fc6c760d0705302f32d80a9d26871150b 
[taskcluster 2024-08-12 17:20:01.256Z] Unsuccessful task run with exit code: 1 completed in 338.514 seconds
```