common/tools/brag/brag.xsl
author Dario Sestito <darios@symbian.org>
Tue, 13 Jul 2010 16:47:02 +0100
changeset 1175 b1b8e71b0c52
parent 1038 f2d9b33e5713
permissions -rw-r--r--
Add dryrun option to bitops.pl
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
     1
<xsl:stylesheet version="1.0"
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
     2
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions">
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
     3
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
     4
<!-- Initialise keys (sort of like hashes?) to enable us to list distinct packages/severities -->
569
5af7cc0d44a1 Adfjusted XML format used, so there's a document-level tag - <buildStatus> which can wrap multiple <phase> tags.
Simon Howkins <simonh@symbian.org>
parents: 557
diff changeset
     5
<xsl:key name="packages" match="failure" use="@package"/>
651
bb57a09ece7a Added tables for eack package with failures, broken down by severity.
Simon Howkins <simonh@symbian.org>
parents: 606
diff changeset
     6
<xsl:key name="severities" match="/buildStatus/phase/step/failures" use="@level"/>
bb57a09ece7a Added tables for eack package with failures, broken down by severity.
Simon Howkins <simonh@symbian.org>
parents: 606
diff changeset
     7
<xsl:key name="packageANDseverity" match="/buildStatus/phase/step/failures[@level]/failure[@package]" use="concat(../@level, @package)"/>
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
     8
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
     9
<!-- Main template -->
569
5af7cc0d44a1 Adfjusted XML format used, so there's a document-level tag - <buildStatus> which can wrap multiple <phase> tags.
Simon Howkins <simonh@symbian.org>
parents: 557
diff changeset
    10
<xsl:template match="/buildStatus">
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    11
	<html>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    12
	<head><title>Build Status</title></head>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    13
	<body>
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    14
	<h1>Build Status</h1>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    15
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    16
	<xsl:variable name="criticalCount" select="count(phase/step/failures[@level='critical']/failure)+sum(phase/step/failures[@level='critical']/@count)"/>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    17
	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)+sum(phase/step/failures[@level='major']/@count)"/>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    18
	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)+sum(phase/step/failures[@level='minor']/@count)"/>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    19
	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)+sum(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/@count)"/>
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    20
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    21
	<h2>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    22
	Build BRAG status: 
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    23
	<xsl:choose>
963
daf51fe459d8 Shift down BRAG colour attribution (i.e. critical now make the build only red, major or unknown only amber)
dario.sestito@v800052.ad-sfpd.intra
parents: 902
diff changeset
    24
		<xsl:when test="$criticalCount != 0">RED</xsl:when>
daf51fe459d8 Shift down BRAG colour attribution (i.e. critical now make the build only red, major or unknown only amber)
dario.sestito@v800052.ad-sfpd.intra
parents: 902
diff changeset
    25
		<xsl:when test="$majorCount != 0">AMBER</xsl:when>
daf51fe459d8 Shift down BRAG colour attribution (i.e. critical now make the build only red, major or unknown only amber)
dario.sestito@v800052.ad-sfpd.intra
parents: 902
diff changeset
    26
		<xsl:when test="$unknownCount != 0">AMBER</xsl:when>
902
6df3172848e9 Reviewed rules defining the BRAG status
Dario Sestito <darios@symbian.org>
parents: 882
diff changeset
    27
		<xsl:otherwise>GREEN</xsl:otherwise>
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    28
	</xsl:choose>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    29
	</h2>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    30
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    31
	<xsl:variable name="totalCount" select="sum(phase/step/nestedtests[@property='total']/@count)"/>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    32
	<xsl:variable name="failedCount" select="sum(phase/step/nestedtests[@property='failed']/@count)"/>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    33
	<xsl:variable name="failRate" select="($failedCount div $totalCount)*100"/>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    34
	<h2>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    35
	Test BRAG status:
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    36
	<xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    37
		<xsl:when test="$totalCount = 0">N/A</xsl:when>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    38
		<xsl:when test="$failRate > 50">RED</xsl:when>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    39
		<xsl:when test="$failedCount > 0">AMBER</xsl:when>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    40
		<xsl:otherwise>GREEN</xsl:otherwise>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    41
	</xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    42
	</h2>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    43
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    44
	<h2>Breakdown by severity</h2>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    45
	<table border="1">
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    46
	<tr><td>Critical</td><td><xsl:value-of select="$criticalCount"/></td></tr>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    47
	<tr><td>Major</td><td><xsl:value-of select="$majorCount"/></td></tr>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    48
	<tr><td>Minor</td><td><xsl:value-of select="$minorCount"/></td></tr>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    49
	<tr><td>Unknown</td><td><xsl:value-of select="$unknownCount"/></td></tr>
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    50
	<tr><th>Grand total</th><th><xsl:value-of select="$criticalCount+$majorCount+$minorCount+$unknownCount"/></th></tr>
557
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    51
	</table>
c6145fb2403d Reordered output, so information is presented in a high-level -> low-level way
Simon Howkins <simonh@symbian.org>
parents: 547
diff changeset
    52
