17 <xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)+sum(phase/step/failures[@level='major']/@count)"/> |
17 <xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)+sum(phase/step/failures[@level='major']/@count)"/> |
18 <xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)+sum(phase/step/failures[@level='minor']/@count)"/> |
18 <xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)+sum(phase/step/failures[@level='minor']/@count)"/> |
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)"/> |
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)"/> |
20 |
20 |
21 <h2> |
21 <h2> |
22 Overall BRAGG staus: |
22 Build BRAG status: |
23 <xsl:choose> |
23 <xsl:choose> |
24 <xsl:when test="$criticalCount != 0">RED</xsl:when> |
24 <xsl:when test="$criticalCount != 0">RED</xsl:when> |
25 <xsl:when test="$majorCount != 0">AMBER</xsl:when> |
25 <xsl:when test="$majorCount != 0">AMBER</xsl:when> |
26 <xsl:when test="$unknownCount != 0">AMBER</xsl:when> |
26 <xsl:when test="$unknownCount != 0">AMBER</xsl:when> |
|
27 <xsl:otherwise>GREEN</xsl:otherwise> |
|
28 </xsl:choose> |
|
29 </h2> |
|
30 |
|
31 <xsl:variable name="totalCount" select="sum(phase/step/nestedtests[@property='total']/@count)"/> |
|
32 <xsl:variable name="failedCount" select="sum(phase/step/nestedtests[@property='failed']/@count)"/> |
|
33 <xsl:variable name="failRate" select="($failedCount div $totalCount)*100"/> |
|
34 <h2> |
|
35 Test BRAG status: |
|
36 <xsl:choose> |
|
37 <xsl:when test="$totalCount = 0">N/A</xsl:when> |
|
38 <xsl:when test="$failRate > 50">RED</xsl:when> |
|
39 <xsl:when test="$failedCount > 0">AMBER</xsl:when> |
27 <xsl:otherwise>GREEN</xsl:otherwise> |
40 <xsl:otherwise>GREEN</xsl:otherwise> |
28 </xsl:choose> |
41 </xsl:choose> |
29 </h2> |
42 </h2> |
30 |
43 |
31 <h2>Breakdown by severity</h2> |
44 <h2>Breakdown by severity</h2> |
39 |
52 |
40 <h2>Breakdown by phase/step</h2> |
53 <h2>Breakdown by phase/step</h2> |
41 <table border="1"> |
54 <table border="1"> |
42 |
55 |
43 <xsl:for-each select="phase"> |
56 <xsl:for-each select="phase"> |
44 <tr> |
57 <xsl:if test="step/failures"> |
45 <th colspan='2'>Phase: <xsl:value-of select="@name"/></th> |
|
46 </tr> |
|
47 <xsl:for-each select="step"> |
|
48 <tr> |
58 <tr> |
49 <xsl:choose> |
59 <th colspan='2'>Phase: <xsl:value-of select="@name"/></th> |
50 <xsl:when test="@detailshref"> |
|
51 <td colspan='2'>Step: <a><xsl:attribute name="href"><xsl:value-of select="@detailshref"/></xsl:attribute><xsl:value-of select="@name"/></a></td> |
|
52 </xsl:when> |
|
53 <xsl:otherwise> |
|
54 <td colspan='2'>Step: <xsl:value-of select="@name"/></td> |
|
55 </xsl:otherwise> |
|
56 </xsl:choose> |
|
57 </tr> |
60 </tr> |
58 <xsl:for-each select="failures"> |
61 <xsl:for-each select="step"> |
59 <tr> |
62 <tr> |
60 <td>Failures: <xsl:value-of select="@level"/></td> |
|
61 |
|
62 <xsl:choose> |
63 <xsl:choose> |
63 <xsl:when test="@count"> |
64 <xsl:when test="@detailshref"> |
64 <td>Number: <xsl:value-of select="@count"/></td> |
65 <td colspan='2'>Step: <a><xsl:attribute name="href"><xsl:value-of select="@detailshref"/></xsl:attribute><xsl:value-of select="@name"/></a></td> |
65 </xsl:when> |
66 </xsl:when> |
66 <xsl:otherwise> |
67 <xsl:otherwise> |
67 <td>Number: <xsl:value-of select="count(failure)"/></td> |
68 <td colspan='2'>Step: <xsl:value-of select="@name"/></td> |
68 </xsl:otherwise> |
69 </xsl:otherwise> |
69 </xsl:choose> |
70 </xsl:choose> |
70 </tr> |
71 </tr> |
|
72 <xsl:for-each select="failures"> |
|
73 <tr> |
|
74 <td>Failures: <xsl:value-of select="@level"/></td> |
|
75 |
|
76 <xsl:choose> |
|
77 <xsl:when test="@count"> |
|
78 <td>Number: <xsl:value-of select="@count"/></td> |
|
79 </xsl:when> |
|
80 <xsl:otherwise> |
|
81 <td>Number: <xsl:value-of select="count(failure)"/></td> |
|
82 </xsl:otherwise> |
|
83 </xsl:choose> |
|
84 </tr> |
|
85 </xsl:for-each> |
71 </xsl:for-each> |
86 </xsl:for-each> |
72 </xsl:for-each> |
87 </xsl:if> |
73 </xsl:for-each> |
88 </xsl:for-each> |
74 |
89 |
75 </table> |
90 </table> |
76 |
91 |
|
92 <br/> |
|
93 <table border="1"> |
|
94 <xsl:for-each select="phase"> |
|
95 <xsl:if test="step/nestedtests"> |
|
96 <tr> |
|
97 <th colspan='2'>Phase: <xsl:value-of select="@name"/></th> |
|
98 </tr> |
|
99 <xsl:for-each select="step"> |
|
100 <tr> |
|
101 <xsl:choose> |
|
102 <xsl:when test="@detailshref"> |
|
103 <td colspan='2'>Step: <a><xsl:attribute name="href"><xsl:value-of select="@detailshref"/></xsl:attribute><xsl:value-of select="@name"/></a></td> |
|
104 </xsl:when> |
|
105 <xsl:otherwise> |
|
106 <td colspan='2'>Step: <xsl:value-of select="@name"/></td> |
|
107 </xsl:otherwise> |
|
108 </xsl:choose> |
|
109 </tr> |
|
110 <xsl:for-each select="nestedtests"> |
|
111 <tr> |
|
112 <td>Tests: <xsl:value-of select="@property"/></td> |
|
113 <td>Number: <xsl:value-of select="@count"/></td> |
|
114 </tr> |
|
115 </xsl:for-each> |
|
116 </xsl:for-each> |
|
117 </xsl:if> |
|
118 </xsl:for-each> |
|
119 </table> |
|
120 |
77 <h2>Floating failures by phase/step/severity</h2> |
121 <h2>Floating failures by phase/step/severity</h2> |
78 <xsl:if test="count(phase/step/failures/failure/@package) = count(phase/step/failures/failure)"> |
122 <xsl:if test="count(phase/step/failures/failure/@package) = count(phase/step/failures/failure)"> |
79 <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> |
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> |
80 </xsl:if> |
124 </xsl:if> |
81 <xsl:for-each select="phase[count(step/failures/failure/@package) != count(step/failures/failure)]"> |
125 <xsl:for-each select="phase[count(step/failures/failure/@package) != count(step/failures/failure)]"> |