[Libreoffice-commits] buildbot.git: 2 commits - tb3/dist-packages tb3/tb3-local-client

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Sat Aug 3 08:37:56 PDT 2013


 tb3/dist-packages/tb3/repostate.py |    4 ++--
 tb3/tb3-local-client               |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3887fa33878487d3e514ac897de94b03d7cd346d
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Sat Aug 3 17:37:26 2013 +0200

    another tweak for python3

diff --git a/tb3/tb3-local-client b/tb3/tb3-local-client
index 6665201..57fad5c 100755
--- a/tb3/tb3-local-client
+++ b/tb3/tb3-local-client
@@ -54,7 +54,7 @@ class LocalClient:
         estimated_buildtime = float(120)
         if (proposal['repo'], proposal['branch'], proposal['platform']) in self.buildtimes:
             scenario_buildtimes = self.buildtimes[ (proposal['repo'], proposal['branch'], proposal['platform']) ]
-            estimated_buildtime = scenario_buildtimes[len(scenario_buildtimes)/2]
+            estimated_buildtime = scenario_buildtimes[int(len(scenario_buildtimes)/2)]
         self.tb3(repo=proposal['repo'], branch=proposal['branch'], platform=proposal['platform'], set_commit_running=proposal['commit'], estimated_duration=estimated_buildtime)
     def run_build(self, proposal):
         buildtime = int(time.time()*100)
commit e2d5a9c563fe89152a89dadfc26b2fb6cc7aa667
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Sat Aug 3 17:34:27 2013 +0200

    BREAKING is just a severe BAD and shouldnt be overwritten

diff --git a/tb3/dist-packages/tb3/repostate.py b/tb3/dist-packages/tb3/repostate.py
index fc5a1fe..5d75770 100644
--- a/tb3/dist-packages/tb3/repostate.py
+++ b/tb3/dist-packages/tb3/repostate.py
@@ -151,7 +151,7 @@ class RepoStateUpdater:
                 rangestate = last_bad_state
                 if last_build == last_good:
                     rangestate = last_good_state
-                self.repohistory.update_inner_range_state(last_build, commit, CommitState(rangestate), ['GOOD', 'BAD'])
+                self.repohistory.update_inner_range_state(last_build, commit, CommitState(rangestate), ['GOOD', 'BAD', 'BREAKING'])
             else:
                 first_bad = self.repostate.get_first_bad()
                 assert(self.git('merge-base', '--is-ancestor', last_good, commit, _ok_code=[0,1]).exit_code == 0)
@@ -159,7 +159,7 @@ class RepoStateUpdater:
                 assume_range = (last_good, commit)
                 if forward:
                     assume_range = (commit, first_bad)
-                self.repohistory.update_inner_range_state(assume_range[0], assume_range[1], CommitState(bisect_state), ['GOOD', 'BAD'])
+                self.repohistory.update_inner_range_state(assume_range[0], assume_range[1], CommitState(bisect_state), ['GOOD', 'BAD', 'BREAKING'])
     def __finalize_bisect(self):
         (first_bad, last_bad) = (self.repostate.get_first_bad(), self.repostate.get_last_bad())
         if not first_bad:


More information about the Libreoffice-commits mailing list