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
c8c6aa50
Commit
c8c6aa50
authored
Aug 08, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cluster: build FHI7.2 in parallel
parent
2f43b096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
29 deletions
+16
-29
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+16
-29
No files found.
ci-scripts/cls_cluster.py
View file @
c8c6aa50
...
@@ -279,6 +279,11 @@ class Cluster:
...
@@ -279,6 +279,11 @@ class Cluster:
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbase_job
,
lSourcePath
,
'ran-base'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbase_job
,
lSourcePath
,
'ran-base'
))
if
status
:
if
status
:
self
.
_recreate_is_tag
(
'ran-build-fhi72'
,
imageTag
,
'openshift/ran-build-fhi72-is.yaml'
)
self
.
_recreate_bc
(
'ran-build-fhi72'
,
imageTag
,
'openshift/ran-build-fhi72-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.build.fhi72.rhel9'
)
ranbuildfhi72_job
=
self
.
_start_build
(
'ran-build-fhi72'
)
self
.
_recreate_is_tag
(
'oai-physim'
,
imageTag
,
'openshift/oai-physim-is.yaml'
)
self
.
_recreate_is_tag
(
'oai-physim'
,
imageTag
,
'openshift/oai-physim-is.yaml'
)
self
.
_recreate_bc
(
'oai-physim'
,
imageTag
,
'openshift/oai-physim-bc.yaml'
)
self
.
_recreate_bc
(
'oai-physim'
,
imageTag
,
'openshift/oai-physim-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.phySim.rhel9'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.phySim.rhel9'
)
...
@@ -294,15 +299,22 @@ class Cluster:
...
@@ -294,15 +299,22 @@ class Cluster:
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.clang.rhel9'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.clang.rhel9'
)
clang_job
=
self
.
_start_build
(
'oai-clang'
)
clang_job
=
self
.
_start_build
(
'oai-clang'
)
wait
=
ranbuild
_job
is
not
None
and
physim_job
is
not
None
and
clang_job
is
not
None
and
self
.
_wait_build_end
([
ranbuild_job
,
physim_job
,
clang_job
],
1200
)
wait
=
ranbuild
fhi72_job
is
not
None
and
ranbuild_job
is
not
None
and
physim_job
is
not
None
and
clang_job
is
not
None
and
self
.
_wait_build_end
([
ranbuildfhi72_job
,
ranbuild_job
,
physim_job
,
clang_job
],
1200
)
if
not
wait
:
logging
.
error
(
'error during build of ranbuild_job or physim_job or clang_job'
)
if
not
wait
:
logging
.
error
(
'error during build of ranbuild
fhi72_job or ranbuild
_job or physim_job or clang_job'
)
status
=
status
and
wait
status
=
status
and
wait
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbuildfhi72_job
,
lSourcePath
,
'ran-build-fhi72'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbuild_job
,
lSourcePath
,
'ran-build'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbuild_job
,
lSourcePath
,
'ran-build'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
physim_job
,
lSourcePath
,
'oai-physim'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
physim_job
,
lSourcePath
,
'oai-physim'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
clang_job
,
lSourcePath
,
'oai-clang'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
clang_job
,
lSourcePath
,
'oai-clang'
))
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
if
status
:
if
status
:
self
.
_recreate_is_tag
(
'oai-gnb-fhi72'
,
imageTag
,
'openshift/oai-gnb-fhi72-is.yaml'
)
self
.
_recreate_bc
(
'oai-gnb-fhi72'
,
imageTag
,
'openshift/oai-gnb-fhi72-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.gNB.fhi72.rhel9'
)
self
.
_retag_image_statement
(
'ran-build-fhi72'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-build-fhi72'
,
imageTag
,
'docker/Dockerfile.gNB.fhi72.rhel9'
)
gnb_fhi72_job
=
self
.
_start_build
(
'oai-gnb-fhi72'
)
self
.
_recreate_is_tag
(
'oai-enb'
,
imageTag
,
'openshift/oai-enb-is.yaml'
)
self
.
_recreate_is_tag
(
'oai-enb'
,
imageTag
,
'openshift/oai-enb-is.yaml'
)
self
.
_recreate_bc
(
'oai-enb'
,
imageTag
,
'openshift/oai-enb-bc.yaml'
)
self
.
_recreate_bc
(
'oai-enb'
,
imageTag
,
'openshift/oai-enb-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.eNB.rhel9'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.eNB.rhel9'
)
...
@@ -321,10 +333,11 @@ class Cluster:
...
@@ -321,10 +333,11 @@ class Cluster:
self
.
_retag_image_statement
(
'ran-build'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-build'
,
imageTag
,
'docker/Dockerfile.gNB.aw2s.rhel9'
)
self
.
_retag_image_statement
(
'ran-build'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-build'
,
imageTag
,
'docker/Dockerfile.gNB.aw2s.rhel9'
)
gnb_aw2s_job
=
self
.
_start_build
(
'oai-gnb-aw2s'
)
gnb_aw2s_job
=
self
.
_start_build
(
'oai-gnb-aw2s'
)
wait
=
enb_job
is
not
None
and
gnb_job
is
not
None
and
gnb_aw2s_job
is
not
None
and
self
.
_wait_build_end
([
enb_job
,
gnb_job
,
gnb_aw2s_job
],
800
)
wait
=
gnb_fhi72_job
is
not
None
and
enb_job
is
not
None
and
gnb_job
is
not
None
and
gnb_aw2s_job
is
not
None
and
self
.
_wait_build_end
([
gnb_fhi72_job
,
enb_job
,
gnb_job
,
gnb_aw2s_job
],
800
)
if
not
wait
:
logging
.
error
(
'error during build of eNB/gNB'
)
if
not
wait
:
logging
.
error
(
'error during build of eNB/gNB'
)
status
=
status
and
wait
status
=
status
and
wait
# recover logs
# recover logs
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_fhi72_job
,
lSourcePath
,
'oai-gnb-fhi72'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
enb_job
,
lSourcePath
,
'oai-enb'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
enb_job
,
lSourcePath
,
'oai-enb'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_job
,
lSourcePath
,
'oai-gnb'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_job
,
lSourcePath
,
'oai-gnb'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_aw2s_job
,
lSourcePath
,
'oai-gnb-aw2s'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_aw2s_job
,
lSourcePath
,
'oai-gnb-aw2s'
))
...
@@ -357,32 +370,6 @@ class Cluster:
...
@@ -357,32 +370,6 @@ class Cluster:
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
nrue_job
,
lSourcePath
,
'oai-nr-ue'
))
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
nrue_job
,
lSourcePath
,
'oai-nr-ue'
))
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
if
status
:
self
.
_recreate_is_tag
(
'ran-build-fhi72'
,
imageTag
,
'openshift/ran-build-fhi72-is.yaml'
)
self
.
_recreate_bc
(
'ran-build-fhi72'
,
imageTag
,
'openshift/ran-build-fhi72-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.build.fhi72.rhel9'
)
ranbuildfhi72_job
=
self
.
_start_build
(
'ran-build-fhi72'
)
wait
=
ranbuildfhi72_job
is
not
None
and
self
.
_wait_build_end
([
ranbuildfhi72_job
],
1200
)
if
not
wait
:
logging
.
error
(
'error during build of ranbuildfhi72_job'
)
status
=
status
and
wait
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
ranbuildfhi72_job
,
lSourcePath
,
'ran-build-fhi72'
))
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
if
status
:
self
.
_recreate_is_tag
(
'oai-gnb-fhi72'
,
imageTag
,
'openshift/oai-gnb-fhi72-is.yaml'
)
self
.
_recreate_bc
(
'oai-gnb-fhi72'
,
imageTag
,
'openshift/oai-gnb-fhi72-bc.yaml'
)
self
.
_retag_image_statement
(
'ran-base'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-base'
,
baseTag
,
'docker/Dockerfile.gNB.fhi72.rhel9'
)
self
.
_retag_image_statement
(
'ran-build-fhi72'
,
'image-registry.openshift-image-registry.svc:5000/oaicicd-ran/ran-build-fhi72'
,
imageTag
,
'docker/Dockerfile.gNB.fhi72.rhel9'
)
gnb_fhi72_job
=
self
.
_start_build
(
'oai-gnb-fhi72'
)
wait
=
gnb_fhi72_job
is
not
None
and
self
.
_wait_build_end
([
gnb_fhi72_job
],
600
)
if
not
wait
:
logging
.
error
(
'error during build of gNB-fhi72'
)
status
=
status
and
wait
# recover logs
log_files
.
append
(
self
.
_retrieveOCLog
(
ctx
,
gnb_fhi72_job
,
lSourcePath
,
'oai-gnb-fhi72'
))
self
.
cmd
.
run
(
f'oc get pods.metrics.k8s.io &>>
{
build_metrics
}
'
)
# split and analyze logs
# split and analyze logs
imageSize
=
{}
imageSize
=
{}
for
image
,
_
in
log_files
:
for
image
,
_
in
log_files
:
...
...
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