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
0e23b795
Commit
0e23b795
authored
Sep 30, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: use Custom_Script to execute SR-IOV/setup scripts for FHI72 pipeline
parent
5ee9e20f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+13
-0
ci-scripts/main.py
ci-scripts/main.py
+6
-0
ci-scripts/xml_class_list.yml
ci-scripts/xml_class_list.yml
+1
-0
ci-scripts/xml_files/container_sa_fhi72_vvdn_up2.xml
ci-scripts/xml_files/container_sa_fhi72_vvdn_up2.xml
+4
-4
No files found.
ci-scripts/cls_oaicitest.py
View file @
0e23b795
...
...
@@ -239,6 +239,19 @@ def Custom_Command(HTML, node, command, command_fail):
HTML
.
CreateHtmlTestRowQueue
(
command
,
status
,
message
)
return
status
==
'OK'
or
status
==
'Warning'
def
Custom_Script
(
HTML
,
node
,
script
,
command_fail
):
logging
.
info
(
f"Executing custom script on
{
node
}
"
)
ret
=
cls_cmd
.
runScript
(
node
,
script
,
90
)
logging
.
debug
(
f"Custom_Script:
{
script
}
on node:
{
node
}
- return code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
"
)
status
=
'OK'
message
=
[
ret
.
stdout
]
if
ret
.
returncode
!=
0
and
not
command_fail
:
status
=
'Warning'
if
ret
.
returncode
!=
0
and
command_fail
:
status
=
'KO'
HTML
.
CreateHtmlTestRowQueue
(
script
,
status
,
message
)
return
status
==
'OK'
or
status
==
'Warning'
def
IdleSleep
(
HTML
,
idle_sleep_time
):
time
.
sleep
(
idle_sleep_time
)
HTML
.
CreateHtmlTestRow
(
f"
{
idle_sleep_time
}
sec"
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
...
...
ci-scripts/main.py
View file @
0e23b795
...
...
@@ -428,6 +428,12 @@ def ExecuteActionWithParam(action):
command_fail
=
test
.
findtext
(
'command_fail'
)
in
[
'True'
,
'true'
,
'Yes'
,
'yes'
]
success
=
cls_oaicitest
.
Custom_Command
(
HTML
,
node
,
command
,
command_fail
)
elif
action
==
'Custom_Script'
:
node
=
test
.
findtext
(
'node'
)
script
=
test
.
findtext
(
'script'
)
command_fail
=
test
.
findtext
(
'command_fail'
)
in
[
'True'
,
'true'
,
'Yes'
,
'yes'
]
success
=
cls_oaicitest
.
Custom_Script
(
HTML
,
node
,
script
,
command_fail
)
elif
action
==
'Pull_Cluster_Image'
:
string_field
=
test
.
findtext
(
'images_to_pull'
)
if
(
string_field
is
not
None
):
...
...
ci-scripts/xml_class_list.yml
View file @
0e23b795
...
...
@@ -42,4 +42,5 @@
-
Pull_Local_Registry
-
Clean_Test_Server_Images
-
Custom_Command
-
Custom_Script
-
Create_Workspace
ci-scripts/xml_files/container_sa_fhi72_vvdn_up2.xml
View file @
0e23b795
...
...
@@ -45,10 +45,10 @@
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"200000"
>
<class>
Custom_
Command
</class>
<class>
Custom_
Script
</class>
<desc>
Setup sriov and network interfaces VVDN
</desc>
<node>
cacofonix
</node>
<
command>
/opt/FHI7.2/setup_sriov_vvdn.sh
</command
>
<
script>
yaml_files/sa_fhi_7.2_vvdn_gnb/setup_sriov_vvdn.sh
</script
>
<command_fail>
yes
</command_fail>
</testCase>
...
...
@@ -157,11 +157,11 @@
</testCase>
<testCase
id=
"888888"
>
<class>
Custom_
Command
</class>
<class>
Custom_
Script
</class>
<always_exec>
true
</always_exec>
<desc>
Set CPU to idle state, set kernel parameters to default values
</desc>
<node>
cacofonix
</node>
<
command>
/opt/FHI7.2/setup_cleanup.sh
</command
>
<
script>
yaml_files/sa_fhi_7.2_vvdn_gnb/setup_cleanup.sh
</script
>
<command_fail>
yes
</command_fail>
</testCase>
...
...
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