Move Real-Time Stats Analysis to separate step

Factor out to make existing log analysis simpler. It will also allow to
more easily port this functionality to docker-based setups.
This commit is contained in:
Robert Schmidt
2026-01-21 15:40:21 +01:00
parent 41a6188c04
commit e809841aea
9 changed files with 93 additions and 93 deletions

View File

@@ -102,11 +102,6 @@ def ExecuteActionWithParam(action, ctx, node):
success = CONTAINERS.BuildRunTests(ctx, node, HTML)
elif action == 'Initialize_eNB':
datalog_rt_stats_file=test.findtext('rt_stats_cfg')
if datalog_rt_stats_file is None:
RAN.datalog_rt_stats_file='datalog_rt_stats.default.yaml'
else:
RAN.datalog_rt_stats_file=datalog_rt_stats_file
RAN.Initialize_eNB_args=test.findtext('Initialize_eNB_args')
#local variable air_interface
air_interface = test.findtext('air_interface')
@@ -271,6 +266,10 @@ def ExecuteActionWithParam(action, ctx, node):
images = test.findtext('images').split()
success = CLUSTER.PullClusterImage(HTML, node, images, tag_prefix=tag_prefix)
elif action == 'AnalyzeRTStats':
yaml = test.findtext('stats_cfg')
success = RAN.AnalyzeRTStats(HTML, node, ctx, yaml)
else:
logging.warning(f"unknown action {action}, skip step")
success = True # by default, we skip the step and print a warning