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
a7e520a5
Commit
a7e520a5
authored
Sep 23, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower physim timeout (15min) and match correct number of pods
parent
8dad60ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+2
-3
No files found.
ci-scripts/cls_physim1.py
View file @
a7e520a5
...
@@ -161,7 +161,7 @@ class PhySim:
...
@@ -161,7 +161,7 @@ class PhySim:
while
(
count
<
2
and
isRunning
==
False
):
while
(
count
<
2
and
isRunning
==
False
):
time
.
sleep
(
60
)
time
.
sleep
(
60
)
mySSH
.
command
(
'oc get pods -o wide -l app.kubernetes.io/instance=physim | tee -a cmake_targets/log/physim_pods_summary.txt'
,
'\$'
,
30
,
resync
=
True
)
mySSH
.
command
(
'oc get pods -o wide -l app.kubernetes.io/instance=physim | tee -a cmake_targets/log/physim_pods_summary.txt'
,
'\$'
,
30
,
resync
=
True
)
if
mySSH
.
getBefore
().
count
(
'Running'
)
==
12
:
if
mySSH
.
getBefore
().
count
(
'Running'
)
==
21
:
logging
.
debug
(
'
\u001B
[1m Running the physim test Scenarios
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1m Running the physim test Scenarios
\u001B
[0m'
)
isRunning
=
True
isRunning
=
True
podNames
=
re
.
findall
(
'oai-[\S\d\w]+'
,
mySSH
.
getBefore
())
podNames
=
re
.
findall
(
'oai-[\S\d\w]+'
,
mySSH
.
getBefore
())
...
@@ -187,7 +187,7 @@ class PhySim:
...
@@ -187,7 +187,7 @@ class PhySim:
isFinished
=
False
isFinished
=
False
# doing a deep copy!
# doing a deep copy!
tmpPodNames
=
podNames
.
copy
()
tmpPodNames
=
podNames
.
copy
()
while
(
count
<
50
and
isFinished
==
False
):
while
(
count
<
15
and
isFinished
==
False
):
time
.
sleep
(
60
)
time
.
sleep
(
60
)
for
podName
in
tmpPodNames
:
for
podName
in
tmpPodNames
:
mySSH
.
command2
(
f'oc logs --tail=1
{
podName
}
2>&1'
,
6
,
silent
=
True
)
mySSH
.
command2
(
f'oc logs --tail=1
{
podName
}
2>&1'
,
6
,
silent
=
True
)
...
@@ -205,7 +205,6 @@ class PhySim:
...
@@ -205,7 +205,6 @@ class PhySim:
# Getting the logs of each executables running in individual pods
# Getting the logs of each executables running in individual pods
for
podName
in
podNames
:
for
podName
in
podNames
:
mySSH
.
command
(
f'oc logs
{
podName
}
>> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
15
,
resync
=
True
)
mySSH
.
command
(
f'oc logs
{
podName
}
>> cmake_targets/log/physim_test.txt 2>&1'
,
'\$'
,
15
,
resync
=
True
)
time
.
sleep
(
30
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/log/physim_test.txt'
,
'.'
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/log/physim_test.txt'
,
'.'
)
try
:
try
:
listLogFiles
=
subprocess
.
check_output
(
'egrep --colour=never "Execution Log file|Linux oai-" physim_test.txt'
,
shell
=
True
,
universal_newlines
=
True
)
listLogFiles
=
subprocess
.
check_output
(
'egrep --colour=never "Execution Log file|Linux oai-" physim_test.txt'
,
shell
=
True
,
universal_newlines
=
True
)
...
...
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