common/build.xml
changeset 252 f7fc039dd3a3
parent 251 f3105028766d
child 253 02e483ad6786
equal deleted inserted replaced
251:f3105028766d 252:f7fc039dd3a3
   770           <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
   770           <propertyregex override="yes" property="preprocessedlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_compile_preprocessed.log"/>
   771 	        <echo message="Preprocessing @{logfile}..."/>
   771 	        <echo message="Preprocessing @{logfile}..."/>
   772           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
   772           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${preprocessedlogfile}" error="${build.log.dir}/analysis/${build.id}_preprocess.log" append="true">
   773             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
   773             <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/>
   774           </exec>
   774           </exec>
       
   775         </sequential>
   775       </for>
   776       </for>
   776       
   777       
   777       <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
   778       <echo message="Extracting whatlog information from *whatlog*_compile_preprocessed.log files"/>
   778       <for param="whatlogfile">
   779       <for param="whatlogfile">
   779         <path>
   780         <path>
   780           <fileset dir="${build.log.dir}">
   781           <fileset dir="${build.log.dir}/analysis">
   781             <include name="*whatlog*_compile_preprocessed.log"/>
   782             <include name="*whatlog*_compile_preprocessed.log"/>
   782           </fileset>
   783           </fileset>
   783         </path>
   784         </path>
   784         <sequential>
   785         <sequential>
   785           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
   786           <echo message="Extracting whatlog info from @{whatlogfile}..."/>
   786           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
   787           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true">
   787             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   788             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   788             <arg value="--releaseable"/>
   789             <arg value="--releaseable"/>
   789             <arg value="--log=${build.log.dir}/analysis/${whatlogfile}"/>
   790             <arg value="--log=@{whatlogfile}"/>
   790             <arg value="--basedir=${build.log.dir}"/>
   791             <arg value="--basedir=${build.log.dir}"/>
   791             <arg value="--append"/>
   792             <arg value="--append"/>
   792           </exec>
   793           </exec>
   793         </sequential>
   794         </sequential>
   794       </for>
   795       </for>
   795       
   796       
   796       <echo message="Extracting error information from *_compile_preprocessed.log files"/>
   797       <echo message="Extracting error information from *_compile_preprocessed.log files"/>
   797       <for param="raptorlogfile">
   798       <for param="raptorlogfile">
   798         <path>
   799         <path>
   799           <fileset dir="${build.log.dir}">
   800           <fileset dir="${build.log.dir}/analysis">
   800             <include name="*_compile_preprocessed.log"/>
   801             <include name="*_compile_preprocessed.log"/>
   801           </fileset>
   802           </fileset>
   802         </path>
   803         </path>
   803         <sequential>
   804         <sequential>
   804           <echo message="Extracting error info from @{raptorlogfile}..."/>
   805           <echo message="Extracting error info from @{raptorlogfile}..."/>
   805           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   806           <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_raptorparse.log" append="true">
   806             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   807             <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/>
   807             <arg value="--error"/>
   808             <arg value="--error"/>
   808             <arg value="--log=${build.log.dir}/analysis/${raptorlogfile}"/>
   809             <arg value="--log=@{raptorlogfile}"/>
   809             <arg value="--basedir=${build.log.dir}/raptorbits"/>
   810             <arg value="--basedir=${build.log.dir}/raptorbits"/>
   810             <arg value="--append"/>
   811             <arg value="--append"/>
   811           </exec>
   812           </exec>
   812         </sequential>
   813         </sequential>
   813       </for>
   814       </for>
   844       <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
   845       <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/>
   845       
   846       
   846       <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
   847       <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml">
   847         <data expandProperties="yes">
   848         <data expandProperties="yes">
   848           ant: antProperties()
   849           ant: antProperties()
       
   850           raptor_summary: csv(${build.log.dir}/raptorbits/summary.csv,{separator:',',headers:[category,subcategory,severity,component,phase,recipe,file,line]})
   849           files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
   851           files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]})
   850         </data>
   852         </data>
   851       </fmpp>
   853       </fmpp>
   852 
   854 
   853     </target>
   855     </target>