|
@@ -0,0 +1,33 @@
|
|
|
+# HG changeset patch
|
|
|
+# User Frank-Rainer Grahl <frgrahl@gmx.net>
|
|
|
+# Date 1683404738 -7200
|
|
|
+# Parent ca770a49d132884d09eacf5ff496e2c33e1a889b
|
|
|
+No Bug - Remove glean lint for now.
|
|
|
+
|
|
|
+Temporary fix. Not for resale and checkin.
|
|
|
+
|
|
|
+diff --git a/toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py b/toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py
|
|
|
+--- a/toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py
|
|
|
++++ b/toolkit/components/glean/build_scripts/glean_parser_ext/run_glean_parser.py
|
|
|
+@@ -70,21 +70,16 @@ def parse(args):
|
|
|
+
|
|
|
+ return parse_with_options(input_files, options)
|
|
|
+
|
|
|
+
|
|
|
+ def parse_with_options(input_files, options):
|
|
|
+ # Derived heavily from glean_parser.translate.translate.
|
|
|
+ # Adapted to how mozbuild sends us a fd, and to expire on versions not dates.
|
|
|
+
|
|
|
+- # Lint the yaml first, then lint the metrics.
|
|
|
+- if lint.lint_yaml_files(input_files, parser_config=options):
|
|
|
+- # Warnings are Errors
|
|
|
+- raise ParserError("linter found problems")
|
|
|
+-
|
|
|
+ all_objs = parser.parse_objects(input_files, options)
|
|
|
+ if util.report_validation_errors(all_objs):
|
|
|
+ raise ParserError("found validation errors during parse")
|
|
|
+
|
|
|
+ nits = lint.lint_metrics(all_objs.value, options)
|
|
|
+ if nits is not None and any(nit.check_name != "EXPIRED" for nit in nits):
|
|
|
+ # Treat Warnings as Errors in FOG.
|
|
|
+ # But don't fail the whole build on expired metrics (it blocks testing).
|