common/build.postbuild.xml
changeset 764 d00048f1b036
parent 755 cdb4af7acafc
child 768 edc6746cee45
equal deleted inserted replaced
763:5fdd5e70280d 764:d00048f1b036
   321             <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
   321             <arg value="${sf.common.config.dir}/tools/analysis/scan_antlogs.pl"/>
   322             <arg value="*ant*"/>
   322             <arg value="*ant*"/>
   323         </exec>
   323         </exec>
   324     </target>
   324     </target>
   325 
   325 
   326     <target name="sf-run-analysis-raptor">
   326     <target name="sf-run-analysis-raptor">            
   327       <!-- Process raptor logs to remove non-well-formedness  -->
       
   328       <echo message="Preprocessing *_compile.log files"/>
   327       <echo message="Preprocessing *_compile.log files"/>
   329       <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/>
   328       <delete file="${build.log.dir}/analysis/${build.id}_preprocess.log"/>
   330       <for param="logfile">
   329       <for param="logfile">
   331         <path>
   330         <path>
   332           <fileset dir="${build.log.dir}">
   331           <fileset dir="${build.log.dir}">
   342           </exec>
   341           </exec>
   343 	  <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/>
   342 	  <echo file="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true" message="${@{logfile}}${line.separator}"/>
   344         </sequential>
   343         </sequential>
   345       </for>
   344       </for>
   346       
   345       
   347       <!-- Cook the processed raptor logs to produce something in the right format for the BRAG system -->
       
   348       <mkdir dir="${build.log.dir}/summary/"/>
       
   349       <exec executable="perl" output="${build.log.dir}/summary/sbs_BRAG.xml" logError="yes" failonerror="false">
       
   350         <arg value="${sf.common.config.dir}/tools/brag/sbsToBRAG.pl"/>
       
   351         <arg value="${build.log.dir}/analysis/*_compile_preprocessed.log"/>
       
   352       </exec>
       
   353       
       
   354       <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
   346       <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
   355       <for param="whatlogfile">
   347       <apply executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" parallel="true">
   356         <path>
   348         <arg value="releaseables.pl"/>
   357           <fileset dir="${build.log.dir}/analysis">
   349         <arg value="--basedir=${build.log.dir}"/>
   358             <include name="*whatlog*_compile_preprocessed.log"/>
   350         <fileset dir="${build.log.dir}/analysis">
   359           </fileset>
   351           <include name="*whatlog*_compile_preprocessed.log"/>
   360         </path>
   352         </fileset>
   361         <sequential>
   353       </apply>
   362           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
       
   363           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
       
   364             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
       
   365             <arg value="--releaseable"/>
       
   366             <arg value="--log=@{whatlogfile}"/>
       
   367             <arg value="--basedir=${build.log.dir}"/>
       
   368             <arg value="--append"/>
       
   369           </exec>
       
   370         </sequential>
       
   371       </for>
       
   372       
   354       
   373       <echo message="Extracting error information from *_compile_preprocessed.log files"/>
   355       <echo message="Extracting error information from *_compile_preprocessed.log files"/>
   374       <for param="raptorlogfile">
   356       <apply executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" parallel="true">
   375         <path>
   357         <arg value="uh.pl"/>
   376           <fileset dir="${build.log.dir}/analysis">
   358         <arg value="--basedir=${build.log.dir}"/>
   377             <include name="*_compile_preprocessed.log"/>
   359         <fileset dir="${build.log.dir}/analysis">
   378           </fileset>
   360           <include name="*_compile_preprocessed.log"/>
   379         </path>
   361         </fileset>
   380         <sequential>
   362       </apply>
   381           <echo message="Extracting error info from @{raptorlogfile}..."/>
       
   382           <propertyregex override="yes" property="raptorconfig" input="@{raptorlogfile}" regexp=".*[\\/].*__(.*)_(single|multiple)_thread.*" replace="\1" casesensitive="false" defaultValue="noconfig"/>
       
   383           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
       
   384             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
       
   385             <arg value="--error"/>
       
   386             <arg value="--warning"/>
       
   387             <arg value="--unreciped"/>
       
   388             <arg value="--recipe"/>
       
   389             <arg value="--config=${raptorconfig}"/>
       
   390             <arg value="--log=@{raptorlogfile}"/>
       
   391             <arg value="--basedir=${build.log.dir}/raptorbits"/>
       
   392             <arg value="--append"/>
       
   393           </exec>
       
   394         </sequential>
       
   395       </for>
       
   396       
   363       
   397       <echo message="Summarizing Raptor data"/>
   364       <echo message="Summarizing Raptor data"/>
   398       <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   365       <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   399         <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
   366         <arg value="${sf.common.config.dir}/tools/raptor/summarize.pl"/>
   400         <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
   367         <arg value="--raptorbitsdir=${build.log.dir}/raptorbits"/>
   525 
   492 
   526     <target name="sf-run-analysis-diamonds">      
   493     <target name="sf-run-analysis-diamonds">      
   527       <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis-diamonds.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis-diamonds.xml">
   494       <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis-diamonds.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis-diamonds.xml">
   528         <data expandProperties="yes">
   495         <data expandProperties="yes">
   529           ant: antProperties()
   496           ant: antProperties()
   530           raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,phase,recipe,file,line]})
   497           raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,config,component,mmp,phase,recipe,file,line]})
   531         </data>
   498         </data>
   532       </fmpp>
   499       </fmpp>
   533     </target>
   500     </target>
   534     
   501     
   535     <target name="sf-links-to-diamonds">
   502     <target name="sf-links-to-diamonds">