Nokia Networks Home

Nokia nmake Product Builder

Quick Links

Related Products

Tool Repository

[ tool index ]

radialtree.py

[radialtree]

Display targets in a radialtree chart.

Download: buildlogrpts-20110510.tar.gz (zip)

Description

radialtree.py is a Python script that generates a radialtree view of a build.

The script outputs an HTML file that may be viewed in any Javascript/SVG compliant web browser. The actual HTML formatting is generated from a template file for easy customization. Features of the view include:

Requirements

Usage and Options

radialree.py [ --help ] [ -u URL ] [ -o OUTPUT ] [ -t TEMPLATE ] filename.xml

-h, --help
Show usage statement and list options
-u URL, --url=URL
Set weblog base url
-o OUTPUT, --output=OUTPUT
set output file name
-t TEMPLATE, --template=TEMPLATE
set template file name

Example Command Line

radialtree.py makelog.xml

Example Output

Radialtree Report: writing output to blexample_radialtree.html

Here is the generated web page: blexample_radialtree.html (png screen shot)

Script Description

The logic for the report is defined in function RadialtreeReport.run() which calls mutually recursive functions process() and value() to build up a recursive data structure which is assigned to variable data. The values for elements corresponding to a Makefile recurse to lower level elements. Multivariate build data is stored for each leaf target element: stored data includes job duration, a URL fragment linking to detailed log data, and job exit code. The standard Python json library is used to convert the data to JSON notation for output as javascript. Finally, the HTML template is read in and variable parts are substituted into the template.

Last Update: Friday,12-Aug-2016 12:16:50 EDT