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

Class ConsoleStatusResource

source code

twisted.web.resource.Resource --+    
                                |    
                   object --+   |    
                            |   |    
            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
 
getTitle(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(self, source, status, debugInfo)
Return all the changes we can find at this time.
source code
 
stripRevisions(self, allChanges, numRevs, branch, devName)
Returns a subset of changes from allChanges that matches the query.
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 dictionnary 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
 
displayPage(self, request, status, builderList, allBuilds, revisions, categories, 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: getAuthz, getBuildmaster, getChild, render

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

Inherited from base.ContextMixin: getContext, getStatus

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

Class Variables

Inherited from base.HtmlResource: addSlash, contentType, title

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

Properties

Inherited from object: __class__

Method Details

__init__(self, orderByTime=False)
(Constructor)

source code 

Initialize.

Overrides: object.__init__
(inherited documentation)

getTitle(self, request)

source code 
Overrides: base.ContextMixin.getTitle

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(self, source, status, debugInfo)

source code 

Return all the changes we can find at this time. If |source| does not not have enough (less than 25), we try to fetch more from the builders history.

stripRevisions(self, allChanges, numRevs, branch, devName)

source code 
Returns a subset of changes from allChanges that matches the query.

allChanges is the list of all changes we know about.
numRevs is the number of changes we will inspect from allChanges. We
    do not want to inspect all of them or it would be too slow.
branch is the branch we are interested in. Changes not in this branch
    will be ignored.
devName is the developper name. Changes have not been submitted by this
    person will be ignored.

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 dictionnary 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 dictionnary 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.