755 <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log"> |
755 <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_collisions.log"> |
756 <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/> |
756 <arg value="${sf.common.config.dir}/tools/analysis/find_collisions.pl"/> |
757 <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/> |
757 <arg value="${build.log.dir}/analysis/${build.id}_what_results.csv"/> |
758 </exec> |
758 </exec> |
759 |
759 |
760 <echo message="Running yarp over *_compile.log files"/> |
760 <echo message="Running yarp over *_compile.log files"/> |
761 <for param="logfile"> |
761 <for param="logfile"> |
762 <path> |
762 <path> |
763 <fileset dir="${build.log.dir}"> |
763 <fileset dir="${build.log.dir}"> |
764 <include name="*_compile.log"/> |
764 <include name="*_compile.log"/> |
765 <exclude name="*build_check_compile.log"/> |
765 <exclude name="*build_check_compile.log"/> |
766 </fileset> |
766 </fileset> |
767 </path> |
767 </path> |
768 <sequential> |
768 <sequential> |
769 <propertyregex override="yes" property="yarpfile" input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/> |
769 <propertyregex override="yes" property="yarpfile" input="@{logfile}" regexp=".*[\\|\/](.*)_compile\.log" replace="\1_yarp.csv"/> |
770 <propertyregex override="yes" property="yarpfile_short" input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/> |
770 <propertyregex override="yes" property="yarpfile_short" input="${yarpfile}" regexp="[^_]*_[^_]*_[^_]*_(.+)_[^_]*_yarp\.csv" replace="YARP_\1"/> |
771 <echo message="Yarping @{logfile}..."/> |
771 <echo message="Yarping @{logfile}..."/> |
772 <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_yarp.log" append="true"> |
772 <exec executable="perl" dir="${build.drive}" failonerror="false" output="${build.log.dir}/analysis/${build.id}_yarp.log" append="true"> |
773 <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/> |
773 <arg value="${sf.common.config.dir}/tools/analysis/yarp.pl"/> |
774 <arg value="@{logfile}"/> |
774 <arg value="@{logfile}"/> |
775 <arg value="${build.log.dir}/analysis/${yarpfile}"/> |
775 <arg value="${build.log.dir}/analysis/${yarpfile}"/> |
776 </exec> |
776 </exec> |
777 <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true"> |
777 <exec executable="cmd" output="${build.drive}/output/logs/analysis/tmp_yarp_files.csv" append="true"> |
778 <arg value="/c"/> |
778 <arg value="/c"/> |
779 <arg value="echo"/> |
779 <arg value="echo"/> |
780 <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/> |
780 <arg value="${yarpfile_short},${sf.spec.publish.networkdrive}\${sf.spec.job.name}\builds\${sf.spec.job.codeline}\${build.id}\logs\analysis\${yarpfile},${build.drive}\output\logs\analysis\${yarpfile}"/> |
781 </exec> |
781 </exec> |
782 </sequential> |
782 </sequential> |
783 </for> |
783 </for> |
784 |
784 |
785 <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors"> |
785 <exec executable="perl" dir="${build.drive}" failonerror="false" outputproperty="sf.job.totalyarperrors"> |
786 <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/> |
786 <arg value="${sf.common.config.dir}/tools/analysis/parse_yarp_files.pl"/> |
787 <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/> |
787 <arg value="${build.drive}/output/logs/analysis/tmp_yarp_files.csv"/> |
788 </exec> |
788 </exec> |
789 <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/> |
789 <echo message="Total yarp errors: ${sf.job.totalyarperrors}"/> |
790 |
790 |
791 <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml"> |
791 <fmpp sourceFile="${sf.common.config.dir}/diamonds/sf-run-analysis.xml.ftl" outputFile="${build.drive}/output/logs/sf-run-analysis.xml"> |
792 <data expandProperties="yes"> |
792 <data expandProperties="yes"> |
793 ant: antProperties() |
793 ant: antProperties() |
794 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
794 files: csv(${build.drive}/output/logs/analysis/tmp_yarp_files.csv,{separator:',',headers:[name,path,localpath]}) |
795 </data> |
795 </data> |
796 </fmpp> |
796 </fmpp> |
797 |
797 |
798 <echo message="Extracting whatlog information from *whatlog*_compile.log files"/> |
798 <echo message="Extracting whatlog information from *whatlog*_compile.log files"/> |
799 <for param="logfile"> |
799 <for param="logfile"> |
800 <path> |
800 <path> |
801 <fileset dir="${build.log.dir}"> |
801 <fileset dir="${build.log.dir}"> |
802 <include name="*whatlog*_compile.log"/> |
802 <include name="*whatlog*_compile.log"/> |
803 </fileset> |
803 </fileset> |
804 </path> |
804 </path> |
805 <sequential> |
805 <sequential> |
806 <propertyregex override="yes" property="whatlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_preprocessed.log"/> |
806 <propertyregex override="yes" property="whatlogfile" input="@{logfile}" regexp=".*[\\|\/].*\.\d+_+(.*)_compile\.log" replace="\1_preprocessed.log"/> |
807 <echo message="Preprocessing @{logfile}..."/> |
807 <echo message="Preprocessing @{logfile}..."/> |
808 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
808 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" input="@{logfile}" output="${build.log.dir}/analysis/${whatlogfile}" error="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
809 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
809 <arg value="${sf.common.config.dir}/tools/raptor/preprocess_log.pl"/> |
810 <arg value="--in=@{logfile}"/> |
810 </exec> |
811 <arg value="--out=${build.log.dir}/analysis/${whatlogfile}"/> |
811 <echo message="Extracting whatlog info from ${whatlogfile}..."/> |
812 </exec> |
812 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
813 <echo message="Extracting whatlog info from ${whatlogfile}..."/> |
813 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
814 <exec executable="perl" dir="${sf.common.config.dir}/tools/raptor" failonerror="false" output="${build.log.dir}/analysis/${build.id}_whatlog.log" append="true"> |
814 <arg value="--releaseable"/> |
815 <arg value="${sf.common.config.dir}/tools/raptor/parse.pl"/> |
815 <arg value="--log=${build.log.dir}/analysis/${whatlogfile}"/> |
816 <arg value="--releaseable"/> |
816 <arg value="--basedir=${build.log.dir}/releaseables"/> |
817 <arg value="--log=${build.log.dir}/analysis/${whatlogfile}"/> |
817 <arg value="--append"/> |
818 <arg value="--basedir=${build.log.dir}/releaseables"/> |
818 </exec> |
819 <arg value="--append"/> |
819 </sequential> |
820 </exec> |
820 </for> |
821 </sequential> |
|
822 </for> |
|
823 |
821 |
824 </target> |
822 </target> |
825 |
823 |
826 <target name="sf-run-evalid"> |
824 <target name="sf-run-evalid"> |
827 <delete dir="${build.drive}/output/md5"/> |
825 <delete dir="${build.drive}/output/md5"/> |