Skip to content

Commit d51d879

Browse files
committed
Remove skip metric hacks
Fixes #697
1 parent d3400fe commit d51d879

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

probe_scraper/glean_checks.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616

1717
from .scrapers.git_scraper import Commit
1818

19-
# Ugly hack to skip certain metrics which we know aren't duplicated,
20-
# but show up duplicated due to them being moved from one
21-
# to the other application/library.
22-
SKIP_METRICS = {
23-
"gecko.version": ["gecko", "pine", "firefox-desktop"],
24-
"gecko.build_id": ["gecko", "pine", "firefox-desktop"],
25-
}
26-
2719

2820
def _metric_sort_key(metric: Dict[str, Any]):
2921
return (
@@ -151,11 +143,6 @@ def check_for_duplicate_metrics(repositories, metrics_by_repo, emails):
151143
# avoid false positive duplication accross app channels.
152144
v = [dep for dep in v if "engine-gecko" not in dep]
153145

154-
if k in SKIP_METRICS.keys():
155-
potential_deps = SKIP_METRICS[k]
156-
if any([dep for dep in potential_deps if dep in v]):
157-
continue
158-
159146
if len(v) > 1:
160147
duplicate_sources[k] = v
161148

0 commit comments

Comments
 (0)