Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
merge default -> production-0.8
Browse files Browse the repository at this point in the history
$ hg merge -P -r default
changeset:   3116:6b0db4a6de79
parent:      3114:656c69707be7
user:        Chris AtLee <catlee@mozilla.com>
date:        Tue Apr 23 08:32:20 2013 -0400
summary:     Bug 791335: Set lower timeouts for alive tests / check tests. r=bhearsum, philor

changeset:   3117:de40037f81cc
tag:         tip
user:        Armen Zambrano Gasparnian <armenzg@mozilla.com>
date:        Tue Apr 23 12:41:28 2013 -0400
summary:     Bug 770578. Add win7-ix. r=coop

--HG--
branch : production-0.8
  • Loading branch information
Callek committed Apr 23, 2013
2 parents 774e263 + 4db0221 commit 552c9b9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion process/factory.py
Expand Up @@ -5839,7 +5839,7 @@ def addUnpackBuildSteps(self):
property_name="exepath",
name="Find executable",
))
elif self.OS in ('xp', 'win7', 'w764', 'win8'):
elif self.OS in ('xp', 'win7', 'w764', 'win8', 'win7-ix', 'xp-ix'):
self.addStep(SetBuildProperty(
property_name="exepath",
value="../%s/%s" % (
Expand Down
28 changes: 11 additions & 17 deletions steps/test.py
Expand Up @@ -25,22 +25,13 @@
# Alice Nodelman <anodelman@mozilla.com>
# ***** END LICENSE BLOCK *****

from buildbot.status.builder import FAILURE, SUCCESS, WARNINGS, EXCEPTION, \
from buildbot.status.builder import FAILURE, SUCCESS, EXCEPTION, \
worst_status
from buildbot.process.properties import WithProperties

from twisted.internet.defer import DeferredList, Deferred
from twisted.python import log
from twisted.web.client import getPage
from twisted.internet import reactor

from urllib import urlencode
from time import strptime, strftime, localtime, mktime
import re
import os
import signal
from os import path
import string

from buildbotcustom.steps.base import ShellCommand

Expand All @@ -52,9 +43,9 @@ class AliveTest(ShellCommand):
flunkOnFailure = False
warnOnFailure = True

def __init__(self, extraArgs=None, logfile=None, **kwargs):
def __init__(self, extraArgs=None, logfile=None, timeout=300, maxTime=600, **kwargs):
self.super_class = ShellCommand
self.super_class.__init__(self, **kwargs)
self.super_class.__init__(self, timeout=timeout, maxTime=maxTime, **kwargs)

self.addFactoryArguments(extraArgs=extraArgs,
logfile=logfile)
Expand All @@ -69,16 +60,17 @@ def __init__(self, extraArgs=None, logfile=None, **kwargs):
self.command.append('--')
self.command.extend(extraArgs)


class AliveMakeTest(ShellCommand):
name = "alive test"
description = ["alive test"]
haltOnFailure = True
flunkOnFailure = False
warnOnFailure = True

def __init__(self, extraArgs=None, logfile=None, **kwargs):
def __init__(self, extraArgs=None, logfile=None, timeout=300, maxTime=600, **kwargs):
self.super_class = ShellCommand
self.super_class.__init__(self, **kwargs)
self.super_class.__init__(self, timeout=timeout, maxTime=maxTime, **kwargs)

self.addFactoryArguments(extraArgs=extraArgs,
logfile=logfile)
Expand All @@ -93,9 +85,11 @@ def __init__(self, extraArgs=None, logfile=None, **kwargs):
if logfile:
leakargs.append('-l')
leakargs.append(logfile)
self.command = ['bash', '-c',
WithProperties("LEAKTEST_ARGS='" + ' '.join(leakargs) + \
"' python %(basedir)s/build/build/pymake/make.py leaktest")]
self.command = [
'bash', '-c',
WithProperties("LEAKTEST_ARGS='" + ' '.join(leakargs) +
"' python %(basedir)s/build/build/pymake/make.py leaktest")]


def formatBytes(bytes, sigDigits=3):
# Force a float calculation
Expand Down
4 changes: 2 additions & 2 deletions steps/unittest.py
Expand Up @@ -411,9 +411,9 @@ class ShellCommandReportTimeout(ShellCommand):
"""We subclass ShellCommand so that we can bubble up the timeout errors
to tinderbox that normally only get appended to the buildbot slave logs.
"""
def __init__(self, **kwargs):
def __init__(self, timeout=2 * 3600, maxTime=4 * 3600, **kwargs):
self.my_shellcommand = ShellCommand
ShellCommand.__init__(self, **kwargs)
ShellCommand.__init__(self, timeout=timeout, maxTime=maxTime, **kwargs)

def evaluateCommand(self, cmd):
superResult = self.my_shellcommand.evaluateCommand(self, cmd)
Expand Down

0 comments on commit 552c9b9

Please sign in to comment.