569
5af7cc0d44a1 Adfjusted XML format used, so there's a document-level tag - <buildStatus> which can wrap multiple <phase> tags.
Simon Howkins <simonh@symbian.org>
parents: 557
diff changeset
    53
	<h2>Breakdown by phase/step</h2>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    54
	<table border="1">
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    55
569
5af7cc0d44a1 Adfjusted XML format used, so there's a document-level tag - <buildStatus> which can wrap multiple <phase> tags.
Simon Howkins <simonh@symbian.org>
parents: 557
diff changeset
    56
	<xsl:for-each select="phase">
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    57
		<xsl:if test="step/failures">
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    58
			<tr>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    59
			<th colspan='2'>Phase: <xsl:value-of select="@name"/></th>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    60
			</tr>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    61
			<xsl:for-each select="step">
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    62
				<tr>
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    63
				<xsl:choose>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    64
				<xsl:when test="@detailshref">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    65
				<td colspan='2'>Step: <a><xsl:attribute name="href"><xsl:value-of select="@detailshref"/></xsl:attribute><xsl:value-of select="@name"/></a></td>
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    66
				</xsl:when>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    67
				<xsl:otherwise>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    68
				<td colspan='2'>Step: <xsl:value-of select="@name"/></td>
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    69
				</xsl:otherwise>
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
    70
				</xsl:choose>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    71
				</tr>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    72
				<xsl:for-each select="failures">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    73
					<tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    74
					<td>Failures: <xsl:value-of select="@level"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    75
					
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    76
					<xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    77
					<xsl:when test="@count">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    78
					<td>Number: <xsl:value-of select="@count"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    79
					</xsl:when>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    80
					<xsl:otherwise>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    81
					<td>Number: <xsl:value-of select="count(failure)"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    82
					</xsl:otherwise>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    83
					</xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    84
					</tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    85
				</xsl:for-each>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    86
			</xsl:for-each>
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    87
		</xsl:if>
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    88
	</xsl:for-each>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    89
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    90
	</table>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
    91
1038
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    92
	<br/>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    93
	<table border="1">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    94
	<xsl:for-each select="phase">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    95
		<xsl:if test="step/nestedtests">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    96
			<tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    97
			<th colspan='2'>Phase: <xsl:value-of select="@name"/></th>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    98
			</tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
    99
			<xsl:for-each select="step">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   100
				<tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   101
				<xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   102
				<xsl:when test="@detailshref">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   103
				<td colspan='2'>Step: <a><xsl:attribute name="href"><xsl:value-of select="@detailshref"/></xsl:attribute><xsl:value-of select="@name"/></a></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   104
				</xsl:when>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   105
				<xsl:otherwise>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   106
				<td colspan='2'>Step: <xsl:value-of select="@name"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   107
				</xsl:otherwise>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   108
				</xsl:choose>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   109
				</tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   110
				<xsl:for-each select="nestedtests">
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   111
					<tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   112
					<td>Tests: <xsl:value-of select="@property"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   113
					<td>Number: <xsl:value-of select="@count"/></td>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   114
					</tr>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   115
				</xsl:for-each>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   116
			</xsl:for-each>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   117
		</xsl:if>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   118
	</xsl:for-each>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   119
	</table>
f2d9b33e5713 Updated brag stylesheet to handle smoketest criteria
Maciej Seroka <maciejs@symbian.org>
parents: 963
diff changeset
   120
	
652
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   121
	<h2>Floating failures by phase/step/severity</h2>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   122
	<xsl:if test="count(phase/step/failures/failure/@package) = count(phase/step/failures/failure)">
882
6ae47dc5d707 Make BRAG point to the results of UH parser instead of intermediate artifacts
Dario Sestito <darios@symbian.org>
parents: 754
diff changeset
   123
		<p>No failures to show. Please also check the <a href="../html/index.html">Raptor build summary</a> for details on that part of the build</p>
652
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   124
	</xsl:if>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   125
	<xsl:for-each select="phase[count(step/failures/failure/@package) != count(step/failures/failure)]">
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   126
		<h3>Phase: <xsl:value-of select="@name"/></h3>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   127
		<xsl:for-each select="step[count(failures/failure/@package) != count(failures/failure)]">
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   128
			<h4>Step: <xsl:value-of select="@name"/></h4>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   129
			<xsl:for-each select="failures[count(failure/@package) != count(failure)]">
754
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   130
				<xsl:variable name="severity" select="@level"/>
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   131
				<dl><dt><xsl:value-of select="@level"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[count(@package) = 0])"/>)</dt><dd>
652
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   132
				<ul>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   133
				<xsl:for-each select="failure[count(@package) = 0]">
754
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   134
					<li><xsl:value-of select="effect"/></li>
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   135
					<xsl:if test="@unreported_causes != '0'">
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   136
						<br/>(Too much text to show everything; <xsl:value-of select="@unreported_causes"/> lines not shown.)
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   137
					</xsl:if>
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   138
					<xsl:for-each select="causes">
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   139
						<pre><xsl:value-of select="."/></pre>
79bd241158d3 Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
Simon Howkins <simonh@symbian.org>
parents: 753
diff changeset
   140
					</xsl:for-each>
652
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   141
				</xsl:for-each>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   142
				</ul>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   143
				</dd></dl>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   144
			</xsl:for-each>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   145
		</xsl:for-each>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   146
	</xsl:for-each>
7c066cc959c2 Added lists of error messages themselves, categorised by phase, step, ...
Simon Howkins <simonh@symbian.org>
parents: 651
diff changeset
   147
547
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   148
	</body>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   149
	</html>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   150
</xsl:template>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   151
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   152
</xsl:stylesheet>
19f9d5fc6406 Added really basic failure extraction and BRAG calculation to build.
Simon Howkins <simonh@symbian.org>
parents:
diff changeset
   153