summaryrefslogtreecommitdiffstats
path: root/tools/lint/perfdocs/framework_gatherers.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/lint/perfdocs/framework_gatherers.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/lint/perfdocs/framework_gatherers.py b/tools/lint/perfdocs/framework_gatherers.py
index 75a6371731..3c0a4026d9 100644
--- a/tools/lint/perfdocs/framework_gatherers.py
+++ b/tools/lint/perfdocs/framework_gatherers.py
@@ -167,7 +167,7 @@ class RaptorGatherer(FrameworkGatherer):
:return list: the list of the tests
"""
desc_exclusion = ["here", "manifest_relpath", "path", "relpath"]
- test_manifest = TestManifest([str(manifest_path)], strict=False)
+ test_manifest = TestManifest([str(manifest_path)], strict=False, document=True)
test_list = test_manifest.active_tests(exists=False, disabled=False)
subtests = {}
for subtest in test_list:
@@ -178,6 +178,20 @@ class RaptorGatherer(FrameworkGatherer):
if key not in desc_exclusion:
description[key] = value
+ # Add searchfox link
+ key = list(test_manifest.source_documents.keys())[0]
+
+ if (
+ test_manifest.source_documents[key]
+ and subtest["name"] in test_manifest.source_documents[key].keys()
+ ):
+ description["link searchfox"] = (
+ "https://searchfox.org/mozilla-central/source/"
+ + manifest_path
+ + "#"
+ + test_manifest.source_documents[key][subtest["name"]]["lineno"]
+ )
+
# Prepare alerting metrics for verification
description["metrics"] = [
metric.strip()
@@ -226,7 +240,6 @@ class RaptorGatherer(FrameworkGatherer):
browsers = [
"firefox",
"chrome",
- "chromium",
"refbrow",
"fennec68",
"geckoview",
@@ -272,6 +285,8 @@ class RaptorGatherer(FrameworkGatherer):
result += f" * **{sub_title}**: `<{description[key]}>`__\n"
elif key == "secondary_url":
result += f" * **{sub_title}**: `<{description[key]}>`__\n"
+ elif key == "link searchfox":
+ result += f" * **{sub_title}**: `<{description[key]}>`__\n"
elif key in ["playback_pageset_manifest"]:
result += (
f" * **{sub_title}**: "