Lines Matching refs:bot
215 bot = waterfall[bot_name]
217 if bot['state'] != 'offline':
220 gpu_bot = GpuBot(waterfall_name, bot_name, bot)
238 def getMostRecentlyCompletedBuildForBot(bot):
239 if bot.bot_data is not None and 'most_recent_build' in bot.bot_data:
240 return bot.bot_data['most_recent_build']
246 builds = Waterfall.getLastNBuildsForBuilder(NUM_BUILDS, bot.waterfall_name,
247 bot.bot_name)
254 if bot.bot_data is not None:
255 bot.bot_data['most_recent_build'] = current_build
269 bot = waterfall[bot_name]
270 gpu_bot = GpuBot(waterfall_name, bot_name, bot)
304 def getBotStr(bot):
305 s = ' %s::%s\n' % (bot.waterfall_name, bot.bot_name)
307 if bot.failure_string is not None:
308 s += ' failure: %s\n' % bot.failure_string
310 if bot.getEndTime() is not None:
312 (formatTime(bot.getEndTime()), bot.getHoursSinceLastRun()))
314 if bot.bot_url is not None:
315 s += ' bot url: %s\n' % bot.bot_url
317 if bot.build_url is not None:
318 s += ' build url: %s\n' % bot.build_url
326 for bot in bots:
327 s += getBotStr(bot)
341 for bot in bots:
342 dicts.append(bot.toDict())
360 for bot in lst:
361 if bot.bot_name == name:
362 return bot
376 for bot in offline_bots:
377 if bot.getHoursSinceLastRun() >= CRITICAL_NUM_HOURS:
378 previous_bot = findBot(bot.bot_name, previous_offline)
382 noteworthy_offline.append(bot)
385 for bot in failed_bots:
386 previous_bot = findBot(bot.bot_name, previous_failures)
389 noteworthy_new_failures.append(bot)
392 for bot in previous_offline:
393 if bot.getHoursSinceLastRun() < CRITICAL_NUM_HOURS:
396 current_bot = findBot(bot.bot_name, offline_bots)
398 noteworthy_new_offline_recoveries.append(bot)
401 for bot in previous_failures:
402 current_bot = findBot(bot.bot_name, failed_bots)
405 noteworthy_new_failure_recoveries.append(bot)
417 for bot in noteworthy_events['offline']:
418 s += getBotStr(bot)
425 for bot in noteworthy_events['failed']:
426 s += getBotStr(bot)
433 for bot in noteworthy_events['recovered_offline']:
434 s += getBotStr(bot)
441 for bot in noteworthy_events['recovered_failures']:
442 s += getBotStr(bot)
450 for bot in bots['offline']:
451 offline_bots.append(GpuBot.fromDict(bot))
454 for bot in bots['failed']:
455 failed_bots.append(GpuBot.fromDict(bot))
568 help='Send an email out when a bot which has been offline for more ' +
574 help='Send an email when a failing bot recovers.')