Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: master/webstatus/builder_statuses.py

Issue 648353002: Remove Skia's forked buildbot code (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Address comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « master/webstatus/__init__.py ('k') | master/webstatus/buildstatus.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: master/webstatus/builder_statuses.py
diff --git a/master/webstatus/builder_statuses.py b/master/webstatus/builder_statuses.py
deleted file mode 100644
index ed6af2b3a53a2602498c81822effc6ed3e59d864..0000000000000000000000000000000000000000
--- a/master/webstatus/builder_statuses.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright (c) 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-"""JSON interface which returns the most recent results for each builder."""
-
-
-import buildbot.status.web.base as base
-import builder_name_schema
-
-from buildbot.status.web.status_json import JsonResource
-from twisted.python import log
-
-
-class BuilderStatusesJsonResource(JsonResource):
- """Returns the results of the last completed build for each builder.
-
- This is essentially a JSON equivalent of the upstream
- horizontal_one_box_per_builder HTML page, as in
- third_party/chromium_buildbot/scripts/master/chromium_status_bb8.py.
- """
-
- def asDict(self, request):
- builders = request.args.get('builder', self.status.getBuilderNames())
- data = {'builders': []}
- for builder_name in builders:
- if builder_name_schema.IsTrybot(builder_name):
- continue
- try:
- builder_status = self.status.getBuilder(builder_name)
- except KeyError:
- log.msg('status.getBuilder(%r) failed' % builder_name)
- continue
- outcome = base.ITopBox(builder_status).getBox(request).class_
- lastbuild = 'LastBuild'
- if outcome.startswith(lastbuild):
- outcome = outcome[len(lastbuild):]
- data['builders'].append({'outcome': outcome.strip(),
- 'name': builder_name})
- return data
« no previous file with comments | « master/webstatus/__init__.py ('k') | master/webstatus/buildstatus.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698