[Ezbench-dev] [PATCH 18/25] smartezbench/schedule_enhancement: print the task list in the debug log
Petri Latvala
petri.latvala at intel.com
Fri Feb 24 11:19:19 UTC 2017
From: Martin Peres <martin.peres at linux.intel.com>
I have had to do this too often, so this is likely needed!
---
python-modules/ezbench/smartezbench.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py
index f05ae09..c4ad7ad 100644
--- a/python-modules/ezbench/smartezbench.py
+++ b/python-modules/ezbench/smartezbench.py
@@ -1085,9 +1085,13 @@ class SmartEzbench:
tasks.append((score, commit_sha1, test_name_to_run, runs, e))
+ # Sort the tasks by priority
+ tasks_sorted = sorted(tasks, key=lambda t: t[0])
+ tasks_sorted_str = pprint.pformat(tasks_sorted)
+ self.__log(Criticality.DD, "Needed tasks: {}".format(tasks_sorted_str))
+
# If we are using the throttle mode, only schedule the commit with the
# biggest score to speed up bisecting of the most important issues
- tasks_sorted = sorted(tasks, key=lambda t: t[0])
scheduled_commits = added = 0
self.__reload_state(keep_lock=True)
added = 0
--
2.9.3
More information about the Ezbench-dev
mailing list