diff options
| author | David Williams | 2014-11-11 06:21:50 +0000 |
|---|---|---|
| committer | David Williams | 2014-11-11 06:21:50 +0000 |
| commit | 983f7b3e66b7a7701bd97a275daef02624e5f1a5 (patch) | |
| tree | ca951e06642ebe29ed792f29ed35d856cc9d04e2 | |
| parent | e9750e159d252c883ad51c318ee3032bc4d14657 (diff) | |
| download | eclipse.platform.releng.aggregator-983f7b3e66b7a7701bd97a275daef02624e5f1a5.tar.gz eclipse.platform.releng.aggregator-983f7b3e66b7a7701bd97a275daef02624e5f1a5.tar.xz eclipse.platform.releng.aggregator-983f7b3e66b7a7701bd97a275daef02624e5f1a5.zip | |
Bug 444243 - Improve scripts to handle performance tests.
Corrected spelling error.
3 files changed, 56 insertions, 34 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/publish.xml b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/publish.xml index 2318cd26b..1e24e4e43 100644 --- a/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/publish.xml +++ b/eclipse.platform.releng.tychoeclipsebuilder/eclipse/buildScripts/publish.xml @@ -86,15 +86,15 @@ <contains string="${job}" substring="-perf-" /> </condition> - <property name="xmlDirectoryName" value="${result}/${testType}results/xml" /> - <property name="dropDirectoryName" value="${result}" /> + <property name="xmlDirectoryName" value="${result}/xml" /> + <property name="dropDirectoryName" value="${postingDirectory}/${buildLabel}" /> <property name="testResultsTemplateFileName" value="${basedir}/templateFiles/${testTemplate}" /> <!-- TODO: should require this, and others to be passed in, and fail, if not --> <property name="dropTemplateFileName" value="${basedir}/templateFiles/index.html.template" /> - <property name="testResultsHtmlFileName" value="${testType}Results.php" /> - <property name="hrefTestResultsTargetPath" value="${testType}results/html" /> + <property name="testResultsHtmlFileName" value="testResults.php" /> + <property name="hrefTestResultsTargetPath" value="${result}/html" /> <property name="hrefCompileLogsTargetPath" value="compilelogs" /> - <property name="compileLogsDirectoryName" value="${result}/compilelogs" /> + <property name="compileLogsDirectoryName" value="${dropDirectoryName}/compilelogs" /> <property name="testManifestFileName" value="${basedir}/testManifest.xml" /> diff --git a/production/testScripts/genTestIndexes.xml b/production/testScripts/genTestIndexes.xml index a402d1fd5..47a7e780e 100644 --- a/production/testScripts/genTestIndexes.xml +++ b/production/testScripts/genTestIndexes.xml @@ -11,7 +11,10 @@ <fail unless="eclipseStream" /> <fail unless="job" /> - + <property + name="isBuildTested" + value="true" /> + <script language="javascript"> <![CDATA[ var buildId = project.getProperty("buildId"); @@ -46,6 +49,14 @@ <property name="postingDirectory" value="${buildRoot}/siteDir/eclipse/downloads/${dropsDirXSegment}" /> + + <condition + property="resultLocation" + value="${postingDirectory}/${buildLabel}/performance/baseline"> + <contains + string="${job}" + substring="-baseline" /> + </condition> <condition property="resultLocation" value="${postingDirectory}/${buildLabel}/performance" @@ -54,6 +65,9 @@ string="${job}" substring="-perf-" /> </condition> + <property + name="result" + value="${resultLocation}" /> <!-- Note: results template is selected based on conventions used in hudson jobs names. Should move to properties saved in during test run? @@ -89,6 +103,7 @@ substring="-perf-" /> </and> </condition> + <condition property="testManifestFileName" value="${publishingContent}/performanceTestManifest.xml" @@ -101,9 +116,14 @@ </and> </condition> - <echo message="= = Properties in genTestIndexes.xml = = " /> - <echo message="job: ${job}" /> - <echo message="testTemplate: ${testTemplate}" /> + <echo message="= = Properties in genTestIndexes.xml, init = = " /> + <echo message=" job: ${job}" /> + <echo message=" postingDirectory" /> + <echo message=" testTemplate: ${testTemplate}" /> + <echo message=" resultLocation: ${resultLocation}" /> + <echo message=" result: ${result}" /> + <echo message=" isBuildTested: ${isBuildTested}" /> + @@ -144,7 +164,10 @@ name="generateEclipseIndex" depends="init"> - + <property + name="generatorClass" + value="org.eclipse.releng.generators.EclipseTestResultsGeneratorNoMail" /> +<!-- to be removed <condition property="generatorClass" value="org.eclipse.releng.generators.EclipseTestResultsGeneratorNoMail"> @@ -155,8 +178,8 @@ <property name="generatorClass" value="org.eclipse.releng.generators.EclipseTestResultsGenerator" /> - - <echo message="DEBUG: generatorClass: ${generatorClass}" /> +--> + <echo message=" DEBUG: generatorClass: ${generatorClass}" /> <available classname="${generatorClass}" property="class" @@ -166,9 +189,7 @@ name="genTestIndexesdropTokenList" value="%sdk%,%tests%,%example%,%rcpruntime%,%rcpsdk%,%deltapack%,%runtime%,%jdt%,%jdtsdk%,%jdtc%,%pde%,%pdesdk%,%cvs%,%cvssdk%,%swt%,%relengtools%" /> - <property - name="isBuildTested" - value="true" /> + <property name="dropTokenList" value="${genTestIndexesdroptTokenList}" /> @@ -176,22 +197,26 @@ name="platformIdentifierToken" value="%platform%" /> + <property name="indexFileName" value="index.php" /> - <property - name="result" - value="${postingDirectory}/${buildId}" /> + <property name="testResultsTemplateFileName" value="${publishingContent}/templateFiles/${testTemplate}" /> <property name="dropTemplateFileName" value="${publishingContent}/templateFiles/index.php.template" /> + + <fail + unless="testManifestFileName" + message="testManifestFileName should have been defined, by now?" /> + <!-- to be removed <property name="testManifestFileName" value="${publishingContent}/testManifest.xml" /> - + --> <antcall target="publishEclipseIndex"> </antcall> @@ -202,32 +227,29 @@ depends="init"> + <fail unless="buildType" message="buildType should have been defined by now" /> + <fail unless="result" message="result should have been defined by now" /> + <!--regenerate the index page with links to test results --> <ant antfile="${EBuilderDir}/eclipse/buildScripts/publish.xml" dir="${publishingContent}" target="generateIndex"> - <property - name="isBuildTested" - value="true" /> - <property - name="buildType" - value="${buildType}" /> + <property name="dropTokenList" value="%sdk%,%tests%,%example%,%rcpruntime%,%rcpsdk%,%deltapack%,%runtime%,%jdt%,%jdtsdk%,%jdtc%,%pde%,%pdesdk%,%cvs%,%cvssdk%,%swt%,%relengtools%" /> <property name="platformIdentifierToken" value="%platform%" /> - <property - name="indexFileName" - value="index.php" /> - <property - name="result" - value="${resultLocation}" /> + <property name="testResultsTemplateFileName" value="${publishingContent}/templateFiles/${testTemplate}" /> + + <property + name="indexFileName" + value="index.php" /> <property name="dropTemplateFileName" value="${publishingContent}/templateFiles/index.php.template" /> diff --git a/production/testScripts/updateTestResultsPages.sh b/production/testScripts/updateTestResultsPages.sh index 218b68c64..81899cb49 100755 --- a/production/testScripts/updateTestResultsPages.sh +++ b/production/testScripts/updateTestResultsPages.sh @@ -105,8 +105,8 @@ then exit 1 fi -if [[ $JOB_NAME =~ ^.*-unit-.*$ ]] -then +#if [[ $JOB_NAME =~ ^.*-unit-.*$ ]] +#then BUILDFILE=${aggregatorDir}/production/testScripts/genTestIndexes.xml @@ -147,7 +147,7 @@ then exit $RC fi -fi +#fi perfJobPattern="^.*-perf-.*$" perfBaselineJobPattern="^.*-perf-baseline.*$" |
