Package buildbot :: Package status :: Package web :: Module console :: Class ConsoleStatusResource
[frames] | no frames]

Class ConsoleStatusResource

source code

twisted.web.resource.Resource --+    
                                |    
               object --+       |    
                        |       |    
       base.AccessorMixin --+   |    
                            |   |    
            base.ContextMixin --+    
                                |    
                base.HtmlResource --+
                                    |
                                   ConsoleStatusResource

Main console class. It displays a user-oriented status page. Every change is a line in the page, and it shows the result of the first build with this change for each slave.

Nested Classes

Inherited from twisted.web.resource.Resource: entityType

Instance Methods
 
__init__(self, orderByTime=False)
Initialize.
source code
 
getPageTitle(self, request) source code
 
getChangeManager(self, request) source code
 
getHeadBuild(self, builder)
Get the most recent build for the given builder.
source code
 
fetchChangesFromHistory(self, status, max_depth, max_builds, debugInfo)
Look at the history of the builders and try to fetch as many changes as possible.
source code
 
getAllChanges(*args, **kwargs) source code
 
getBuildDetails(self, request, builderName, build)
Returns an HTML list of failures for a given build.
source code
 
getBuildsForRevision(self, request, builder, builderName, lastRevision, numBuilds, debugInfo)
Return the list of all the builds for a given builder that we will need to be able to display the console page.
source code
 
getChangeForBuild(self, build, revision) source code
 
getAllBuildsForRevision(self, status, request, lastRevision, numBuilds, categories, builders, debugInfo)
Returns a dictionary of builds we need to inspect to be able to display the console page.
source code
 
displayCategories(self, builderList, debugInfo)
Display the top category line.
source code
 
displaySlaveLine(self, status, builderList, debugInfo)
Display a line the shows the current status for all the builders we care about.
source code
 
displayStatusLine(self, builderList, allBuilds, revision, debugInfo)
Display the boxes that represent the status of each builder in the first build "revision" was in.
source code
 
filterRevisions(self, revisions, filter=None, max_revs=None)
Filter a set of revisions based on any number of filter criteria.
source code
 
displayPage(self, request, status, builderList, allBuilds, revisions, categories, repository, project, branch, debugInfo)
Display the console page.
source code
 
content(self, request, cxt)
This method builds the main console view display.
source code

Inherited from base.HtmlResource: getChild, render

Inherited from twisted.web.resource.Resource: __providedBy__, __provides__, delEntity, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render_HEAD

Inherited from base.ContextMixin: getContext

Inherited from base.AccessorMixin: getAuthz, getBuildmaster, getStatus

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from base.HtmlResource: addSlash, contentType, pageTitle

Inherited from twisted.web.resource.Resource: __implemented__, isLeaf, server

Properties

Inherited from object: __class__

Method Details

__init__(self, orderByTime=False)
(Constructor)

source code 

Initialize.

Overrides: object.__init__
(inherited documentation)

getPageTitle(self, request)

source code 
Overrides: base.AccessorMixin.getPageTitle

fetchChangesFromHistory(self, status, max_depth, max_builds, debugInfo)

source code 
Look at the history of the builders and try to fetch as many changes
as possible. We need this when the main source does not contain enough
sourcestamps. 

max_depth defines how many builds we will parse for a given builder.
max_builds defines how many builds total we want to parse. This is to
    limit the amount of time we spend in this function.

This function is sub-optimal, but the information returned by this
function is cached, so this function won't be called more than once.

getAllChanges(*args, **kwargs)

source code 
Decorators:
  • @defer.deferredGenerator

getBuildsForRevision(self, request, builder, builderName, lastRevision, numBuilds, debugInfo)

source code 

Return the list of all the builds for a given builder that we will need to be able to display the console page. We start by the most recent build, and we go down until we find a build that was built prior to the last change we are interested in.

getAllBuildsForRevision(self, status, request, lastRevision, numBuilds, categories, builders, debugInfo)

source code 
Returns a dictionary of builds we need to inspect to be able to
display the console page. The key is the builder name, and the value is
an array of build we care about. We also returns a dictionary of
builders we care about. The key is it's category.

lastRevision is the last revision we want to display in the page.
categories is a list of categories to display. It is coming from the
    HTTP GET parameters.
builders is a list of builders to display. It is coming from the HTTP
    GET parameters.

displayStatusLine(self, builderList, allBuilds, revision, debugInfo)

source code 

Display the boxes that represent the status of each builder in the first build "revision" was in. Returns an HTML list of errors that happened during these builds.

filterRevisions(self, revisions, filter=None, max_revs=None)

source code 

Filter a set of revisions based on any number of filter criteria. If specified, filter should be a dict with keys corresponding to revision attributes, and values of 1+ strings

content(self, request, cxt)

source code 

This method builds the main console view display.

Overrides: base.HtmlResource.content