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
50db6707
Commit
50db6707
authored
Mar 17, 2021
by
Mohammed Ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] update on report for the RHEL build
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
5f7eef9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
302 additions
and
292 deletions
+302
-292
ci-scripts/generateHtmlReport.py
ci-scripts/generateHtmlReport.py
+302
-292
No files found.
ci-scripts/generateHtmlReport.py
View file @
50db6707
...
...
@@ -153,7 +153,7 @@ class HtmlReport():
buildSummaryDone
=
True
with
open
(
cwd
+
'/ds_tester_results_oai_cn5g.html'
,
'r'
)
as
originalEpcReport
:
for
line
in
originalEpcReport
:
result
=
re
.
search
(
'D
S Tester
Summary'
,
line
)
result
=
re
.
search
(
'D
eployment
Summary'
,
line
)
if
(
result
is
not
None
)
and
buildSummaryDone
:
newEpcReport
.
write
(
buildSummary
)
buildSummaryDone
=
False
...
...
@@ -366,12 +366,13 @@ class HtmlReport():
self
.
file
.
write
(
' </div>
\n
'
)
def
buildSummaryHeader
(
self
):
self
.
file
.
write
(
' <h2>Docker Image Build Summary</h2>
\n
'
)
self
.
file
.
write
(
' <h2>Docker
/ Podman
Image Build Summary</h2>
\n
'
)
self
.
file
.
write
(
' <table class="table-bordered" width = "100%" align = "center" border = "1">
\n
'
)
self
.
file
.
write
(
' <tr bgcolor="#33CCFF" >
\n
'
)
self
.
file
.
write
(
' <th>Stage Name</th>
\n
'
)
self
.
file
.
write
(
' <th>Image Kind</th>
\n
'
)
self
.
file
.
write
(
' <th>OAI AMF cNF</th>
\n
'
)
self
.
file
.
write
(
' <th>OAI AMF <font color="Gold">Ubuntu18</font> Image</th>
\n
'
)
self
.
file
.
write
(
' <th>OAI AMF <font color="Gold">RHEL8</font> Image</th>
\n
'
)
self
.
file
.
write
(
' </tr>
\n
'
)
def
buildSummaryFooter
(
self
):
...
...
@@ -401,13 +402,14 @@ class HtmlReport():
def
analyze_docker_build_git_part
(
self
,
nfType
):
if
nfType
!=
'AMF'
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
logFileName
=
'amf_docker_image_build.log'
self
.
file
.
write
(
' <td>Builder Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'amf_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
status
=
False
section_start_pattern
=
'git config --global http'
...
...
@@ -447,13 +449,15 @@ class HtmlReport():
def
analyze_install_log
(
self
,
nfType
):
if
nfType
!=
'AMF'
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
logFileName
=
'amf_docker_image_build.log'
self
.
file
.
write
(
' <td>Builder Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
status
=
False
section_start_pattern
=
'build_amf --install-deps --force'
...
...
@@ -563,15 +567,16 @@ class HtmlReport():
if
nfType
!=
'AMF'
:
if
imageKind
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
if
nfType
==
'AMF'
:
logFileName
=
'amf_docker_image_build.log'
if
imageKind
:
self
.
file
.
write
(
' <td>Builder Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
status
=
False
if
nfType
==
'AMF'
:
...
...
@@ -612,15 +617,15 @@ class HtmlReport():
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
return
if
nfType
==
'AMF'
:
logFileName
=
'amf_docker_image_build.log'
if
imageKind
:
self
.
file
.
write
(
' <td>Builder Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
nb_errors
=
0
nb_warnings
=
0
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
if
nfType
==
'AMF'
:
section_start_pattern
=
'build_amf --clean --Verbose --build-type Release --jobs'
...
...
@@ -675,13 +680,15 @@ class HtmlReport():
def
analyze_copy_log
(
self
,
nfType
):
if
nfType
!=
'AMF'
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
logFileName
=
'amf_docker_image_build.log'
self
.
file
.
write
(
' <td>Target Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
section_start_pattern
=
'FROM ubuntu:bionic as oai-amf$'
section_end_pattern
=
'WORKDIR /openair-amf/etc'
...
...
@@ -719,13 +726,15 @@ class HtmlReport():
def
analyze_copy_conf_tool_log
(
self
,
nfType
):
if
nfType
!=
'AMF'
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
logFileName
=
'amf_docker_image_build.log'
self
.
file
.
write
(
' <td>Target Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
section_start_pattern
=
'WORKDIR /openair-amf/etc'
section_end_pattern
=
'Successfully tagged oai-amf'
...
...
@@ -764,15 +773,16 @@ class HtmlReport():
if
nfType
!=
'AMF'
:
if
imageKind
:
self
.
file
.
write
(
' <td>N/A</td>
\n
'
)
self
.
file
.
write
(
' <td>Wrong NF Type for this Report</td>
\n
'
)
self
.
file
.
write
(
' <td
colspan="2"
>Wrong NF Type for this Report</td>
\n
'
)
return
if
nfType
==
'AMF'
:
logFileName
=
'amf_docker_image_build.log'
if
imageKind
:
self
.
file
.
write
(
' <td>Target Image</td>
\n
'
)
cwd
=
os
.
getcwd
()
variants
=
[
'docker'
,
'podman'
]
for
variant
in
variants
:
logFileName
=
'spgwu_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
if
nfType
==
'AMF'
:
section_start_pattern
=
'Successfully tagged oai-amf'
...
...
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