[LNT] r286538 - Better logging for different sample hashes

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 17:25:23 PST 2016


Author: cmatthews
Date: Thu Nov 10 19:25:23 2016
New Revision: 286538

URL: http://llvm.org/viewvc/llvm-project?rev=286538&view=rev
Log:
Better logging for different sample hashes

Modified:
    lnt/trunk/lnt/server/reporting/analysis.py

Modified: lnt/trunk/lnt/server/reporting/analysis.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/analysis.py?rev=286538&r1=286537&r2=286538&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/analysis.py (original)
+++ lnt/trunk/lnt/server/reporting/analysis.py Thu Nov 10 19:25:23 2016
@@ -348,12 +348,15 @@ class RunInfo(object):
             prev_hash_set = set(prev_hash_values)
             if len(cur_hash_set) > 1:
                 logger.warning(("Found different hashes for multiple samples " +
-                                "in the same run {0}: {1}").format(
-                               runs, hash_values))
+                                "in the same run {0}: {1}\nTestID:{2}").format(
+                               runs, hash_values, test_id))
             if len(prev_hash_set) > 1:
+                import pprint
                 logger.warning(("Found different hashes for multiple samples " +
-                                "in the same run {0}: {1}").format(
-                               compare_runs, prev_hash_values))
+                                "in the same run {0}\n{1}\nTestID:{2}").format(
+                               pprint.pformat(compare_runs),
+                               prev_hash_values,
+                               test_id))
             cur_hash = hash_values[0] if len(hash_values) > 0 else None
             prev_hash = prev_hash_values[0] \
                 if len(prev_hash_values) > 0 else None




More information about the llvm-commits mailing list