commit 579ce62c4988fb677ebd174f702104cdcc8dd6c8
parent 08dc28102939c36fc773018ec27918e2d8b7459a
Author: Julien Cristau <jcristau@mozilla.com>
Date: Thu, 23 Oct 2025 11:52:01 +0000
Bug 1995853 - format .buildconfig.yml lint errors so treeherder can display them. r=aryx,RyanVM DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D269728
Diffstat:
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/taskcluster/scripts/lint/is_buildconfig_yml_up_to_date.py b/taskcluster/scripts/lint/is_buildconfig_yml_up_to_date.py
@@ -20,6 +20,14 @@ BUILDCONFIG_FILE_NAME = ".buildconfig.yml"
logger = logging.getLogger(__name__)
+def _buildconfig_files_changed():
+ cmd = ["hg", "status", "-I", "**/.buildconfig.yml", "-m"]
+ p = subprocess.run(cmd, capture_output=True, text=True, check=True)
+ for line in p.stdout.splitlines():
+ _, path = line.strip().split(None, 1)
+ yield path
+
+
def _buildconfig_files_diff():
cmd = [
"hg",
@@ -27,7 +35,7 @@ def _buildconfig_files_diff():
"-I",
"**/.buildconfig.yml",
]
- p = subprocess.run(cmd, capture_output=True, text=True)
+ p = subprocess.run(cmd, capture_output=True, text=True, check=True)
return p.stdout
@@ -44,6 +52,8 @@ curl --location --compressed {artifact_url} | git apply
Then commit and push!
"""
logger.error(message)
+ for file in _buildconfig_files_changed():
+ logger.error(f"TEST-UNEXPECTED-FAIL | {file} | build config changed")
def _execute_local_steps():