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
alex037yang
OpenXG-RAN
Commits
ebbff46c
Commit
ebbff46c
authored
Jun 24, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 3 after review
parent
03ff1ef3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
ci-scripts/cls_physim.py
ci-scripts/cls_physim.py
+8
-3
ci-scripts/main.py
ci-scripts/main.py
+8
-0
ci-scripts/xml_files/ldpc_gpu_test.xml
ci-scripts/xml_files/ldpc_gpu_test.xml
+1
-0
No files found.
ci-scripts/cls_physim.py
View file @
ebbff46c
...
...
@@ -51,6 +51,7 @@ class PhySim:
self
.
ranAllowMerge
=
""
self
.
ranTargetBranch
=
""
self
.
exitStatus
=
0
self
.
forced_workspace_cleanup
=
False
#private attributes
self
.
__workSpacePath
=
''
self
.
__buildLogFile
=
'compile_phy_sim.log'
...
...
@@ -75,7 +76,7 @@ class PhySim:
for
line
in
f
:
if
'mean'
in
line
:
self
.
__runResults
.
append
(
line
)
#the value are appended for each mean value (2), so we take these 2 values from the list
#the value
s
are appended for each mean value (2), so we take these 2 values from the list
info
=
self
.
__runResults
[
0
]
+
self
.
__runResults
[
1
]
#once parsed move the local logfile to its folder for tidiness
...
...
@@ -138,8 +139,12 @@ class PhySim:
mySSH
.
command
(
'git config user.email "jenkins@openairinterface.org"'
,
'\$'
,
5
)
mySSH
.
command
(
'git config user.name "OAI Jenkins"'
,
'\$'
,
5
)
#git clean
mySSH
.
command
(
'echo '
+
self
.
eNBPassWord
+
' | sudo -S git clean -x -d -ff'
,
'\$'
,
30
)
#git clean depending on self.forced_workspace_cleanup captured in xml
if
self
.
forced_workspace_cleanup
==
True
:
logging
.
info
(
'Cleaning workspace ...'
)
mySSH
.
command
(
'echo '
+
self
.
eNBPassWord
+
' | sudo -S git clean -x -d -ff'
,
'\$'
,
30
)
else
:
logging
.
info
(
'Workspace cleaning was disabled'
)
# if the commit ID is provided, use it to point to it
if
self
.
ranCommitID
!=
''
:
...
...
ci-scripts/main.py
View file @
ebbff46c
...
...
@@ -3211,6 +3211,14 @@ def GetParametersFromXML(action):
if
action
==
'Build_PhySim'
:
ldpc
.
buildargs
=
test
.
findtext
(
'physim_build_args'
)
forced_workspace_cleanup
=
test
.
findtext
(
'forced_workspace_cleanup'
)
if
(
forced_workspace_cleanup
is
None
):
ldpc
.
forced_workspace_cleanup
=
False
else
:
if
re
.
match
(
'true'
,
forced_workspace_cleanup
,
re
.
IGNORECASE
):
ldpc
.
forced_workspace_cleanup
=
True
else
:
ldpc
.
forced_workspace_cleanup
=
False
if
action
==
'Run_PhySim'
:
ldpc
.
runargs
=
test
.
findtext
(
'physim_run_args'
)
...
...
ci-scripts/xml_files/ldpc_gpu_test.xml
View file @
ebbff46c
...
...
@@ -33,6 +33,7 @@
<class>
Build_PhySim
</class>
<desc>
Build for physical simulator
</desc>
<physim_build_args>
--phy_simulators --ninja
</physim_build_args>
<forced_workspace_cleanup>
TRUE
</forced_workspace_cleanup>
</testCase>
<testCase
id=
"000002"
>
...
...
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