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(): ...@@ -49,7 +49,7 @@ class HtmlReport():
self.buildSummaryHeader() self.buildSummaryHeader()
self.initialGitSetup() self.initialGitSetup()
self.cloningAnPatching() self.cloningAndPatching()
self.installLibsPackagesRow() self.installLibsPackagesRow()
self.buildCompileRows() self.buildCompileRows()
self.copyToTargetImage() self.copyToTargetImage()
...@@ -253,7 +253,7 @@ class HtmlReport(): ...@@ -253,7 +253,7 @@ class HtmlReport():
self.file.write(cell_msg) self.file.write(cell_msg)
def cloningAnPatching(self): def cloningAndPatching(self):
self.file.write(' <tr>\n') self.file.write(' <tr>\n')
self.file.write(' <td bgcolor="lightcyan" >Cloning and Patching VPP</td>\n') self.file.write(' <td bgcolor="lightcyan" >Cloning and Patching VPP</td>\n')
self.analyze_docker_clone_patch('UPF-VPP') self.analyze_docker_clone_patch('UPF-VPP')
...@@ -273,8 +273,8 @@ class HtmlReport(): ...@@ -273,8 +273,8 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log' logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName): if os.path.isfile(cwd + '/archives/' + logFileName):
status = False status = False
section_start_pattern = 'git clone -b stable/2101 https://github.com/fdio/vpp.git' section_start_pattern = 'RUN git clone -b stable/2101 https://github.com/fdio/vpp.git'
section_end_pattern = 'RUN make install-dep build-release -C vpp' section_end_pattern = 'RUN make install-dep -C vpp'
section_status = False section_status = False
with open(cwd + '/archives/' + logFileName, 'r') as logfile: with open(cwd + '/archives/' + logFileName, 'r') as logfile:
for line in logfile: for line in logfile:
...@@ -322,7 +322,7 @@ class HtmlReport(): ...@@ -322,7 +322,7 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log' logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName): if os.path.isfile(cwd + '/archives/' + logFileName):
status = False 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': if variant == 'docker':
section_end_pattern = 'FROM ubuntu:bionic as oai-upf-vpp' section_end_pattern = 'FROM ubuntu:bionic as oai-upf-vpp'
else: else:
...@@ -355,11 +355,12 @@ class HtmlReport(): ...@@ -355,11 +355,12 @@ class HtmlReport():
else: else:
cell_msg = ' <td bgcolor="Tomato"><pre style="border:none; background-color:Tomato"><b>' cell_msg = ' <td bgcolor="Tomato"><pre style="border:none; background-color:Tomato"><b>'
cell_msg += 'KO:\n' 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: if package_install:
cell_msg += ' ** Packages Installation: OK\n' cell_msg += ' ** Packages Installation: OK\n'
else: else:
cell_msg += ' ** Packages Installation: KO\n' cell_msg += ' ** Packages Installation: KO\n'
cell_msg += ' -- make install-dep build-release -C vpp\n'
if dpdk_build_status: if dpdk_build_status:
cell_msg += ' ** dpdk Installation: OK\n' cell_msg += ' ** dpdk Installation: OK\n'
else: else:
...@@ -632,7 +633,7 @@ class HtmlReport(): ...@@ -632,7 +633,7 @@ class HtmlReport():
result = re.search('oai-upf-vpp *ci-tmp ', line) result = re.search('oai-upf-vpp *ci-tmp ', line)
else: else:
result = re.search('oai-upf-vpp *develop ', line) result = re.search('oai-upf-vpp *develop ', line)
if result is not None: if result is not None and not status:
if variant == 'docker': if variant == 'docker':
result = re.search('ago *([0-9A-Z\.]+)', line) result = re.search('ago *([0-9A-Z\.]+)', line)
else: 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