Bug 1959139 - Ensure platform-specific tags aren't missing in update-glean-tags r=TravisLong
Also run ./mach update-glean-tags while we're at it. Differential Revision: https://phabricator.services.mozilla.com/D247480
This commit is contained in:
committed by
chutten@mozilla.com
parent
b567809b88
commit
90458be307
@@ -17,6 +17,16 @@ GENERATED_HEADER = """
|
|||||||
### DO NOT edit it by hand.
|
### DO NOT edit it by hand.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# A list of bug components only present in certain build configurations.
|
||||||
|
# Include any valid BMO bug component that is missed when you run
|
||||||
|
# `./mach update-glean-tags` on certain platforms.
|
||||||
|
PLATFORM_SPECIFIC_COMPONENTS = [
|
||||||
|
"Toolkit :: Default Browser Agent", # Windows-only
|
||||||
|
]
|
||||||
|
|
||||||
|
DEFAULT_TAG_CONTENT = {
|
||||||
|
"description": "The Bugzilla component which applies to this object."
|
||||||
|
}
|
||||||
|
|
||||||
DATA_REVIEW_HELP = """
|
DATA_REVIEW_HELP = """
|
||||||
Beginning 2024-05-07[1], data reviews for projects in mozilla-central are now
|
Beginning 2024-05-07[1], data reviews for projects in mozilla-central are now
|
||||||
@@ -84,9 +94,14 @@ def update_glean_tags(command_context):
|
|||||||
for bug_component in bug_components:
|
for bug_component in bug_components:
|
||||||
product = bug_component.product.strip()
|
product = bug_component.product.strip()
|
||||||
component = bug_component.component.strip()
|
component = bug_component.component.strip()
|
||||||
tags[f"{product} :: {component}"] = {
|
tags[f"{product} :: {component}"] = DEFAULT_TAG_CONTENT
|
||||||
"description": "The Bugzilla component which applies to this object."
|
|
||||||
}
|
for bug_component in PLATFORM_SPECIFIC_COMPONENTS:
|
||||||
|
tags[bug_component] = DEFAULT_TAG_CONTENT
|
||||||
|
|
||||||
|
# pyyaml will anchor+alias DEFAULT_TAG_CONTENT which would normally be fine,
|
||||||
|
# but I don't want the whole file to change all at once right now.
|
||||||
|
yaml.Dumper.ignore_aliases = lambda self, data: True
|
||||||
|
|
||||||
open(tags_filename, "w").write(
|
open(tags_filename, "w").write(
|
||||||
f"{LICENSE_HEADER}\n{GENERATED_HEADER}\n\n"
|
f"{LICENSE_HEADER}\n{GENERATED_HEADER}\n\n"
|
||||||
|
|||||||
@@ -329,6 +329,8 @@ $schema: moz://mozilla.org/schemas/glean/tags/1-0-0
|
|||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: Bookmarks & History':
|
'Firefox :: Bookmarks & History':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
|
'Firefox :: Data Loss Prevention':
|
||||||
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: Distributions':
|
'Firefox :: Distributions':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: Downloads Panel':
|
'Firefox :: Downloads Panel':
|
||||||
@@ -407,8 +409,6 @@ $schema: moz://mozilla.org/schemas/glean/tags/1-0-0
|
|||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: Tours':
|
'Firefox :: Tours':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: Translation':
|
|
||||||
description: The Bugzilla component which applies to this object.
|
|
||||||
'Firefox :: Translations':
|
'Firefox :: Translations':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Firefox :: about:logins':
|
'Firefox :: about:logins':
|
||||||
@@ -519,8 +519,6 @@ $schema: moz://mozilla.org/schemas/glean/tags/1-0-0
|
|||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Toolkit :: General':
|
'Toolkit :: General':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Toolkit :: IOUtils and PathUtils':
|
|
||||||
description: The Bugzilla component which applies to this object.
|
|
||||||
'Toolkit :: Password Manager':
|
'Toolkit :: Password Manager':
|
||||||
description: The Bugzilla component which applies to this object.
|
description: The Bugzilla component which applies to this object.
|
||||||
'Toolkit :: Performance Monitoring':
|
'Toolkit :: Performance Monitoring':
|
||||||
|
|||||||
Reference in New Issue
Block a user