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
Michael Black
OpenXG-RAN
Commits
5cadafc1
Commit
5cadafc1
authored
Jul 04, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: check for final 'Bye.' message
parent
6f40b619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ci-scripts/constants.py
ci-scripts/constants.py
+1
-0
ci-scripts/ran.py
ci-scripts/ran.py
+14
-0
No files found.
ci-scripts/constants.py
View file @
5cadafc1
...
...
@@ -46,6 +46,7 @@ ENB_PROCESS_NOLOGFILE_TO_ANALYZE = -14
ENB_PROCESS_SLAVE_RRU_NOT_SYNCED
=
-
15
ENB_REAL_TIME_PROCESSING_ISSUE
=
-
16
ENB_RETX_ISSUE
=
-
17
ENB_SHUTDOWN_NO_BYE
=
-
18
HSS_PROCESS_FAILED
=
-
2
HSS_PROCESS_OK
=
+
2
MME_PROCESS_FAILED
=
-
3
...
...
ci-scripts/ran.py
View file @
5cadafc1
...
...
@@ -812,6 +812,7 @@ class RANManagement():
ULRetxIssue
=
False
nrRrcRcfgComplete
=
0
harqFeedbackPast
=
0
showedByeMsg
=
False
# last line is Bye. -> stopped properly
line_cnt
=
0
#log file line counter
for
line
in
enb_log_file
.
readlines
():
...
...
@@ -1024,6 +1025,12 @@ class RANManagement():
if
result
is
not
None
:
gnb_markers
[
k
].
append
(
line_cnt
)
# check whether e/gNB log finishes with "Bye." message
# Note that it is "=" not "|=" so not only is the regex
# asking for EOF (\Z) but we also only retain the last
# line's result
showedByeMsg
=
re
.
search
(
r'^Bye.\n\Z'
,
str
(
line
),
re
.
MULTILINE
)
is
not
None
enb_log_file
.
close
()
...
...
@@ -1208,6 +1215,13 @@ class RANManagement():
logging
.
debug
(
'No real time stats found in the log file'
)
htmleNBFailureMsg
+=
statMsg
if
not
showedByeMsg
:
logging
.
debug
(
'
\u001B
[1;37;41m '
+
nodeB_prefix
+
'NB did not show "Bye." message at end, it likely did not stop properly!
\u001B
[0m'
)
htmleNBFailureMsg
+=
'No Bye. message found, did not stop properly
\n
'
global_status
=
CONST
.
ENB_SHUTDOWN_NO_BYE
else
:
logging
.
debug
(
'"Bye." message found at end.'
)
else
:
#Removing UE log
statMsg
=
'[MAC] Removing UE msg count = '
+
str
(
removing_ue
)
...
...
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