# 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 [] modeArgs = m['args'] if m['args'] else [] args = engineArgs + modeArgs mode = Mode(shell, args, env, m['mode'], engine.cset) modes.append(mode)
# 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 [] modeArgs = m['args'] if m['args'] else [] args = engineArgs + modeArgs mode = Mode(shell, args, env, m['mode'], engine.cset) modes.append(mode)
help="Config file (default: awfy.config)") (options, args) = parser.parse_args() utils.InitConfig(options.config_name) # 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'])
help="Submitter class ('remote' or 'print')") (options, args) = parser.parse_args() utils.config.init(options.config_name) # 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) 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()
def build(rev=None): # Set of engines that get build. builder = builders.Chromium(source="chromium2\\src", repoPath="C:\\src") return builders.build(builder, rev)