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

Side by Side Diff: scripts/master/chromium_status_bb8.py

Issue 1309253003: Reland "Fix buildbot console view in order_by_time mode" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Reland Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/buildbot_8_4p1/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ Source file for buildbot.status module modifications. """ 5 """ Source file for buildbot.status module modifications. """
6 6
7 import urllib 7 import urllib
8 8
9 import buildbot 9 import buildbot
10 import buildbot.util 10 import buildbot.util
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 filter={})) 225 filter={}))
226 debugInfo["revision_final"] = len(revisions) 226 debugInfo["revision_final"] = len(revisions)
227 227
228 # Fetch all the builds for all builders until we get the next build 228 # Fetch all the builds for all builders until we get the next build
229 # after lastRevision. 229 # after lastRevision.
230 revision_text = [] 230 revision_text = []
231 if revisions: 231 if revisions:
232 lastRevision = revisions[-1].revision 232 lastRevision = revisions[-1].revision
233 debugInfo["last_revision"] = lastRevision 233 debugInfo["last_revision"] = lastRevision
234 234
235 (builderList, allBuilds) = self.getAllBuildsForRevision(status, 235 (builderList, allBuilds) = self.getAllBuildsForRevision(
236 request, 236 status, request, lastRevision, 40, [], [], debugInfo, revisions)
237 lastRevision,
238 40,
239 [],
240 [],
241 debugInfo)
242 237
243 for revision in revisions: 238 for revision in revisions:
244 builds = self.displayStatusLine(builderList, 239 builds = self.displayStatusLine(builderList,
245 allBuilds, 240 allBuilds,
246 revision, 241 revision,
247 debugInfo)[0] 242 debugInfo)[0]
248 build_text = [] 243 build_text = []
249 for builder_builds in builds.values(): 244 for builder_builds in builds.values():
250 for build in builder_builds: 245 for build in builder_builds:
251 build_text.append(build_fmt % ( 246 build_text.append(build_fmt % (
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 webstatus.putChild("waterfall", WaterfallStatusResource()) 308 webstatus.putChild("waterfall", WaterfallStatusResource())
314 webstatus.putChild("console", console_) 309 webstatus.putChild("console", console_)
315 webstatus.putChild("grid", console_) 310 webstatus.putChild("grid", console_)
316 webstatus.putChild("tgrid", console_) 311 webstatus.putChild("tgrid", console_)
317 webstatus.putChild("horizontal_one_box_per_builder", 312 webstatus.putChild("horizontal_one_box_per_builder",
318 HorizontalOneBoxPerBuilder( 313 HorizontalOneBoxPerBuilder(
319 builder_filter_fn=console_builder_filter)) 314 builder_filter_fn=console_builder_filter))
320 for url, resource in customEndpoints.items(): 315 for url, resource in customEndpoints.items():
321 webstatus.putChild(url, resource) 316 webstatus.putChild(url, resource)
322 return webstatus 317 return webstatus
OLDNEW
« no previous file with comments | « no previous file | third_party/buildbot_8_4p1/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698