Esempio n. 1
0
# Set resource limits for child processes
resource.setrlimit(resource.RLIMIT_AS, (-1, -1))
resource.setrlimit(resource.RLIMIT_RSS, (-1, -1))
resource.setrlimit(resource.RLIMIT_DATA, (-1, -1))

# A mode is a configuration of an engine we just built.
Mode = namedtuple('Mode', ['shell', 'args', 'env', 'name', 'cset'])

# Set of engines that get build.
KnownEngines = [builders.MozillaInbound()]

# The native compiler is a special thing, for now.
native = builders.NativeCompiler()

# No updates. Report to server and wait 60 seconds, before moving on
for slave in slaves.init():
    submit = submitter.Submitter(slave)
    revs = submit.RequestedRevs()

    for rev in revs:
        Engines, NumUpdated = builders.build(KnownEngines, rev=rev["cset"])

        # Make a list of all modes.
        modes = []
        for engine in Engines:
            shell = os.path.join(utils.RepoPath, engine.source, engine.shell())
            env = None
            with utils.chdir(os.path.join(utils.RepoPath, engine.source)):
                env = engine.env()
            for m in engine.modes:
                engineArgs = engine.args if engine.args else []
Esempio n. 2
0
resource.setrlimit(resource.RLIMIT_RSS, (-1, -1))
resource.setrlimit(resource.RLIMIT_DATA, (-1, -1))

# Set of engines that get build.
KnownEngines = [builders.MozillaInbound(),
                builders.V8(),
                builders.Nitro()
               ]
Engines, NumUpdated = builders.build(KnownEngines, not options.noupdate, options.force)

submitter = getSubmitter(options.submitter)

# No updates. Report to server and wait 60 seconds, before moving on
if NumUpdated == 0 and not options.force:
    if options.submitter == 'remote':
        for slave in slaves.init():
            submit = submitter(slave)
            submit.Awake();
        time.sleep(60)
    sys.exit(0)

# The native compiler is a special thing, for now.
native = builders.NativeCompiler()

# A mode is a configuration of an engine we just built.
Mode = namedtuple('Mode', ['shell', 'args', 'env', 'name', 'cset'])

# Make a list of all modes.
modes = []
for engine in Engines:
    shell = os.path.join(utils.config.RepoPath, engine.source, engine.shell())
Esempio n. 3
0
# Set resource limits for child processes
resource.setrlimit(resource.RLIMIT_AS, (-1, -1))
resource.setrlimit(resource.RLIMIT_RSS, (-1, -1))
resource.setrlimit(resource.RLIMIT_DATA, (-1, -1))

# A mode is a configuration of an engine we just built.
Mode = namedtuple('Mode', ['shell', 'args', 'env', 'name', 'cset'])

# Set of engines that get build.
KnownEngines = [builders.MozillaInbound()]

# The native compiler is a special thing, for now.
native = builders.NativeCompiler()

# No updates. Report to server and wait 60 seconds, before moving on
for slave in slaves.init():
    remotecontroller = RemoteController(slave)
    revs = remotecontroller.RequestedRevs();

    for rev in revs:
        Engines, NumUpdated = builders.build(KnownEngines, rev = rev["cset"])

        # Make a list of all modes.
        modes = []
        for engine in Engines:
            shell = os.path.join(utils.RepoPath, engine.source, engine.shell())
            env = None
            with utils.chdir(os.path.join(utils.RepoPath, engine.source)):
                env = engine.env()
            for m in engine.modes:
                engineArgs = engine.args if engine.args else []
Esempio n. 4
0
# Set resource limits for child processes
resource.setrlimit(resource.RLIMIT_AS, (-1, -1))
resource.setrlimit(resource.RLIMIT_RSS, (-1, -1))
resource.setrlimit(resource.RLIMIT_DATA, (-1, -1))

# Set of engines that get build.
KnownEngines = [builders.MozillaInbound(),
                builders.V8(),
                builders.Nitro()
               ]
Engines, NumUpdated = builders.build(KnownEngines, not options.noupdate, options.force)

# No updates. Report to server and wait 60 seconds, before moving on
if NumUpdated == 0 and not options.force:
    for slave in slaves.init():
        submit = submitter.Submitter(slave)
        submit.Awake();
    time.sleep(60)
    sys.exit(0)

# The native compiler is a special thing, for now.
native = builders.NativeCompiler()

# A mode is a configuration of an engine we just built.
Mode = namedtuple('Mode', ['shell', 'args', 'env', 'name', 'cset'])

# Make a list of all modes.
modes = []
for engine in Engines:
    shell = os.path.join(utils.RepoPath, engine.source, engine.shell())