Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
0b6d4f20
Commit
0b6d4f20
authored
Jul 26, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): better reporting when build fails
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
6674bd27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
ci-scripts/generateHtmlReport.py
ci-scripts/generateHtmlReport.py
+9
-3
No files found.
ci-scripts/generateHtmlReport.py
View file @
0b6d4f20
...
@@ -648,6 +648,8 @@ class HtmlReport():
...
@@ -648,6 +648,8 @@ class HtmlReport():
logFileName
=
'amf_'
+
variant
+
'_image_build.log'
logFileName
=
'amf_'
+
variant
+
'_image_build.log'
nb_errors
=
0
nb_errors
=
0
nb_warnings
=
0
nb_warnings
=
0
added_separator
=
False
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
if
nfType
==
'AMF'
:
if
nfType
==
'AMF'
:
section_start_pattern
=
'build_amf --clean --Verbose --build-type Release --jobs'
section_start_pattern
=
'build_amf --clean --Verbose --build-type Release --jobs'
...
@@ -666,6 +668,9 @@ class HtmlReport():
...
@@ -666,6 +668,9 @@ class HtmlReport():
if
result
is
not
None
:
if
result
is
not
None
:
nb_errors
+=
1
nb_errors
+=
1
result
=
re
.
search
(
'warning:'
,
line
)
result
=
re
.
search
(
'warning:'
,
line
)
if
result
is
not
None
:
nb_warnings
+=
1
result
=
re
.
search
(
'error:|warning:'
,
line
)
if
result
is
not
None
:
if
result
is
not
None
:
correctLine
=
re
.
sub
(
"^.*/openair-amf"
,
"/openair-amf"
,
line
.
strip
())
correctLine
=
re
.
sub
(
"^.*/openair-amf"
,
"/openair-amf"
,
line
.
strip
())
wordsList
=
correctLine
.
split
(
None
,
2
)
wordsList
=
correctLine
.
split
(
None
,
2
)
...
@@ -675,11 +680,12 @@ class HtmlReport():
...
@@ -675,11 +680,12 @@ class HtmlReport():
error_warning_status
=
re
.
sub
(
':'
,
""
,
wordsList
[
1
])
error_warning_status
=
re
.
sub
(
':'
,
""
,
wordsList
[
1
])
error_warning_msg
=
re
.
sub
(
'^.*'
+
error_warning_status
+
':'
,
''
,
correctLine
)
error_warning_msg
=
re
.
sub
(
'^.*'
+
error_warning_status
+
':'
,
''
,
correctLine
)
if
n
b_warnings
==
0
and
variant
==
'docker'
:
if
n
ot
added_separator
and
variant
==
'docker'
:
self
.
warning_rows
+=
'<tr><td colspan="4" align = "center" bgcolor = "LightGray"><b>Ubuntu 18</b></td></tr>
\n
'
self
.
warning_rows
+=
'<tr><td colspan="4" align = "center" bgcolor = "LightGray"><b>Ubuntu 18</b></td></tr>
\n
'
if
nb_warnings
==
0
and
variant
==
'podman'
:
added_separator
=
True
if
not
added_separator
and
variant
==
'podman'
:
self
.
warning_rows
+=
'<tr><td colspan="4" align = "center" bgcolor = "LightGray"><b>RHEL 8</b></td></tr>
\n
'
self
.
warning_rows
+=
'<tr><td colspan="4" align = "center" bgcolor = "LightGray"><b>RHEL 8</b></td></tr>
\n
'
nb_warnings
+=
1
added_separator
=
True
self
.
warning_rows
+=
'<tr><td>'
+
filename
+
'</td><td>'
+
linenumber
+
'</td><td>'
+
error_warning_status
+
'</td><td>'
+
error_warning_msg
+
'</td></tr>
\n
'
self
.
warning_rows
+=
'<tr><td>'
+
filename
+
'</td><td>'
+
linenumber
+
'</td><td>'
+
error_warning_status
+
'</td><td>'
+
error_warning_msg
+
'</td></tr>
\n
'
logfile
.
close
()
logfile
.
close
()
if
nb_warnings
==
0
and
nb_errors
==
0
:
if
nb_warnings
==
0
and
nb_errors
==
0
:
...
...
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