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
spbro
OpenXG-RAN
Commits
28e30d24
Commit
28e30d24
authored
Sep 23, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused CI StatsFromGenObject()
parent
de2bf7ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+0
-31
ci-scripts/xml_class_list.yml
ci-scripts/xml_class_list.yml
+0
-1
No files found.
ci-scripts/cls_containerize.py
View file @
28e30d24
...
...
@@ -1044,37 +1044,6 @@ class Containerize():
logging
.
info
(
'
\u001B
[1m Undeploying OAI Object Pass
\u001B
[0m'
)
if
self
.
exitStatus
==
0
else
logging
.
error
(
'
\u001B
[1m Undeploying OAI Object Failed
\u001B
[0m'
)
mySSH
.
close
()
def
StatsFromGenObject
(
self
,
HTML
):
self
.
exitStatus
=
0
ymlPath
=
self
.
yamlPath
[
0
].
split
(
'/'
)
logPath
=
'../cmake_targets/log/'
+
ymlPath
[
1
]
# if the containers are running, recover the logs!
myCmd
=
cls_cmd
.
LocalCmd
(
d
=
self
.
yamlPath
[
0
])
cmd
=
'docker-compose -f docker-compose-ci.yml ps --all'
deployStatus
=
myCmd
.
run
(
cmd
,
timeout
=
30
)
cmd
=
'docker stats --no-stream --format "table {{.Container}}
\t
{{.CPUPerc}}
\t
{{.MemUsage}}
\t
{{.MemPerc}}" '
anyLogs
=
False
for
state
in
deployStatus
.
stdout
.
split
(
'
\n
'
):
res
=
re
.
search
(
'Name|NAME|----------'
,
state
)
if
res
is
not
None
:
continue
if
len
(
state
)
==
0
:
continue
res
=
re
.
search
(
'^(?P<container_name>[a-zA-Z0-9\-\_]+) '
,
state
)
if
res
is
not
None
:
anyLogs
=
True
cmd
+=
res
.
group
(
'container_name'
)
+
' '
message
=
''
if
anyLogs
:
stats
=
myCmd
.
run
(
cmd
,
timeout
=
30
)
for
statLine
in
stats
.
stdout
.
split
(
'
\n
'
):
logging
.
debug
(
statLine
)
message
+=
statLine
+
'
\n
'
myCmd
.
close
()
HTML
.
CreateHtmlTestRowQueue
(
self
.
pingOptions
,
'OK'
,
[
message
])
def
CheckAndAddRoute
(
self
,
svrName
,
ipAddr
,
userName
,
password
):
logging
.
debug
(
'Checking IP routing on '
+
svrName
)
mySSH
=
SSH
.
SSHConnection
()
...
...
ci-scripts/xml_class_list.yml
View file @
28e30d24
...
...
@@ -38,7 +38,6 @@
-
Deploy_Run_PhySim
-
DeployGenObject
-
UndeployGenObject
-
StatsFromGenObject
-
LicenceAndFormattingCheck
-
Push_Local_Registry
-
Pull_Local_Registry
...
...
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