diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /tools/lint/perfdocs | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/lint/perfdocs')
-rw-r--r-- | tools/lint/perfdocs/framework_gatherers.py | 19 |
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}**: " |