diff options
author | David Williams | 2014-08-05 01:29:59 +0000 |
---|---|---|
committer | David Williams | 2014-08-05 01:29:59 +0000 |
commit | 71df298d31d3e3989e95c8c295dadabab85aa69f (patch) | |
tree | 15c1f740c6473106c2ffbcb13a4d23a2b9b41944 | |
parent | 23f3f1f06675f8200f88326b10f4adc68e575d0c (diff) | |
download | eclipse.platform.releng.aggregator-71df298d31d3e3989e95c8c295dadabab85aa69f.tar.gz eclipse.platform.releng.aggregator-71df298d31d3e3989e95c8c295dadabab85aa69f.tar.xz eclipse.platform.releng.aggregator-71df298d31d3e3989e95c8c295dadabab85aa69f.zip |
Bug 387066 - Remove Red X's (and the few green checkmarks) from main DL
page
2 files changed, 498 insertions, 457 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template index c5e52acac..8e3343fae 100644 --- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template +++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/index.php.template @@ -8,9 +8,9 @@ include_once("utilityFunctions.php"); // global variables - $expectedtestConfigs=0; - $testConfigs = array(); - $foundConfigs= array(); + $expectedTestConfigs=array(); + $testResults = array(); + $testResultsSummaryFiles=array(); $streamArr = explode(".", $STREAM); $STREAM_MAJOR = $streamArr[0]; @@ -52,12 +52,12 @@ sfHover = function() { var sfEls = document.getElementById("leftnav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { - sfEls[i].onmouseover=function() { - this.className+=" sfhover"; - } - sfEls[i].onmouseout=function() { - this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); - } + sfEls[i].onmouseover=function() { + this.className+=" sfhover"; + } + sfEls[i].onmouseout=function() { + this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); + } } } if (window.attachEvent) window.attachEvent("onload", sfHover); @@ -119,441 +119,463 @@ if (window.attachEvent) window.attachEvent("onload", sfHover); <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" > <tr> <td> - <b><font face="Verdana" size="+3">Eclipse <?php echo $STREAM; ?> <?php echo $BUILD_TYPE_NAME; ?> Build: <?php echo $BUILD_ID; ?></font></b> + <b><font face="Verdana" size="+3">Eclipse <?php echo $STREAM; ?> <?php echo $BUILD_TYPE_NAME; ?> Build: <?php echo $BUILD_ID; ?></font></b> </td> <tr> - <tr> - <?php - if (file_exists("pom_updates/index.html")) { - echo "<tr><td width=\"75%\"><font size=\"+1\">"; - echo "<a href=\"pom_updates/\"><b>POM updates made</b></a></font></td></tr>"; - } - ?> - <?php - // check if test build only, just to give warning of oversite. - // see bug 404545 - if (isset($testbuildonly) && ($testbuildonly)) { - echo "<tr><td width=\"75%\">\n"; - echo "<font size=\"+1\">\n"; - echo "Test-Build-Only flag found set. Input was not tagged.\n"; - echo "</font>\n"; - echo "</td></tr>\n"; - } - ?> - <?php - - // Use of "BUILD_ID" should work for milestones, and releases, but would require a "copy" - // being made, say for "4.5RC4" during that period we have prepared final bits, but have not - // made visible yet (if we want "N&N" visible from RC build). - - if (file_exists("news/")) { - echo "<tr><td width=\"75%\"><font size=\"+1\">"; - echo "<a href=\"http://www.eclipse.org/eclipse/news/${BUILD_ID}/eclipse_news_${BUILD_ID}.php\"><b>New and Noteworthy</b></a></font></td></tr>"; - } - // linkToAcknowledgements is a pure "marker file" - if (file_exists("linkToAcknowledgements")) { - echo "<tr><td width=\"75%\"><font size=\"+1\">"; - echo "<a href=\"http://www.eclipse.org/eclipse/development/acknowledgements_${BUILD_ID}.php\"><b>Acknowledgments</b></a>"; - echo "</font></td></tr>"; - } - // linkToReadme is a pure marker file - if (file_exists("linkToReadme")) { - echo "<tr><td width=\"75%\"><font size=\"+1\">"; - echo "<a href=\"http://www.eclipse.org/eclipse/development/readme_eclipse_${BUILD_ID}.php\"><b>Eclipse Project ${BUILD_ID} Readme</b></a>"; - echo "</font></td></tr>"; - } - - - if (isset ($BUILD_FAILED) ) { - echo "<tr><td width=\"75%\"><font size=\"+1\">"; - echo "Build Failed. See <a href=\"buildlogs.php\">logs</a>. <br />\n"; - $PATTERN='!(.*)(/buildlogs/)(.*)!'; - $result = preg_match($PATTERN, $BUILD_FAILED, $MATCHES); - // cheap short cut, since we expect only 1 such file - $summaryFile=glob("buildFailed-*"); - if ($result !== FALSE) { - $SPECIFIC_LOG=$MATCHES[3]; - echo "Specifically, see <a href=\"buildlogs/$SPECIFIC_LOG\">the log with errors</a>, \n"; - echo "or a <a href=\"$summaryFile[0]\">summary</a>. <br /> \n"; - echo "Or see traditional <a href=\"testResults.php\">Compile Logs</a> (if any). \n"; - } - echo "</td><tr>"; - // early end to table, since build failed is all we will print. - echo "</table>"; - - - } - else { - ?> - <tr> - <td width="75%"> - The page provides access to the various sections of Eclipse Platform build along with details - relating to its results and unit tests. - </td> - </tr> - </table> - - <div> - <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" > - <?php - //$servername = $_SERVER["SERVER_NAME"]; - if (! preg_match("/.eclipse.org/i",$servername)) { - echo "<tr> To download a file via HTTP click on its corresponding http link below."; - } else { - echo "<tr>"; - } ?> - </table> - </div> - - <div class="homeitem"> - <h3>Related Links</h3> - <ul class="midlist"> - - <?php - // for current (modern) builds, test results are always in - // 'testresults'. That directory only exists after first results - // have finished and been "published". - if (file_exists("testresults")) { - $testResultsDirName="testresults"; - } elseif (file_exists("results")) { - $testResultsDirName="results"; - } else { - $testResultsDirName=""; - } - - // The %testsStatus% is given a value by the "generate Index" tasks, - // but it is supplimented by "nBoxes" and "expectedtestConfigs" - // BUT, we want to maintain ability to override color with presence - // of 'overrideTestColor' marker file. - - $boxes=calcTestConfigsRan($testResultsDirName); - - $testResultsStatus = "%testsStatus%"; - if (file_exists("overrideTestColor")) { - $testResultsStatus="successful"; - } - // -3 is special code meaning no testResults directory exists yet. - elseif ($boxes == -3) { - echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending, view the <b>logs</b> for the current build.</a></li>"; - } - elseif ($testResultsStatus == "pending") { - echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending. View the <b>logs</b> for the current build.</a></li>"; - } - elseif ($testResultsStatus == "successful") { - echo "<li><a title=\"Test results have no failures\" href=\"testResults.php\">View the <b><font color=\"#00FF00\">logs and test results</font></b> for the current build.</a></li>"; - } - elseif ($testResultsStatus == "failed") { - echo "<li><a title=\"Test results have failures\" href=\"testResults.php\">View the <b><font color=\"#FF0000\">logs and test results</font></b> for the current build.</a></li>"; - } - else { - echo "<li><a href=\"testResults.php\">View the <b>logs and test results</b> for the current build.</a></li>\n"; - } - - if ($boxes > -1) { - echo "<ul>\n"; - echo "<li>".$boxes." of ".$expectedtestConfigs." test configurations are complete.</li>\n"; - if ($boxes > 0) { - echo "<ul>\n"; - for ($i = 0 ; $i < $boxes ; $i++) { - echo "<li>".$foundConfigs[$i]."</li>\n"; - } - echo "</ul>\n"; - } - echo "</ul>\n"; - } - - // if (file_exists("performance/performance.php")) { - // echo "<li>"; - // $generated=file_exists("performance/global_fp.php"); - // if (!$generated) - // { - // echo "<i>"; - // echo "<a href=\"performance/performance.php\">View the <b>performance results</b> for the current build.</a>"; - // if (!$generated) echo "</i>"; - // echo "</li>"; - // } - ?> - - <li><a href="https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_4.xml#target_environments">Target Platforms and Environments</a></li> - <li><a href="directory.txt">View the Git repositories used for the current build.</a></li> - <li><a href="http://wiki.eclipse.org/Platform-releng/How_to_check_integrity_of_downloads">How to verify a download.</a></li> - - <?php - # place holder: we don't currently produce these reports, and - # when we do, will need some work here. - # FWIW, we may want to construct elaborate query into CGit for this, - # even though that'd be elaborate, would get user to an area where - # they coudl tweak query, if desired? - if (file_exists("report.txt")) { - echo "<p><a href=\"report.txt\">Report of changes</a> from previous build.</p>"; - } - ?> - - <?php - if (file_exists("buildnotes/")) { - echo "<li><a href=\"buildNotes.php\">View build notes for the current build.</a></li>"; - } - ?> - </ul> - </div> - - <hr class="clearer" /> - </div> - - <?php - - function column($servername) { - - echo "<td width=\"7%\"><b>Download</b></td>"; - echo "<td width=\"7%\"><b>Size</b></td>"; - echo "<td width=\"37%\"><b>File</b></td>"; - echo "<td width=\"11%\"><b>Checksum</b></td>"; - return; - } - - function getDropSize($zipfile) { - - $filesize = "N/A"; - $filesizebytes = filesize($zipfile); - if($filesizebytes > 0) { - if($filesizebytes < 1048576) - $filesize = round($filesizebytes / 1048576, 2) . " MB"; - else if ($filesizebytes >= 1048576 && $filesizebytes < 10485760) - $filesize = round($filesizebytes / 1048576, 1) . " MB"; - else - $filesize = round($filesizebytes / 1048576, 0) . " MB"; - } - return($filesize); - } - - function genLinks($servername,$BUILD_ID,$zipfile) { - - global $clickthroughstr; - global $BUILD_DIR_SEG; - - $httplink = "$clickthroughstr$zipfile"; - $httplabel = "(http)"; - $httpline = "<div align=\"left\"><a href=\"$httplink\">$httplabel</a>"; - $filesize = getDropSize($zipfile); - - echo "$httpline"; - echo " "; - echo "<td>$filesize</td>"; - echo "<td>$zipfile</td>"; - // make relative so works on build.eclipse.org -- should not be relative. link to checksum should be absolute, so a "mirror" could not change it, - // bsed on changes it made to the package. - // TODO: can make some future variables so it has one value on "build" server, and another value on - // downloads, such as in buildproperties.php (value would get changed in "promtoe" script). - // Also handy/needed when doing "local test builds". - // Remember, md5 and sha1 are still in "checksum" directory, for at least initial Luna release, just not linked to. See bug - // https://bugs.eclipse.org/bugs/show_bug.cgi?id=423714 - echo "<td><a href=\"http://download.eclipse.org/eclipse/downloads/drops4/$BUILD_DIR_SEG/checksum/$zipfile.sha512\">[SHA512]</a></td>"; - //echo "<td><a href=\"./checksum/$zipfile.md5\">(md5)</a>"; - //echo " <a href=\"./checksum/$zipfile.sha1\">(sha1)</a>"; - } - ?> - - <table align="left" BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%"> - - <tr><td><div class="homeitem3col"> - <h3><a name="Repository"> Eclipse p2 Repository <a href="details.html#Repository"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" > - - <?php - - - // We expect $BUILD_ID to be defined in buildproperties.php - // But it can be defined several times in reference URI, such as once in directory name, - // and once in filename. We want the directory-like part. - // And to complicate things, in S and R builds, the segment is no longer BUILD_ID, - // but a more complicated concatination. - if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "M" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y") { - $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds"; - } else { - if ($BUILD_TYPE === "S") { - $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."milestones"; - } else { - if ($BUILD_TYPE === "R") { - $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR; - } - else { - echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />"; - // We will make an assumption that might work. - $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds"; - } - } - } - - $STREAM_REPO_URL="http://download.eclipse.org/eclipse/updates/".$STREAM_REPO_NAME; - - $pos = strpos($BUILD_ID, "RC"); - if ($pos === false) { - $isRC = false; - } else { - $isRC = true; - } - - // There are two types of M builds, some RCs, some not. - if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y" || ($BUILD_TYPE === "M" && ! $isRC)) { - $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID; - } else { - $timestamp = str_replace('-', '', $TIMESTAMP); - if ($BUILD_TYPE === "S" || $BUILD_TYPE === "R" || ($BUILD_TYPE === "M" && $isRC)) { - $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_TYPE."-".$BUILD_ID."-".$timestamp; - } else { - echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />\n"; - // We will make an assumption that might work. - $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID; - } - } - - $BUILD_REPO_URL="http://download.eclipse.org/eclipse/updates/".$BUILD_REPO_NAME; - // checking for existence is especially important for BUILD_REPOs, since they might have been removed. - // but we do it here too for sanity check. - // relative patch can be either 3 or 4 "up", depending on if on downloads, or build machine. - // either can be used to "prove existance". - $relativePath4="../../../.."; - $relativePath3="../../.."; - if ((file_exists("$relativePath3/updates/".$STREAM_REPO_NAME)) || (file_exists("$relativePath4/updates/".$STREAM_REPO_NAME))) { - echo "<tr> \n"; - echo "<p>To update your Eclipse installation to this development stream, you can use the software repository at<br />\n"; - echo " <a href=\"$STREAM_REPO_URL\">$STREAM_REPO_URL</a><br />\n"; - echo "</tr> \n"; - } - if ((file_exists("$relativePath3/updates/"."$BUILD_REPO_NAME")) || (file_exists("$relativePath4/updates/"."$BUILD_REPO_NAME")) ) { - echo "<tr> \n"; - echo "<p>To update your build to use this specific build, you can use the software repository at<br />\n"; - echo " <a href=\"$BUILD_REPO_URL\">$BUILD_REPO_URL</a><br />\n"; - echo "</tr> \n"; - } - ?> - - </table> - - <tr><td><div class="homeitem3col"> - <h3><a name="EclipseSDK"> Eclipse SDK <a href="details.html#EclipseSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %sdk% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="JUnitPlugin"> JUnit Plugin Tests and Automated Testing Framework <a href="details.html#JUnitPlugin"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %tests% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="ExamplePlugins"> Example Plug-ins <a href="details.html#ExamplePlugins"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %example% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="RCPRuntime"> RCP Runtime Binary <a href="details.html#RCPRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %rcpruntime% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="RCPSDK"> RCP SDK <a href="details.html#RCPSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %rcpsdk% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="DeltaPack"> DeltaPack <a href="details.html#DeltaPack"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %deltapack% </table> - </div></td></tr> - - - <tr><td><div class="homeitem3col"> - <h3><a name="PlatformRuntime"> Platform Runtime Binary <a href="details.html#PlatformRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %runtime% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="JDTRuntime"> JDT Runtime Binary <a href="details.html#JDTRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %jdt% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="JDTSDK"> JDT SDK <a href="details.html#JDTSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %jdtsdk% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="JDTCORE"> JDT Core Batch Compiler <a href="details.html#JDTCORE"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %jdtc% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="PDERuntime"> PDE Runtime Binary <a href="details.html#PDERuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %pde% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="PDESDK"> PDE SDK <a href="details.html#PDESDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - %pdesdk% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="CVSRuntime"> CVS Client Runtime Binary <a href="details.html#CVSRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %cvs% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="CVSSDK"> CVS Client SDK <a href="details.html#CVSSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - %cvssdk% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="SWT"> SWT Binary and Source <a href="details.html#SWT"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %swt% </table> - </div></td></tr> - - <tr><td><div class="homeitem3col"> - <h3><a name="org.eclipse.releng"> org.eclipse.releng.tools plug-in <a href="details.html#org.eclipse.releng"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> - <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > - <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> - </tr> %relengtools% </table> - </div></td></tr> - </table> - <p><br /></p> -<?php } ?> - <div id="footer"> - <ul id="footernav"> - <li class="first"><a href="http://www.eclipse.org">Home</a></li> - <li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li> - <li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li> - <li>Downloads provided under the <a href="http://www.eclipse.org/legal/epl/notice.html">Eclipse Foundation Software User Agreement</a></li> - </ul> - <p>Copyright © 2006-2013 The Eclipse Foundation. All Rights - Reserved</p> - </div> - </body> - </html> + <tr> + <?php + if (file_exists("pom_updates/index.html")) { + echo "<tr><td width=\"75%\"><font size=\"+1\">"; + echo "<a href=\"pom_updates/\"><b>POM updates made</b></a></font></td></tr>"; + } + ?> + <?php + // check if test build only, just to give warning of oversite. + // see bug 404545 + if (isset($testbuildonly) && ($testbuildonly)) { + echo "<tr><td width=\"75%\">\n"; + echo "<font size=\"+1\">\n"; + echo "Test-Build-Only flag found set. Input was not tagged.\n"; + echo "</font>\n"; + echo "</td></tr>\n"; + } + ?> + <?php + + // Use of "BUILD_ID" should work for milestones, and releases, but would require a "copy" + // being made, say for "4.5RC4" during that period we have prepared final bits, but have not + // made visible yet (if we want "N&N" visible from RC build). + + if (file_exists("news/")) { + echo "<tr><td width=\"75%\"><font size=\"+1\">"; + echo "<a href=\"http://www.eclipse.org/eclipse/news/${BUILD_ID}/eclipse_news_${BUILD_ID}.php\"><b>New and Noteworthy</b></a></font></td></tr>"; + } + // linkToAcknowledgements is a pure "marker file" + if (file_exists("linkToAcknowledgements")) { + echo "<tr><td width=\"75%\"><font size=\"+1\">"; + echo "<a href=\"http://www.eclipse.org/eclipse/development/acknowledgements_${BUILD_ID}.php\"><b>Acknowledgments</b></a>"; + echo "</font></td></tr>"; + } + // linkToReadme is a pure marker file + if (file_exists("linkToReadme")) { + echo "<tr><td width=\"75%\"><font size=\"+1\">"; + echo "<a href=\"http://www.eclipse.org/eclipse/development/readme_eclipse_${BUILD_ID}.php\"><b>Eclipse Project ${BUILD_ID} Readme</b></a>"; + echo "</font></td></tr>"; + } + + + if (isset ($BUILD_FAILED) ) { + echo "<tr><td width=\"75%\"><font size=\"+1\">"; + echo "Build Failed. See <a href=\"buildlogs.php\">logs</a>. <br />\n"; + $PATTERN='!(.*)(/buildlogs/)(.*)!'; + $result = preg_match($PATTERN, $BUILD_FAILED, $MATCHES); + // cheap short cut, since we expect only 1 such file + $summaryFile=glob("buildFailed-*"); + if ($result !== FALSE) { + $SPECIFIC_LOG=$MATCHES[3]; + echo "Specifically, see <a href=\"buildlogs/$SPECIFIC_LOG\">the log with errors</a>, \n"; + echo "or a <a href=\"$summaryFile[0]\">summary</a>. <br /> \n"; + echo "Or see traditional <a href=\"testResults.php\">Compile Logs</a> (if any). \n"; + } + echo "</td><tr>"; + // early end to table, since build failed is all we will print. + echo "</table>"; + + + } + else { + ?> + <tr> + <td width="75%"> + The page provides access to the various sections of Eclipse Platform build along with details + relating to its results and unit tests. + </td> + </tr> + </table> + + <div> + <table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%" > + <?php + //$servername = $_SERVER["SERVER_NAME"]; + if (! preg_match("/.eclipse.org/i",$servername)) { + echo "<tr> To download a file via HTTP click on its corresponding http link below."; + } else { + echo "<tr>"; + } ?> + </table> + </div> + + <div class="homeitem"> + <h3>Related Links</h3> + <ul class="midlist"> + + <?php + // for current (modern) builds, test results are always in + // 'testresults'. That directory only exists after first results + // have finished and been "published". + if (file_exists("testresults")) { + $testResultsDirName="testresults"; + } elseif (file_exists("results")) { + $testResultsDirName="results"; + } else { + $testResultsDirName=""; + } + + // The failed is given a value by the "generate Index" tasks, + // but it is supplimented by "nBoxes" and "count(expectedTestConfigs)" + // BUT, we want to maintain ability to override color with presence + // of 'overrideTestColor' marker file. + + $boxes=calcTestConfigsRan($testResultsDirName); + + $testResultsStatus = "%testsStatus%"; + if (file_exists("overrideTestColor")) { + $testResultsStatus="successful"; + } + // -3 is special code meaning no testResults directory exists yet. + elseif ($boxes == -3) { + echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending, view the <b>logs</b> for the current build.</a></li>"; + } + elseif ($testResultsStatus == "pending") { + echo "<li><a title=\"Tests are pending\" href=\"testResults.php\">Tests are pending. View the <b>logs</b> for the current build.</a></li>"; + } + elseif ($testResultsStatus == "successful") { + echo "<li><a title=\"Test results have no failures\" href=\"testResults.php\">View the <b><font color=\"#00FF00\">logs and test results</font></b> for the current build.</a></li>"; + } + elseif ($testResultsStatus == "failed") { + echo "<li><a title=\"Test results have failures\" href=\"testResults.php\">View the <b><font color=\"#FF0000\">logs and test results</font></b> for the current build.</a></li>"; + } + else { + echo "<li><a href=\"testResults.php\">View the <b>logs and test results</b> for the current build.</a></li>\n"; + } + + if ($boxes > -1) { + echo "<ul>\n"; + echo "<li>".$boxes." of ".count($expectedTestConfigs)." test configurations are complete.</li>\n"; + foreach ($expectedTestConfigs as $config) { + echo "<ul>\n"; + if (isset($testResults[$config])) { + $testRes = $testResults[$config]; + $failed = $testRes['failCount']; + $passed = $testRes['passCount']; + $skipped = $testRes['skipCount']; + $total = $failed + $passed + $skipped; + $duration = $testRes['duration']; + if ($failed > 0) { + $linkColor='red'; + } + else { + $linkColor='green'; + } + // display as list for now. Probably table later. + echo "<li>\n"; + echo "<a style=\"color:${linkColor};text-decoration:none\" href=\"testResults.php\">".$config."</a>"; + echo " (Failed: ".$failed." Passed: ".$passed." Skipped: ".$skipped." Total: ".$total." Total test time: ".$duration.")\n"; + echo "</li>\n"; + } + else { + // Yes, all configs intentionally links, since all go to the same palce, but if no results yet, would not look like one. + echo "<li>\n"; + echo "<a style=\"color:inherit;text-decoration:none\" href=\"testResults.php\">".$config."</a>"; + echo "</li>\n"; + } + echo "</ul>\n"; + } + echo "</ul>\n"; + } + + // if (file_exists("performance/performance.php")) { + // echo "<li>"; + // $generated=file_exists("performance/global_fp.php"); + // if (!$generated) + // { + // echo "<i>"; + // echo "<a href=\"performance/performance.php\">View the <b>performance results</b> for the current build.</a>"; + // if (!$generated) echo "</i>"; + // echo "</li>"; + // } + ?> + + <li><a href="https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_4.xml#target_environments">Target Platforms and Environments</a></li> + <li><a href="directory.txt">View the Git repositories used for the current build.</a></li> + <li><a href="http://wiki.eclipse.org/Platform-releng/How_to_check_integrity_of_downloads">How to verify a download.</a></li> + + <?php + # place holder: we don't currently produce these reports, and + # when we do, will need some work here. + # FWIW, we may want to construct elaborate query into CGit for this, + # even though that'd be elaborate, would get user to an area where + # they coudl tweak query, if desired? + if (file_exists("report.txt")) { + echo "<p><a href=\"report.txt\">Report of changes</a> from previous build.</p>"; + } + ?> + + <?php + if (file_exists("buildnotes/")) { + echo "<li><a href=\"buildNotes.php\">View build notes for the current build.</a></li>"; + } + ?> + </ul> + </div> + + <hr class="clearer" /> + </div> + + <?php + + function column($servername) { + + echo "<td width=\"7%\"><b>Download</b></td>"; + echo "<td width=\"7%\"><b>Size</b></td>"; + echo "<td width=\"37%\"><b>File</b></td>"; + echo "<td width=\"11%\"><b>Checksum</b></td>"; + return; + } + + function getDropSize($zipfile) { + + $filesize = "N/A"; + $filesizebytes = filesize($zipfile); + if($filesizebytes > 0) { + if($filesizebytes < 1048576) + $filesize = round($filesizebytes / 1048576, 2) . " MB"; + else if ($filesizebytes >= 1048576 && $filesizebytes < 10485760) + $filesize = round($filesizebytes / 1048576, 1) . " MB"; + else + $filesize = round($filesizebytes / 1048576, 0) . " MB"; + } + return($filesize); + } + + function genLinks($servername,$BUILD_ID,$zipfile) { + + global $clickthroughstr; + global $BUILD_DIR_SEG; + + $httplink = "$clickthroughstr$zipfile"; + $httplabel = "(http)"; + $httpline = "<div align=\"left\"><a href=\"$httplink\">$httplabel</a>"; + $filesize = getDropSize($zipfile); + + echo "$httpline"; + echo " "; + echo "<td>$filesize</td>"; + echo "<td>$zipfile</td>"; + // make relative so works on build.eclipse.org -- should not be relative. link to checksum should be absolute, so a "mirror" could not change it, + // bsed on changes it made to the package. + // TODO: can make some future variables so it has one value on "build" server, and another value on + // downloads, such as in buildproperties.php (value would get changed in "promtoe" script). + // Also handy/needed when doing "local test builds". + // Remember, md5 and sha1 are still in "checksum" directory, for at least initial Luna release, just not linked to. See bug + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=423714 + echo "<td><a href=\"http://download.eclipse.org/eclipse/downloads/drops4/$BUILD_DIR_SEG/checksum/$zipfile.sha512\">[SHA512]</a></td>"; + //echo "<td><a href=\"./checksum/$zipfile.md5\">(md5)</a>"; + //echo " <a href=\"./checksum/$zipfile.sha1\">(sha1)</a>"; + } + ?> + + <table align="left" BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH="100%"> + + <tr><td><div class="homeitem3col"> + <h3><a name="Repository"> Eclipse p2 Repository <a href="details.html#Repository"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" > + + <?php + + + // We expect $BUILD_ID to be defined in buildproperties.php + // But it can be defined several times in reference URI, such as once in directory name, + // and once in filename. We want the directory-like part. + // And to complicate things, in S and R builds, the segment is no longer BUILD_ID, + // but a more complicated concatination. + if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "M" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y") { + $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds"; + } else { + if ($BUILD_TYPE === "S") { + $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."milestones"; + } else { + if ($BUILD_TYPE === "R") { + $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR; + } + else { + echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />"; + // We will make an assumption that might work. + $STREAM_REPO_NAME=$STREAM_MAJOR.".".$STREAM_MINOR."-".$BUILD_TYPE."-"."builds"; + } + } + } + + $STREAM_REPO_URL="http://download.eclipse.org/eclipse/updates/".$STREAM_REPO_NAME; + + $pos = strpos($BUILD_ID, "RC"); + if ($pos === false) { + $isRC = false; + } else { + $isRC = true; + } + + // There are two types of M builds, some RCs, some not. + if ($BUILD_TYPE === "N" || $BUILD_TYPE === "I" || $BUILD_TYPE === "P" || $BUILD_TYPE === "X" || $BUILD_TYPE === "Y" || ($BUILD_TYPE === "M" && ! $isRC)) { + $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID; + } else { + $timestamp = str_replace('-', '', $TIMESTAMP); + if ($BUILD_TYPE === "S" || $BUILD_TYPE === "R" || ($BUILD_TYPE === "M" && $isRC)) { + $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_TYPE."-".$BUILD_ID."-".$timestamp; + } else { + echo "Unexpected value of BUILD_TYPE: $BUILD_TYPE. <br />\n"; + // We will make an assumption that might work. + $BUILD_REPO_NAME=$STREAM_REPO_NAME."/".$BUILD_ID; + } + } + + $BUILD_REPO_URL="http://download.eclipse.org/eclipse/updates/".$BUILD_REPO_NAME; + // checking for existence is especially important for BUILD_REPOs, since they might have been removed. + // but we do it here too for sanity check. + // relative patch can be either 3 or 4 "up", depending on if on downloads, or build machine. + // either can be used to "prove existance". + $relativePath4="../../../.."; + $relativePath3="../../.."; + if ((file_exists("$relativePath3/updates/".$STREAM_REPO_NAME)) || (file_exists("$relativePath4/updates/".$STREAM_REPO_NAME))) { + echo "<tr> \n"; + echo "<p>To update your Eclipse installation to this development stream, you can use the software repository at<br />\n"; + echo " <a href=\"$STREAM_REPO_URL\">$STREAM_REPO_URL</a><br />\n"; + echo "</tr> \n"; + } + if ((file_exists("$relativePath3/updates/"."$BUILD_REPO_NAME")) || (file_exists("$relativePath4/updates/"."$BUILD_REPO_NAME")) ) { + echo "<tr> \n"; + echo "<p>To update your build to use this specific build, you can use the software repository at<br />\n"; + echo " <a href=\"$BUILD_REPO_URL\">$BUILD_REPO_URL</a><br />\n"; + echo "</tr> \n"; + } + ?> + + </table> + + <tr><td><div class="homeitem3col"> + <h3><a name="EclipseSDK"> Eclipse SDK <a href="details.html#EclipseSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %sdk% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="JUnitPlugin"> JUnit Plugin Tests and Automated Testing Framework <a href="details.html#JUnitPlugin"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %tests% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="ExamplePlugins"> Example Plug-ins <a href="details.html#ExamplePlugins"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %example% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="RCPRuntime"> RCP Runtime Binary <a href="details.html#RCPRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %rcpruntime% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="RCPSDK"> RCP SDK <a href="details.html#RCPSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %rcpsdk% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="DeltaPack"> DeltaPack <a href="details.html#DeltaPack"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %deltapack% </table> + </div></td></tr> + + + <tr><td><div class="homeitem3col"> + <h3><a name="PlatformRuntime"> Platform Runtime Binary <a href="details.html#PlatformRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %runtime% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="JDTRuntime"> JDT Runtime Binary <a href="details.html#JDTRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %jdt% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="JDTSDK"> JDT SDK <a href="details.html#JDTSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %jdtsdk% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="JDTCORE"> JDT Core Batch Compiler <a href="details.html#JDTCORE"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %jdtc% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="PDERuntime"> PDE Runtime Binary <a href="details.html#PDERuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %pde% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="PDESDK"> PDE SDK <a href="details.html#PDESDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + %pdesdk% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="CVSRuntime"> CVS Client Runtime Binary <a href="details.html#CVSRuntime"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %cvs% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="CVSSDK"> CVS Client SDK <a href="details.html#CVSSDK"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + %cvssdk% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="SWT"> SWT Binary and Source <a href="details.html#SWT"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %swt% </table> + </div></td></tr> + + <tr><td><div class="homeitem3col"> + <h3><a name="org.eclipse.releng"> org.eclipse.releng.tools plug-in <a href="details.html#org.eclipse.releng"><img src="../../../eclipse.org-common/stylesheets/more.gif" title="More..." alt="[More]"></a></h3> + <table border=0 cellspacing=2 cellpadding=0 width="99%" bordercolor="#999999" > + <tr> <td align=RIGHT valign=TOP width="5%"> <div align="left"> </div></td><td width="36%"><b>Platform</b></td><?php column($servername); ?> + </tr> %relengtools% </table> + </div></td></tr> + </table> + <p><br /></p> + <?php } ?> + <div id="footer"> + <ul id="footernav"> + <li class="first"><a href="http://www.eclipse.org">Home</a></li> + <li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li> + <li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li> + <li>Downloads provided under the <a href="http://www.eclipse.org/legal/epl/notice.html">Eclipse Foundation Software User Agreement</a></li> + </ul> + <p>Copyright © 2006-2013 The Eclipse Foundation. All Rights + Reserved</p> + </div> + </body> + </html> diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php index a948b11ef..17d95cb13 100644 --- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php +++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/publishingFiles/templateFiles/utilityFunctions.php @@ -52,8 +52,8 @@ directory. function calcTestConfigsRan($testResultsDirName) { - global $expectedtestConfigs; - global $foundConfigs; + global $expectedTestConfigs; + global $testResults; $boxes=0; // the include file, testConfigs.php defines 'testConfigs' array, @@ -67,14 +67,12 @@ function calcTestConfigsRan($testResultsDirName) { if (file_exists("testConfigs.php")) { include "testConfigs.php"; - $testConfigs = &$expectedTestConfigs; } else { // minus 2 is code for "testConfigs not found" $boxes=-2; - $testConfigs = array(); + $expectedTestConfigs = array(); } - $expectedtestConfigs=count($testConfigs); if (file_exists("buildproperties.php")) { // be sure any previous are reset @@ -99,10 +97,31 @@ function calcTestConfigsRan($testResultsDirName) { if (file_exists("$testResultsDirName/consolelogs")) { $buildDir = dir("$testResultsDirName/consolelogs"); while ($file = $buildDir->read()) { - for ($i = 0 ; $i < $expectedtestConfigs ; $i++) { - if (strncmp($file, $testConfigs[$i], count($testConfigs[$i])) == 0) { + for ($i = 0 ; $i < count($expectedTestConfigs) ; $i++) { + if (strncmp($file, $expectedTestConfigs[$i], count($expectedTestConfigs[$i])) == 0) { $boxes++; - $foundConfigs[] = $testConfigs[$i]; + // our way of matching job names, with test configs, is very limited, + // at the moment ... just looking for three letter match between the two. + // First make sure we get "fresh" list of test summary files, each time. + $testResultsSummaryFiles = glob($testResultsDirName."/ep*-unit-*.xml"); + //echo "DEBUG: found ".count($testResultsSummaryFiles). "summary files<br />"; + //echo "DEBUG: while expected config was $expectedTestConfigs[$i]<br />"; + // Then match the "test config" we found, with the test summary file. + if (strpos($expectedTestConfigs[$i], "lin") !== FALSE) { + // echo "DEBUG: found matching config: $expectedTestConfigs[$i]<br />"; + foreach ($testResultsSummaryFiles as $summFileName) { + // echo "DEBUG: processing $summFileName<br />"; + if (strpos($summFileName, "lin") !== FALSE) { + //echo "DEBUG: found matching summary file: $summFileName<br />"; + $xmlResults = simplexml_load_file($summFileName); + $testResults[$expectedTestConfigs[$i]]["duration"]=$xmlResults->duration; + $testResults[$expectedTestConfigs[$i]]["failCount"]=$xmlResults->failCount; + $testResults[$expectedTestConfigs[$i]]["passCount"]=$xmlResults->passCount; + $testResults[$expectedTestConfigs[$i]]["skipCount"]=$xmlResults->skipCount; + } + } + } + break; } } @@ -167,7 +186,7 @@ function printTestSummaryStatus() { // don't forget to end link, after images decided. if ($boxes > -1) { - $boxesTitle=$boxes." of ".$expectedtestConfigs." test platforms finished."; + $boxesTitle=$boxes." of ".count($expectedTestConfigs)." test platforms finished."; } if ($testResultsDirName === "results") { echo "<a href=\"results/testResults.html\" title=\"$boxesTitle\" style=\"text-decoration: none\">"; @@ -182,7 +201,7 @@ function printTestSummaryStatus() { // assume if no results at all, after 12 hours, assume they didn't run for unknown reasosn $testimage="caution.gif"; $testalt="Integration tests did not run, due to unknown reasons."; - } elseif ($boxes > 0 && $boxes < $expectedtestConfigs) { + } elseif ($boxes > 0 && $boxes < count($expectedTestConfigs)) { if ($diff > 1440) { $testimage="junit.gif"; $testalt="Tests results are available but did not finish on all machines"; @@ -190,7 +209,7 @@ function printTestSummaryStatus() { $testimage="runtests.gif"; $testalt="Integration tests are running ..."; } - } elseif ($boxes == $expectedtestConfigs) { + } elseif ($boxes == count($expectedTestConfigs)) { $testimage="junit.gif"; $testalt="Tests results are available"; } else { @@ -199,7 +218,7 @@ function printTestSummaryStatus() { } echo "<img style=\"border:0px\" src=\"../images/$testimage\" title=\"$testalt\" alt=\"$testalt\" />"; if ($boxes > -1) { - echo " (".$boxes." of ".$expectedtestConfigs." platforms)"; + echo " (".$boxes." of ".count($expectedTestConfigs)." platforms)"; } echo "</a>\n"; } else { |