Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
d0ca8f12
Commit
d0ca8f12
authored
Jun 08, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: handling of new compilation warnings
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
5cb573fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ci-scripts/checkAddedWarnings.sh
ci-scripts/checkAddedWarnings.sh
+1
-1
ci-scripts/reportBuildLocally.sh
ci-scripts/reportBuildLocally.sh
+2
-2
cmake_targets/build_oai
cmake_targets/build_oai
+2
-2
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+1
-1
No files found.
ci-scripts/checkAddedWarnings.sh
View file @
d0ca8f12
...
@@ -110,7 +110,7 @@ MODIFIED_FILES=`git log $TARGET_INIT_COMMIT..$MERGE_COMMMIT --oneline --name-sta
...
@@ -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"
...
...
ci-scripts/reportBuildLocally.sh
View file @
d0ca8f12
...
@@ -53,7 +53,7 @@ function details_table {
...
@@ -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 {
...
@@ -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
...
...
cmake_targets/build_oai
View file @
d0ca8f12
...
@@ -406,7 +406,7 @@ function main() {
...
@@ -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() {
...
@@ -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
...
...
cmake_targets/tools/build_helper
View file @
d0ca8f12
...
@@ -169,7 +169,7 @@ check_warnings() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment