CI: handling of new compilation warnings
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -110,7 +110,7 @@ MODIFIED_FILES=`git log $TARGET_INIT_COMMIT..$MERGE_COMMMIT --oneline --name-sta
|
|||||||
NB_WARNINGS_FILES=0
|
NB_WARNINGS_FILES=0
|
||||||
|
|
||||||
# Retrieve list of warnings
|
# Retrieve list of warnings
|
||||||
LIST_WARNING_FILES=`egrep "error:|warning:" archives/*/*.Rel15.txt archives/*/basic_simulator_*txt | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto" | sed -e "s#^.*/home/ubuntu/tmp/##" -e "s#^.*/tmp/CI-eNB/##" -e "s#common/utils/.*/itti#common/utils/itti#" | awk -F ":" '{print $1}' | sort | uniq`
|
LIST_WARNING_FILES=`egrep "error:|warning:" archives/*/*.Rel15.txt | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto" | sed -e "s#^.*/home/ubuntu/tmp/##" -e "s#^.*/tmp/CI-eNB/##" -e "s#common/utils/.*/itti#common/utils/itti#" | awk -F ":" '{print $1}' | sort | uniq`
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "List of files that have been modified by the Merge Request AND"
|
echo "List of files that have been modified by the Merge Request AND"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function details_table {
|
|||||||
echo " <th>Message</th>" >> $3
|
echo " <th>Message</th>" >> $3
|
||||||
echo " </tr>" >> $3
|
echo " </tr>" >> $3
|
||||||
|
|
||||||
LIST_MESSAGES=`egrep "error:|warning:" $2 | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto"`
|
LIST_MESSAGES=`egrep "error:|warning:" $2 | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto|disabling jobserver mode"`
|
||||||
COMPLETE_MESSAGE="start"
|
COMPLETE_MESSAGE="start"
|
||||||
for MESSAGE in $LIST_MESSAGES
|
for MESSAGE in $LIST_MESSAGES
|
||||||
do
|
do
|
||||||
@@ -146,7 +146,7 @@ function summary_table_row {
|
|||||||
else
|
else
|
||||||
echo " <td bgcolor = \"red\" >$NB_ERRORS</th>" >> ./build_results.html
|
echo " <td bgcolor = \"red\" >$NB_ERRORS</th>" >> ./build_results.html
|
||||||
fi
|
fi
|
||||||
NB_WARNINGS=`egrep "warning:" $2 | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto" | egrep -c "warning:"`
|
NB_WARNINGS=`egrep "warning:" $2 | egrep -v "jobserver unavailable|Clock skew detected.|flexran.proto|disabling jobserver mode" | egrep -c "warning:"`
|
||||||
if [ $NB_WARNINGS -eq 0 ]
|
if [ $NB_WARNINGS -eq 0 ]
|
||||||
then
|
then
|
||||||
echo " <td bgcolor = \"green\" >$NB_WARNINGS</th>" >> ./build_results.html
|
echo " <td bgcolor = \"green\" >$NB_WARNINGS</th>" >> ./build_results.html
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ function main() {
|
|||||||
shift 1;;
|
shift 1;;
|
||||||
-k | --skip-shared-libraries)
|
-k | --skip-shared-libraries)
|
||||||
SKIP_SHARED_LIB_FLAG="True"
|
SKIP_SHARED_LIB_FLAG="True"
|
||||||
echo_info "Skipping build of shared libraries, rfsimulator, basicsimulator and transport protocol libraries"
|
echo_info "Skipping build of shared libraries, rfsimulator and transport protocol libraries"
|
||||||
shift;;
|
shift;;
|
||||||
--ninja)
|
--ninja)
|
||||||
CMAKE_CMD="$CMAKE_CMD -GNinja"
|
CMAKE_CMD="$CMAKE_CMD -GNinja"
|
||||||
@@ -896,7 +896,7 @@ function main() {
|
|||||||
$build_dir rfsimulator \
|
$build_dir rfsimulator \
|
||||||
librfsimulator.so $dbin/librfsimulator.so.$REL
|
librfsimulator.so $dbin/librfsimulator.so.$REL
|
||||||
|
|
||||||
echo_info "Compiling basicsimulator"
|
echo_info "Compiling tcp_bridge_oai"
|
||||||
compilations \
|
compilations \
|
||||||
$build_dir tcp_bridge_oai \
|
$build_dir tcp_bridge_oai \
|
||||||
libtcp_bridge_oai.so $dbin/libtcp_bridge_oai.so.$REL
|
libtcp_bridge_oai.so $dbin/libtcp_bridge_oai.so.$REL
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ check_warnings() {
|
|||||||
#we look for 'warning:' in the compilation log file
|
#we look for 'warning:' in the compilation log file
|
||||||
#this is how gcc starts a warning
|
#this is how gcc starts a warning
|
||||||
#this is not perfect, we may get false positive
|
#this is not perfect, we may get false positive
|
||||||
warning_count=`grep "warning:" "$1"|wc -l`
|
warning_count=`grep "warning:" "$1" | egrep -v "jobserver unavailable|disabling jobserver mode" | wc -l`
|
||||||
if [ $warning_count -gt 0 ]; then
|
if [ $warning_count -gt 0 ]; then
|
||||||
echo_error "WARNING: $warning_count warnings. See $1"
|
echo_error "WARNING: $warning_count warnings. See $1"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user