Commit 44a5b815 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(ci): fixing HTML reporting on the case of build from scratch

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 80c2a09e
......@@ -49,7 +49,7 @@ class HtmlReport():
self.buildSummaryHeader()
self.initialGitSetup()
self.cloningAnPatching()
self.cloningAndPatching()
self.installLibsPackagesRow()
self.buildCompileRows()
self.copyToTargetImage()
......@@ -253,7 +253,7 @@ class HtmlReport():
self.file.write(cell_msg)
def cloningAnPatching(self):
def cloningAndPatching(self):
self.file.write(' <tr>\n')
self.file.write(' <td bgcolor="lightcyan" >Cloning and Patching VPP</td>\n')
self.analyze_docker_clone_patch('UPF-VPP')
......@@ -273,8 +273,8 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName):
status = False
section_start_pattern = 'git clone -b stable/2101 https://github.com/fdio/vpp.git'
section_end_pattern = 'RUN make install-dep build-release -C vpp'
section_start_pattern = 'RUN git clone -b stable/2101 https://github.com/fdio/vpp.git'
section_end_pattern = 'RUN make install-dep -C vpp'
section_status = False
with open(cwd + '/archives/' + logFileName, 'r') as logfile:
for line in logfile:
......@@ -322,7 +322,7 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName):
status = False
section_start_pattern = 'RUN make install-dep build-release -C vpp'
section_start_pattern = 'RUN make install-dep -C vpp'
if variant == 'docker':
section_end_pattern = 'FROM ubuntu:bionic as oai-upf-vpp'
else:
......@@ -355,11 +355,12 @@ class HtmlReport():
else:
cell_msg = ' <td bgcolor="Tomato"><pre style="border:none; background-color:Tomato"><b>'
cell_msg += 'KO:\n'
cell_msg += ' -- make install-dep build-release -C vpp\n'
cell_msg += ' -- make install-dep -C vpp\n'
if package_install:
cell_msg += ' ** Packages Installation: OK\n'
else:
cell_msg += ' ** Packages Installation: KO\n'
cell_msg += ' -- make install-dep build-release -C vpp\n'
if dpdk_build_status:
cell_msg += ' ** dpdk Installation: OK\n'
else:
......@@ -632,7 +633,7 @@ class HtmlReport():
result = re.search('oai-upf-vpp *ci-tmp ', line)
else:
result = re.search('oai-upf-vpp *develop ', line)
if result is not None:
if result is not None and not status:
if variant == 'docker':
result = re.search('ago *([0-9A-Z\.]+)', line)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment