Commit 329a823d authored by Raphael Defosseux's avatar Raphael Defosseux

CI: fix image build log collection

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 4639a59a
...@@ -3085,7 +3085,7 @@ class OaiCiTest(): ...@@ -3085,7 +3085,7 @@ class OaiCiTest():
SSH.command('cd ' + SourceCodePath, '\$', 5) SSH.command('cd ' + SourceCodePath, '\$', 5)
SSH.command('cd cmake_targets', '\$', 5) SSH.command('cd cmake_targets', '\$', 5)
SSH.command('rm -f build.log.zip', '\$', 5) SSH.command('rm -f build.log.zip', '\$', 5)
SSH.command('zip build.log.zip build_log_*/*', '\$', 60) SSH.command('zip -r build.log.zip build_log_*/*', '\$', 60)
SSH.close() SSH.close()
def LogCollectPing(self,EPC): def LogCollectPing(self,EPC):
......
...@@ -128,7 +128,7 @@ def GetParametersFromXML(action): ...@@ -128,7 +128,7 @@ def GetParametersFromXML(action):
else: else:
RAN.backgroundBuild=False RAN.backgroundBuild=False
elif action == 'WaitEndBuild_eNB' or action == 'WaitEndBuild_Image': elif action == 'WaitEndBuild_eNB':
RAN.Build_eNB_args=test.findtext('Build_eNB_args') RAN.Build_eNB_args=test.findtext('Build_eNB_args')
RAN.imageKind=test.findtext('kind') RAN.imageKind=test.findtext('kind')
eNB_instance=test.findtext('eNB_instance') eNB_instance=test.findtext('eNB_instance')
...@@ -646,8 +646,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re ...@@ -646,8 +646,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
RAN.BuildImage() RAN.BuildImage()
elif action == 'WaitEndBuild_eNB': elif action == 'WaitEndBuild_eNB':
RAN.WaitBuildeNBisFinished() RAN.WaitBuildeNBisFinished()
elif action == 'WaitEndBuild_Image':
RAN.WaitBuildImageisFinished()
elif action == 'Initialize_eNB': elif action == 'Initialize_eNB':
check_eNB = False check_eNB = False
check_OAI_UE = False check_OAI_UE = False
......
...@@ -470,14 +470,17 @@ class RANManagement(): ...@@ -470,14 +470,17 @@ class RANManagement():
# Recover build logs, for the moment only possible when build is successful # Recover build logs, for the moment only possible when build is successful
mySSH.command('docker create --name test ran-build:' + imageTag, '\$', 5) mySSH.command('docker create --name test ran-build:' + imageTag, '\$', 5)
mySSH.command('mkdir -p cmake_targets/log/ran-build', '\$', 5) mySSH.command('mkdir -p cmake_targets/log/ran-build', '\$', 5)
mySSH.command('docker cp test:/oai-ran/cmake_targets/log/. /tmp/CI-eNB/cmake_targets/log/ran-build', '\$', 5) mySSH.command('docker cp test:/oai-ran/cmake_targets/log/. cmake_targets/log/ran-build', '\$', 5)
mySSH.command('docker rm -f test', '\$', 5) mySSH.command('docker rm -f test', '\$', 5)
for image,shaone in danglingShaOnes: for image,shaone in danglingShaOnes:
mySSH.command('mkdir -p cmake_targets/log/' + image, '\$', 5) mySSH.command('mkdir -p cmake_targets/log/' + image, '\$', 5)
mySSH.command('docker create --name test ' + shaone, '\$', 5) mySSH.command('docker create --name test ' + shaone, '\$', 5)
mySSH.command('docker cp test:/oai-ran/cmake_targets/log/. /tmp/CI-eNB/cmake_targets/log/' + image, '\$', 5) mySSH.command('docker cp test:/oai-ran/cmake_targets/log/. cmake_targets/log/' + image, '\$', 5)
mySSH.command('docker rm -f test', '\$', 5) mySSH.command('docker rm -f test', '\$', 5)
mySSH.command('docker image prune --force', '\$', 5) mySSH.command('docker image prune --force', '\$', 5)
mySSH.command('cd cmake_targets', '\$', 5)
mySSH.command('mkdir -p build_log_' + self.testCase_id, '\$', 5)
mySSH.command('mv log/* ' + 'build_log_' + self.testCase_id, '\$', 5)
mySSH.close() mySSH.close()
logging.info('\u001B[1m Building OAI Image(s) Pass\u001B[0m') logging.info('\u001B[1m Building OAI Image(s) Pass\u001B[0m')
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
- Build_eNB - Build_eNB
- Build_Image - Build_Image
- WaitEndBuild_eNB - WaitEndBuild_eNB
- WaitEndBuild_Image
- Initialize_eNB - Initialize_eNB
- Terminate_eNB - Terminate_eNB
- Initialize_UE - Initialize_UE
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
For more information about the OpenAirInterface (OAI) Software Alliance: For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org contact@openairinterface.org
000004
--> -->
<testCaseList> <testCaseList>
<htmlTabRef>build-tab</htmlTabRef> <htmlTabRef>build-tab</htmlTabRef>
...@@ -36,15 +35,6 @@ ...@@ -36,15 +35,6 @@
<kind>all</kind> <kind>all</kind>
<eNB_instance>0</eNB_instance> <eNB_instance>0</eNB_instance>
<eNB_serverId>0</eNB_serverId> <eNB_serverId>0</eNB_serverId>
<backgroundBuild>True</backgroundBuild>
</testCase>
<testCase id="000004">
<class>WaitEndBuild_Image</class>
<desc>Wait for end of Build eNB</desc>
<kind>eNB</kind>
<eNB_instance>0</eNB_instance>
<eNB_serverId>0</eNB_serverId>
</testCase> </testCase>
</testCaseList> </testCaseList>
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