| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 import os | 6 import os |
| 7 import random | 7 import random |
| 8 import re | 8 import re |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 # CQ uses this service account to authenticate to other services, including | 37 # CQ uses this service account to authenticate to other services, including |
| 38 # buildbucket. | 38 # buildbucket. |
| 39 CQ_SERVICE_ACCOUNT = ( | 39 CQ_SERVICE_ACCOUNT = ( |
| 40 '5071639625-1lppvbtck1morgivc6sq4dul7klu27sd@developer.gserviceaccount.com') | 40 '5071639625-1lppvbtck1morgivc6sq4dul7klu27sd@developer.gserviceaccount.com') |
| 41 | 41 |
| 42 | 42 |
| 43 # Sanity timeout for CQ builders - they are expected to finish under one hour | 43 # Sanity timeout for CQ builders - they are expected to finish under one hour |
| 44 # anyway. The timeout is deliberately larger than that so that we only | 44 # anyway. The timeout is deliberately larger than that so that we only |
| 45 # kill really crazy long builds that also gum up resources. | 45 # kill really crazy long builds that also gum up resources. |
| 46 CQ_MAX_TIME = 2*60*60 | 46 CQ_MAX_TIME = 4*60*60 |
| 47 | |
| 48 # Larger timeout for Windows, see http://crbug.com/567377 . | |
| 49 CQ_MAX_TIME_WIN = 3*60*60 | |
| 50 | 47 |
| 51 | 48 |
| 52 def HackMaxTime(maxTime=8*60*60): | 49 def HackMaxTime(maxTime=8*60*60): |
| 53 """Set maxTime default value to 8 hours. This function must be called before | 50 """Set maxTime default value to 8 hours. This function must be called before |
| 54 adding steps.""" | 51 adding steps.""" |
| 55 from buildbot.process.buildstep import RemoteShellCommand | 52 from buildbot.process.buildstep import RemoteShellCommand |
| 56 assert RemoteShellCommand.__init__.func_defaults == (None, 1, 1, 1200, None, | 53 assert RemoteShellCommand.__init__.func_defaults == (None, 1, 1, 1200, None, |
| 57 {}, 'slave-config', True) | 54 {}, 'slave-config', True) |
| 58 RemoteShellCommand.__init__.im_func.func_defaults = (None, 1, 1, 1200, | 55 RemoteShellCommand.__init__.im_func.func_defaults = (None, 1, 1, 1200, |
| 59 maxTime, {}, 'slave-config', True) | 56 maxTime, {}, 'slave-config', True) |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 return result | 737 return result |
| 741 | 738 |
| 742 | 739 |
| 743 def SetMasterProcessName(): | 740 def SetMasterProcessName(): |
| 744 """Sets the name of this process to the name of the master. Linux only.""" | 741 """Sets the name of this process to the name of the master. Linux only.""" |
| 745 | 742 |
| 746 if sys.platform != 'linux2': | 743 if sys.platform != 'linux2': |
| 747 return | 744 return |
| 748 | 745 |
| 749 command_line.set_command_line("master: %s" % GetMastername()) | 746 command_line.set_command_line("master: %s" % GetMastername()) |
| OLD | NEW |