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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
01525785
Commit
01525785
authored
Sep 23, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ci-fix-multi-ue' into integration_2024_w38b
parents
d017afad
aef86359
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+9
-9
No files found.
ci-scripts/cls_oaicitest.py
View file @
01525785
...
...
@@ -394,7 +394,7 @@ class OaiCiTest():
def
InitializeUE
(
self
,
HTML
):
ues
=
[
cls_module
.
Module_UE
(
n
.
strip
())
for
n
in
self
.
ue_ids
]
messages
=
[]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
initialize
)
for
ue
in
ues
]
for
f
,
ue
in
zip
(
futures
,
ues
):
uename
=
f'UE
{
ue
.
getName
()
}
'
...
...
@@ -609,7 +609,7 @@ class OaiCiTest():
def
AttachUE
(
self
,
HTML
,
RAN
,
EPC
,
CONTAINERS
):
ues
=
[
cls_module
.
Module_UE
(
ue_id
,
server_name
)
for
ue_id
,
server_name
in
zip
(
self
.
ue_ids
,
self
.
nodes
)]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
attach
)
for
ue
in
ues
]
attached
=
[
f
.
result
()
for
f
in
futures
]
futures
=
[
executor
.
submit
(
ue
.
checkMTU
)
for
ue
in
ues
]
...
...
@@ -624,7 +624,7 @@ class OaiCiTest():
def
DetachUE
(
self
,
HTML
):
ues
=
[
cls_module
.
Module_UE
(
ue_id
,
server_name
)
for
ue_id
,
server_name
in
zip
(
self
.
ue_ids
,
self
.
nodes
)]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
detach
)
for
ue
in
ues
]
[
f
.
result
()
for
f
in
futures
]
messages
=
[
f"UE
{
ue
.
getName
()
}
: detached"
for
ue
in
ues
]
...
...
@@ -632,7 +632,7 @@ class OaiCiTest():
def
DataDisableUE
(
self
,
HTML
):
ues
=
[
cls_module
.
Module_UE
(
n
.
strip
())
for
n
in
self
.
ue_ids
]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
dataDisable
)
for
ue
in
ues
]
status
=
[
f
.
result
()
for
f
in
futures
]
if
all
(
status
):
...
...
@@ -645,7 +645,7 @@ class OaiCiTest():
def
DataEnableUE
(
self
,
HTML
):
ues
=
[
cls_module
.
Module_UE
(
n
.
strip
())
for
n
in
self
.
ue_ids
]
logging
.
debug
(
f'disabling data for UEs
{
ues
}
'
)
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
dataEnable
)
for
ue
in
ues
]
status
=
[
f
.
result
()
for
f
in
futures
]
if
all
(
status
):
...
...
@@ -659,7 +659,7 @@ class OaiCiTest():
ues
=
[
cls_module
.
Module_UE
(
n
.
strip
())
for
n
in
self
.
ue_ids
]
logging
.
debug
(
f'checking status of UEs
{
ues
}
'
)
messages
=
[]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
check
)
for
ue
in
ues
]
messages
=
[
f
.
result
()
for
f
in
futures
]
HTML
.
CreateHtmlTestRowQueue
(
'NA'
,
'OK'
,
messages
)
...
...
@@ -766,7 +766,7 @@ class OaiCiTest():
ues
=
[
cls_module
.
Module_UE
(
ue_id
,
server_name
)
for
ue_id
,
server_name
in
zip
(
self
.
ue_ids
,
self
.
nodes
)]
logging
.
debug
(
ues
)
pingLock
=
Lock
()
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
self
.
Ping_common
,
EPC
,
ue
,
RAN
,
CONTAINERS
,
pingLock
)
for
ue
in
ues
]
results
=
[
f
.
result
()
for
f
in
futures
]
# each result in results is a tuple, first member goes to successes, second to messages
...
...
@@ -855,7 +855,7 @@ class OaiCiTest():
ues
=
[
cls_module
.
Module_UE
(
ue_id
,
server_name
)
for
ue_id
,
server_name
in
zip
(
self
.
ue_ids
,
self
.
nodes
)]
svr
=
cls_module
.
Module_UE
(
self
.
svr_id
,
self
.
svr_node
)
logging
.
debug
(
ues
)
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
self
.
Iperf_Module
,
EPC
,
ue
,
svr
,
RAN
,
i
,
len
(
ues
),
CONTAINERS
)
for
i
,
ue
in
enumerate
(
ues
)]
results
=
[
f
.
result
()
for
f
in
futures
]
# each result in results is a tuple, first member goes to successes, second to messages
...
...
@@ -1179,7 +1179,7 @@ class OaiCiTest():
def
TerminateUE
(
self
,
HTML
):
ues
=
[
cls_module
.
Module_UE
(
n
.
strip
())
for
n
in
self
.
ue_ids
]
with
concurrent
.
futures
.
ThreadPoolExecutor
()
as
executor
:
with
concurrent
.
futures
.
ThreadPoolExecutor
(
max_workers
=
64
)
as
executor
:
futures
=
[
executor
.
submit
(
ue
.
terminate
)
for
ue
in
ues
]
archives
=
[
f
.
result
()
for
f
in
futures
]
archive_info
=
[
f'Log at:
{
a
}
'
if
a
else
'No log available'
for
a
in
archives
]
...
...
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