Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
76411447
Commit
76411447
authored
3 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
CI: Continuously collect RAN logging file output
parent
74a4c2f6
No related branches found
No related tags found
4 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1493
fix DL arq errors in UE
,
!1402
integration_2022_wk03_b
,
!1390
WIP: various CI improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/stats_monitor.py
+9
-2
9 additions, 2 deletions
ci-scripts/stats_monitor.py
with
9 additions
and
2 deletions
ci-scripts/stats_monitor.py
+
9
−
2
View file @
76411447
...
@@ -61,9 +61,16 @@ class StatMonitor():
...
@@ -61,9 +61,16 @@ class StatMonitor():
def
collect
(
self
,
node_type
):
def
collect
(
self
,
node_type
):
if
node_type
==
'
enb
'
:
if
node_type
==
'
enb
'
:
cmd
=
'
cat
L1_stats.log
MAC_stats.log
PDCP_stats.log
RRC_stats.log
'
files
=
[
"
L1_stats.log
"
,
"
MAC_stats.log
"
,
"
PDCP_stats.log
"
,
"
RRC_stats.log
"
]
else
:
#'gnb'
else
:
#'gnb'
cmd
=
'
cat nrL1_stats.log nrMAC_stats.log nrPDCP_stats.log nrRRC_stats.log
'
files
=
[
"
nrL1_stats.log
"
,
"
nrMAC_stats.log
"
,
"
nrPDCP_stats.log
"
,
"
nrRRC_stats.log
"
]
# append each file's contents to another file (prepended with CI-) for
# post-mortem/debugging analysis
for
f
in
files
:
cmd
=
rf
'
cat
{
f
}
>> CI-
{
f
}
'
subprocess
.
Popen
(
shlex
.
split
(
cmd
))
# join the files for further processing
cmd
=
rf
'
cat
{
shlex
.
join
(
files
)
}
'
process
=
subprocess
.
Popen
(
shlex
.
split
(
cmd
),
stdout
=
subprocess
.
PIPE
)
process
=
subprocess
.
Popen
(
shlex
.
split
(
cmd
),
stdout
=
subprocess
.
PIPE
)
output
=
process
.
stdout
.
readlines
()
output
=
process
.
stdout
.
readlines
()
if
node_type
==
'
enb
'
:
if
node_type
==
'
enb
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment