Bug 1916093 - When generating docs, treat critical errors the same as errors. r=sylvestre,perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D220764
This commit is contained in:
Mark Banner
2024-09-03 18:48:45 +00:00
parent 1487b3053f
commit 6f6290c5aa
3 changed files with 6 additions and 5 deletions

View File

@@ -139,5 +139,6 @@ allowed_errors:
# Bug 1915274 - General issues in nss docs.
- "security/nss/releases/nss_3_90\\.rst.* ERROR: Content block expected for the \"container\" directive"
- "security/nss/releases/nss_3_94\\.rst.* ERROR: Unknown target name:"
- "security/nss/getting_started\\.rst.* CRITICAL: Unexpected section title"
max_num_warnings: 837

View File

@@ -377,13 +377,13 @@ Extra Talos Tests
:local:
File IO
-------
=======
File IO is tested using the tp5 test set in the `xperf`_
test.
Possible regression causes
~~~~~~~~~~~~~~~~~~~~~~~~~~
--------------------------
- **nonmain_startup_fileio opt (with or without e10s) windows7-32**
`bug
@@ -397,7 +397,7 @@ Possible regression causes
`e10s <https://treeherder.mozilla.org/perf.html#/graphs?series=%5B%22mozilla-central%22,%222f3af3833d55ff371ecf01c41aeee1939ef3a782%22,1,1%5D&series=%5B%22try%22,%222f3af3833d55ff371ecf01c41aeee1939ef3a782%22,1,1%5D&timerange=604800>`__
Xres (X Resource Monitoring)
----------------------------
============================
A memory metric tracked during tp5 test runs. This metric is sampled
every 20 seconds. This metric is collected on linux only.
@@ -405,7 +405,7 @@ every 20 seconds. This metric is collected on linux only.
`xres man page <https://linux.die.net/man/3/xres>`__.
% CPU
-----
=====
Cpu usage tracked during tp5 test runs. This metric is sampled every 20
seconds. This metric is collected on windows only.

View File

@@ -357,7 +357,7 @@ def _check_sphinx_errors(warnings, docs_config):
allowed_errors_regex = [re.compile(item) for item in docs_config["allowed_errors"]]
errors = []
for warning in warnings:
if "ERROR" in warning:
if warning in ["ERROR", "CRITICAL"]:
if not (any(item.search(warning) for item in allowed_errors_regex)):
errors.append(warning)
return errors