summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2017-10-02 17:19:54 +0300
committerMartin Peres <martin.peres@linux.intel.com>2017-10-04 17:48:28 +0300
commit40ccc02f09e2f376970a8314149b1051180579d2 (patch)
tree773865b5f1d7f185738166fe8842fad49011e7cc
parent1388fa70322b7e71c1b836c5d38e6a09acaa04c6 (diff)
smartezbench: Handle diverging build results
-rw-r--r--python-modules/ezbench/report.py4
-rw-r--r--python-modules/ezbench/smartezbench.py10
2 files changed, 12 insertions, 2 deletions
diff --git a/python-modules/ezbench/report.py b/python-modules/ezbench/report.py
index 98f9bd8..d5c9d60 100644
--- a/python-modules/ezbench/report.py
+++ b/python-modules/ezbench/report.py
@@ -1114,6 +1114,8 @@ class EventCommitRange:
Find the most suitable bisecting point in the associated commit graph.
Ignore all the commits found as $ignore_commits.
+ TODO: Detect when the merge base needs to be tested
+
Args:
ignore_commits: commits to ignore, as they do not work (for instance)
@@ -1130,6 +1132,8 @@ class EventCommitRange:
Get the most suitable bisecting points in the associated commit graph.
Ignore all the commits found as $ignore_commits.
+ TODO: Detect when the merge base needs to be tested
+
Args:
ignore_commits: commits to ignore, as they do not work (for instance)
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py
index fe1da14..7103876 100644
--- a/python-modules/ezbench/smartezbench.py
+++ b/python-modules/ezbench/smartezbench.py
@@ -1369,13 +1369,19 @@ class SmartEzbench:
event_prio = 1
test_name_to_run = str(e.full_name)
runs = min_run_count
+ # TODO: Remove this event and just return the merge base when
+ # asking for the bisect point of the change
elif type(e) is EventDivergingBaseResult:
# Schedule the work
commit_sha1 = e.merge_base
severity = 1
event_prio = 1
- test_name_to_run = str(e.full_name)
- runs = len(e.result)
+ if (e.result.test.full_name == "ezbench_runner"):
+ test_name_to_run = "no-op"
+ runs = 1
+ else:
+ test_name_to_run = str(e.full_name)
+ runs = len(e.result)
elif type(e) is EventBuildStatusChanged:
if e.commit_range.is_single_commit():
continue