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
845eeae9
Commit
845eeae9
authored
Aug 29, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/optimize-ci-time' into integration_2022_wk35
parents
d39a7724
a58b3989
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
88 additions
and
8 deletions
+88
-8
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+28
-5
ci-scripts/main.py
ci-scripts/main.py
+3
-1
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+3
-2
docker/Dockerfile.eNB.rhel8.2
docker/Dockerfile.eNB.rhel8.2
+1
-0
docker/Dockerfile.eNB.ubuntu18
docker/Dockerfile.eNB.ubuntu18
+1
-0
docker/Dockerfile.gNB.rhel8.2
docker/Dockerfile.gNB.rhel8.2
+1
-0
docker/Dockerfile.gNB.ubuntu18
docker/Dockerfile.gNB.ubuntu18
+1
-0
docker/Dockerfile.lteRU.rhel8.2
docker/Dockerfile.lteRU.rhel8.2
+1
-0
docker/Dockerfile.lteRU.ubuntu18
docker/Dockerfile.lteRU.ubuntu18
+1
-0
docker/Dockerfile.lteUE.rhel8.2
docker/Dockerfile.lteUE.rhel8.2
+1
-0
docker/Dockerfile.nrUE.rhel8.2
docker/Dockerfile.nrUE.rhel8.2
+1
-0
docker/Dockerfile.nrUE.ubuntu18
docker/Dockerfile.nrUE.ubuntu18
+1
-0
docker/scripts/enb_entrypoint.sh
docker/scripts/enb_entrypoint.sh
+9
-0
docker/scripts/gnb_entrypoint.sh
docker/scripts/gnb_entrypoint.sh
+9
-0
docker/scripts/lte_ru_entrypoint.sh
docker/scripts/lte_ru_entrypoint.sh
+9
-0
docker/scripts/lte_ue_entrypoint.sh
docker/scripts/lte_ue_entrypoint.sh
+9
-0
docker/scripts/nr_ue_entrypoint.sh
docker/scripts/nr_ue_entrypoint.sh
+9
-0
No files found.
ci-scripts/cls_containerize.py
View file @
845eeae9
...
...
@@ -579,9 +579,17 @@ class Containerize():
lUserName
=
self
.
eNB2UserName
lPassWord
=
self
.
eNB2Password
lSsh
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
lSsh
.
command
(
'docker save '
+
self
.
imageToCopy
+
':'
+
imageTag
+
' | gzip > '
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'\$'
,
60
)
lSsh
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
'~/'
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'.'
)
lSsh
.
command
(
'docker save '
+
self
.
imageToCopy
+
':'
+
imageTag
+
' | gzip --fast > '
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'\$'
,
60
)
ret
=
lSsh
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
'~/'
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'.'
)
if
ret
!=
0
:
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
self
.
exitStatus
=
1
return
False
lSsh
.
command
(
'rm '
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'\$'
,
60
)
if
lSsh
.
getBefore
().
count
(
'cannot remove'
):
HTML
.
CreateHtmlTestRow
(
'file not created by docker save'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
self
.
exitStatus
=
1
return
False
lSsh
.
close
()
# Going to the Test Server
...
...
@@ -599,15 +607,26 @@ class Containerize():
lPassWord
=
self
.
eNB2Password
lSsh
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
lSsh
.
copyout
(
lIpAddr
,
lUserName
,
lPassWord
,
'./'
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'~'
)
# copyout has no return code and will quit if something fails
lSsh
.
command
(
'docker rmi '
+
self
.
imageToCopy
+
':'
+
imageTag
,
'\$'
,
10
)
lSsh
.
command
(
'docker load < '
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'\$'
,
60
)
if
lSsh
.
getBefore
().
count
(
'o such file'
)
or
lSsh
.
getBefore
().
count
(
'invalid tar header'
):
logging
.
debug
(
lSsh
.
getBefore
())
HTML
.
CreateHtmlTestRow
(
'problem during docker load'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
self
.
exitStatus
=
1
return
False
lSsh
.
command
(
'rm '
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
,
'\$'
,
60
)
if
lSsh
.
getBefore
().
count
(
'cannot remove'
):
HTML
.
CreateHtmlTestRow
(
'file not copied during scp?'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
self
.
exitStatus
=
1
return
False
lSsh
.
close
()
if
os
.
path
.
isfile
(
'./'
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
):
os
.
remove
(
'./'
+
self
.
imageToCopy
+
'-'
+
imageTag
+
'.tar.gz'
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
return
True
def
DeployObject
(
self
,
HTML
,
EPC
):
if
self
.
eNB_serverId
[
self
.
eNB_instance
]
==
'0'
:
...
...
@@ -683,6 +702,9 @@ class Containerize():
logging
.
debug
(
' -- '
+
str
(
unhealthyNb
)
+
' unhealthy container(s)'
)
logging
.
debug
(
' -- '
+
str
(
startingNb
)
+
' still starting container(s)'
)
self
.
testCase_id
=
HTML
.
testCase_id
self
.
eNB_logFile
[
self
.
eNB_instance
]
=
'enb_'
+
self
.
testCase_id
+
'.log'
status
=
False
if
healthyNb
==
1
:
cnt
=
0
...
...
@@ -697,11 +719,12 @@ class Containerize():
status
=
True
logging
.
info
(
'
\u001B
[1m Deploying OAI object Pass
\u001B
[0m'
)
time
.
sleep
(
10
)
else
:
# containers are unhealthy, so we won't start. However, logs are stored at the end
# in UndeployObject so we here store the logs of the unhealthy container to report it
mySSH
.
command
(
'docker logs '
+
containerName
+
' > '
+
lSourcePath
+
'/cmake_targets/'
+
self
.
eNB_logFile
[
self
.
eNB_instance
],
'\$'
,
30
)
mySSH
.
close
()
self
.
testCase_id
=
HTML
.
testCase_id
self
.
eNB_logFile
[
self
.
eNB_instance
]
=
'enb_'
+
self
.
testCase_id
+
'.log'
if
status
:
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
else
:
...
...
ci-scripts/main.py
View file @
845eeae9
...
...
@@ -921,7 +921,9 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
elif
action
==
'Build_Proxy'
:
CONTAINERS
.
BuildProxy
(
HTML
)
elif
action
==
'Copy_Image_to_Test'
:
CONTAINERS
.
Copy_Image_to_Test_Server
(
HTML
)
success
=
CONTAINERS
.
Copy_Image_to_Test_Server
(
HTML
)
if
not
success
:
RAN
.
prematureExit
=
True
elif
action
==
'Deploy_Object'
:
CONTAINERS
.
DeployObject
(
HTML
,
EPC
)
if
CONTAINERS
.
exitStatus
==
1
:
...
...
cmake_targets/tools/build_helper
View file @
845eeae9
...
...
@@ -237,8 +237,9 @@ compilations() {
echo_error "$2 compilation failed"
exit 1
fi
if [ -s $3 ] ; then
cp $3 $4
if [ -s "$3" ] ; then
rm -f "$4"
ln -s "$PWD/$3" "$4"
echo_success "$2 compiled"
check_warnings "$dlog/$2.$REL.txt"
else
...
...
docker/Dockerfile.eNB.rhel8.2
View file @
845eeae9
...
...
@@ -43,6 +43,7 @@ RUN yum update -y && \
tzdata \
procps-ng \
atlas \
gdb \
python3 \
python3-pip \
net-tools \
...
...
docker/Dockerfile.eNB.ubuntu18
View file @
845eeae9
...
...
@@ -53,6 +53,7 @@ RUN apt-get update && \
iputils-ping \
iproute2 \
iperf \
gdb \
python \
python3 \
python3-six \
...
...
docker/Dockerfile.gNB.rhel8.2
View file @
845eeae9
...
...
@@ -46,6 +46,7 @@ RUN yum repolist --disablerepo=* && \
lksctp-tools \
nettle \
tzdata \
gdb \
python3 \
python3-pip \
net-tools \
...
...
docker/Dockerfile.gNB.ubuntu18
View file @
845eeae9
...
...
@@ -52,6 +52,7 @@ RUN apt-get update && \
net-tools \
iproute2 \
iputils-ping \
gdb \
python \
python3 \
python3-six \
...
...
docker/Dockerfile.lteRU.rhel8.2
View file @
845eeae9
...
...
@@ -41,6 +41,7 @@ RUN yum update -y && \
tzdata \
procps-ng \
atlas \
gdb \
python3 \
python3-pip \
net-tools \
...
...
docker/Dockerfile.lteRU.ubuntu18
View file @
845eeae9
...
...
@@ -47,6 +47,7 @@ RUN apt-get update && \
libatlas3-base \
libconfig9 \
net-tools \
gdb \
python \
python3 \
python3-six \
...
...
docker/Dockerfile.lteUE.rhel8.2
View file @
845eeae9
...
...
@@ -44,6 +44,7 @@ RUN yum update -y && \
nettle \
tzdata \
atlas \
gdb \
python3 \
python3-pip \
iproute \
...
...
docker/Dockerfile.nrUE.rhel8.2
View file @
845eeae9
...
...
@@ -46,6 +46,7 @@ RUN yum update -y && \
iputils \
iproute \
atlas \
gdb \
python3 \
python3-pip \
libXpm \
...
...
docker/Dockerfile.nrUE.ubuntu18
View file @
845eeae9
...
...
@@ -50,6 +50,7 @@ RUN apt-get update && \
libconfig9 \
openssl \
net-tools \
gdb \
python \
python3 \
python3-six \
...
...
docker/scripts/enb_entrypoint.sh
View file @
845eeae9
...
...
@@ -51,9 +51,15 @@ for c in ${CONFIG_FILES}; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
echo
"=================================="
echo
"== Configuration file:
${
c
}
"
cat
${
c
}
done
# Load the USRP binaries
echo
"=================================="
echo
"== Load USRP binaries"
if
[[
-v
USE_B2XX
]]
;
then
$PREFIX
/bin/uhd_images_downloader.py
-t
b2xx
elif
[[
-v
USE_X3XX
]]
;
then
...
...
@@ -62,6 +68,9 @@ elif [[ -v USE_N3XX ]]; then
$PREFIX
/bin/uhd_images_downloader.py
-t
n3xx
fi
# enable printing of stack traces on assert
export
gdbStacks
=
1
echo
"=================================="
echo
"== Starting eNB soft modem"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
...
...
docker/scripts/gnb_entrypoint.sh
View file @
845eeae9
...
...
@@ -51,9 +51,15 @@ for c in ${CONFIG_FILES}; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
echo
"=================================="
echo
"== Configuration file:
${
c
}
"
cat
${
c
}
done
# Load the USRP binaries
echo
"=================================="
echo
"== Load USRP binaries"
if
[[
-v
USE_B2XX
]]
;
then
$PREFIX
/bin/uhd_images_downloader.py
-t
b2xx
elif
[[
-v
USE_X3XX
]]
;
then
...
...
@@ -62,6 +68,9 @@ elif [[ -v USE_N3XX ]]; then
$PREFIX
/bin/uhd_images_downloader.py
-t
n3xx
fi
# enable printing of stack traces on assert
export
gdbStacks
=
1
echo
"=================================="
echo
"== Starting gNB soft modem"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
...
...
docker/scripts/lte_ru_entrypoint.sh
View file @
845eeae9
...
...
@@ -31,9 +31,15 @@ for c in ${CONFIG_FILES}; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
echo
"=================================="
echo
"== Configuration file:
${
c
}
"
cat
${
c
}
done
# Load the USRP binaries
echo
"=================================="
echo
"== Load USRP binaries"
if
[[
-v
USE_B2XX
]]
;
then
$PREFIX
/bin/uhd_images_downloader.py
-t
b2xx
elif
[[
-v
USE_X3XX
]]
;
then
...
...
@@ -42,6 +48,9 @@ elif [[ -v USE_N3XX ]]; then
$PREFIX
/bin/uhd_images_downloader.py
-t
n3xx
fi
# enable printing of stack traces on assert
export
gdbStacks
=
1
echo
"=================================="
echo
"== Starting eNB soft modem"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
...
...
docker/scripts/lte_ue_entrypoint.sh
View file @
845eeae9
...
...
@@ -30,6 +30,10 @@ for c in ${CONFIG_FILES}; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
echo
"=================================="
echo
"== Configuration file:
${
c
}
"
cat
${
c
}
done
#now generate USIM files
...
...
@@ -38,6 +42,8 @@ cd $PREFIX
$PREFIX
/bin/conf2uedata
-c
$PREFIX
/etc/ue_usim.conf
-o
$PREFIX
# Load the USRP binaries
echo
"=================================="
echo
"== Load USRP binaries"
if
[[
-v
USE_B2XX
]]
;
then
$PREFIX
/bin/uhd_images_downloader.py
-t
b2xx
elif
[[
-v
USE_X3XX
]]
;
then
...
...
@@ -57,6 +63,9 @@ if [[ -v USE_NFAPI ]]; then
new_args+
=(
"
$PREFIX
/etc/ue.conf"
)
fi
# enable printing of stack traces on assert
export
gdbStacks
=
1
echo
"=================================="
echo
"== Starting LTE UE soft modem"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
...
...
docker/scripts/nr_ue_entrypoint.sh
View file @
845eeae9
...
...
@@ -40,9 +40,15 @@ for c in ${CONFIG_FILES}; do
# render template and inline replace config file
sed
-i
"
${
EXPRESSIONS
}
"
${
c
}
echo
"=================================="
echo
"== Configuration file:
${
c
}
"
cat
${
c
}
done
# Load the USRP binaries
echo
"=================================="
echo
"== Load USRP binaries"
if
[[
-v
USE_B2XX
]]
;
then
$PREFIX
/bin/uhd_images_downloader.py
-t
b2xx
elif
[[
-v
USE_X3XX
]]
;
then
...
...
@@ -58,6 +64,9 @@ while [[ $# -gt 0 ]]; do
shift
done
# enable printing of stack traces on assert
export
gdbStacks
=
1
echo
"=================================="
echo
"== Starting NR UE soft modem"
if
[[
-v
USE_ADDITIONAL_OPTIONS
]]
;
then
...
...
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