Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
zzha zzha
OpenXG-RAN
Commits
9d92f4f9
Commit
9d92f4f9
authored
Jan 25, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: catch exceptions in CI code and print in HTML
parent
31d04336
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
152 additions
and
144 deletions
+152
-144
ci-scripts/main.py
ci-scripts/main.py
+152
-144
No files found.
ci-scripts/main.py
View file @
9d92f4f9
...
...
@@ -65,6 +65,7 @@ import logging
import
datetime
import
signal
import
subprocess
import
traceback
from
multiprocessing
import
Process
,
Lock
,
SimpleQueue
logging
.
basicConfig
(
level
=
logging
.
DEBUG
,
...
...
@@ -745,6 +746,7 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
continue
CiTestObj
.
ShowTestID
()
GetParametersFromXML
(
action
)
try
:
if
action
==
'Build_eNB'
:
RAN
.
BuildeNB
(
HTML
)
elif
action
==
'WaitEndBuild_eNB'
:
...
...
@@ -889,6 +891,12 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
logging
.
debug
(
'To be implemented'
)
else
:
sys
.
exit
(
'Invalid class (action) from xml'
)
except
Exception
as
e
:
s
=
traceback
.
format_exc
()
logging
.
error
(
f'while running CI, an exception occurred:
\n
{
s
}
'
)
HTML
.
CreateHtmlTestRowQueue
(
"N/A"
,
'KO'
,
[
f"CI test code encountered an exception:
\n
{
s
}
"
])
RAN
.
prematureExit
=
True
if
RAN
.
prematureExit
:
if
CiTestObj
.
testCase_id
==
CiTestObj
.
testMinStableId
:
logging
.
warning
(
'Scenario has reached minimal stability point'
)
...
...
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