From 5e9055bd8af955d041594e1ff10563a9a0e4ab31 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 28 Jul 2023 13:22:52 -0600 Subject: [PATCH] task.ansible.FailureAnalyzer: Sort failure items To reduce unecessary duplication in e.g. Sentry. Signed-off-by: Zack Cerza --- teuthology/task/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index ea0f9c594..a65a983f6 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -47,7 +47,7 @@ def analyze(self, failure_log): if not isinstance(host_obj, dict): continue lines = lines.union(self.analyze_host_record(host_obj)) - return lines + return sorted(lines) def analyze_host_record(self, record): lines = set()