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
1d3e795c
Commit
1d3e795c
authored
Aug 05, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use archiveArtifact() for deploy_oc_physim()
parent
da9cec0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
ci-scripts/cls_analysis.py
ci-scripts/cls_analysis.py
+2
-2
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+7
-11
ci-scripts/main.py
ci-scripts/main.py
+1
-1
No files found.
ci-scripts/cls_analysis.py
View file @
1d3e795c
...
...
@@ -84,7 +84,7 @@ class Analysis():
return
success
,
msg
def
analyze_oc_physim
(
result_junit
,
details_json
):
def
analyze_oc_physim
(
result_junit
,
details_json
,
logPath
):
try
:
tree
=
ET
.
parse
(
result_junit
)
root
=
tree
.
getroot
()
...
...
@@ -124,7 +124,7 @@ class Analysis():
output
=
test
.
findtext
(
"system-out"
)
output_check
=
"exceeds the threshold"
not
in
output
# collect logs
log_dir
=
f'
../cmake_targets/log
/
{
test_exec
}
'
log_dir
=
f'
{
logPath
}
/
{
test_exec
}
'
os
.
makedirs
(
log_dir
,
exist_ok
=
True
)
with
open
(
f'
{
log_dir
}
/
{
test_name
}
.log'
,
'w'
)
as
f
:
f
.
write
(
output
)
...
...
ci-scripts/cls_cluster.py
View file @
1d3e795c
...
...
@@ -460,7 +460,7 @@ class Cluster:
return
status
def
deploy_oc_physim
(
self
,
HTML
,
oc_release
,
svr_id
):
def
deploy_oc_physim
(
self
,
ctx
,
HTML
,
oc_release
,
svr_id
):
if
self
.
ranRepository
==
''
or
self
.
ranBranch
==
''
or
self
.
ranCommitID
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
raise
ValueError
(
f'Insufficient Parameter: ranRepository
{
self
.
ranRepository
}
ranBranch
{
self
.
ranBranch
}
ranCommitID
{
self
.
ranCommitID
}
'
)
...
...
@@ -470,17 +470,13 @@ class Cluster:
options
=
f"oaicicd-core-for-ci-ran
{
oc_release
}
{
image_tag
}
{
self
.
eNBSourceCodePath
}
"
ret
=
cls_cmd
.
runScript
(
svr_id
,
script
,
600
,
options
)
logging
.
debug
(
f'"
{
script
}
" finished with code
{
ret
.
returncode
}
, output:
\n
{
ret
.
stdout
}
'
)
log_dir
=
f'
{
os
.
getcwd
()
}
/../cmake_targets/log'
os
.
makedirs
(
log_dir
,
exist_ok
=
True
)
result_junit
=
f'
{
oc_release
}
-run.xml'
details_json
=
f'
{
oc_release
}
-tests.json'
with
cls_cmd
.
getConnection
(
svr_id
)
as
ssh
:
ssh
.
copyin
(
src
=
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
details_json
}
'
,
tgt
=
f'
{
log_dir
}
/
{
details_json
}
'
)
ssh
.
copyin
(
src
=
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
result_junit
}
'
,
tgt
=
f'
{
log_dir
}
/
{
result_junit
}
'
)
ssh
.
copyin
(
src
=
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/physim_log.txt'
,
tgt
=
f'
{
log_dir
}
/physim_log.txt'
)
ssh
.
copyin
(
src
=
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/physim_pods_summary.txt'
,
tgt
=
f'
{
log_dir
}
/physim_pods_summary.txt'
)
ssh
.
copyin
(
src
=
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/LastTestsFailed.log'
,
tgt
=
f'
{
log_dir
}
/LastTestsFailed.log'
)
test_status
,
test_summary
,
test_result
=
cls_analysis
.
Analysis
.
analyze_oc_physim
(
f'
{
log_dir
}
/
{
result_junit
}
'
,
f'
{
log_dir
}
/
{
details_json
}
'
)
details_json
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-tests.json
'
)
result_junit
=
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts/
{
oc_release
}
-run.xml
'
)
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts
/physim_log.txt'
)
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts
/physim_pods_summary.txt'
)
archiveArtifact
(
ssh
,
ctx
,
f'
{
self
.
eNBSourceCodePath
}
/ci-scripts
/LastTestsFailed.log'
)
test_status
,
test_summary
,
test_result
=
cls_analysis
.
Analysis
.
analyze_oc_physim
(
result_junit
,
details_json
,
ctx
.
logPath
)
if
test_summary
:
if
test_status
:
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
...
...
ci-scripts/main.py
View file @
1d3e795c
...
...
@@ -297,7 +297,7 @@ def ExecuteActionWithParam(action, ctx):
elif
action
==
'Deploy_Run_PhySim'
:
oc_release
=
test
.
findtext
(
'oc_release'
)
svr_id
=
test
.
findtext
(
'svr_id'
)
or
None
success
=
CLUSTER
.
deploy_oc_physim
(
HTML
,
oc_release
,
svr_id
)
success
=
CLUSTER
.
deploy_oc_physim
(
ctx
,
HTML
,
oc_release
,
svr_id
)
elif
action
==
'DeployCoreNetwork'
or
action
==
'UndeployCoreNetwork'
:
cn_id
=
test
.
findtext
(
'cn_id'
)
...
...
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