Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
0d67d44e
Commit
0d67d44e
authored
6 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Patches
Plain Diff
CI: running TDD test even if FDD failed
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
afa64a0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci-scripts/Jenkinsfile-gitlab
+44
-58
44 additions, 58 deletions
ci-scripts/Jenkinsfile-gitlab
ci-scripts/runTestOnVM.sh
+4
-4
4 additions, 4 deletions
ci-scripts/runTestOnVM.sh
with
48 additions
and
62 deletions
ci-scripts/Jenkinsfile-gitlab
+
44
−
58
View file @
0d67d44e
...
@@ -269,42 +269,35 @@ pipeline {
...
@@ -269,42 +269,35 @@ pipeline {
steps
{
steps
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
script
{
script
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
try
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
parameters:
[
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
parameters:
[
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
]
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
}
else
{
]
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
}
else
{
parameters:
[
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
parameters:
[
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
GIT_COMMIT
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
GIT_COMMIT
)),
]
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
}
}
}
post
{
post
{
// In case of success we really pick the report from the exact slave build number
success
{
script
{
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
filter:
'test_results*.html'
,
selector:
specific
(
"${FDD_Band7_B210_Status.number}"
))
if
(
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
archiveArtifacts
artifacts:
'test_results-eNB-CI-FDD-Band7-B210.html'
}
}
}
// In case of any non-success, we are retrieving the HTML report of the last completed
// In case of any non-success, we are retrieving the HTML report of the last completed
// slave job.
Note that we could use that syntax also in case of success.
// slave job.
// The only drop-back is that we may retrieve the HTML report of a previous build
// The only drop-back is that we may retrieve the HTML report of a previous build
cleanup
{
always
{
script
{
script
{
if
(!
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
if
(!
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
...
@@ -322,42 +315,35 @@ pipeline {
...
@@ -322,42 +315,35 @@ pipeline {
steps
{
steps
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
script
{
script
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
try
{
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
parameters:
[
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
parameters:
[
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
]
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
}
else
{
]
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
}
else
{
parameters:
[
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
parameters:
[
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
GIT_COMMIT
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
GIT_COMMIT
)),
]
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
}
}
}
post
{
post
{
// In case of success we really pick the report from the exact slave build number
success
{
script
{
copyArtifacts
(
projectName:
'eNB-CI-TDD-Band40-B210'
,
filter:
'test_results*.html'
,
selector:
specific
(
"${TDD_Band40_B210_Status.number}"
))
if
(
fileExists
(
'test_results-eNB-CI-TDD-Band40-B210.html'
))
{
archiveArtifacts
artifacts:
'test_results-eNB-CI-TDD-Band40-B210.html'
}
}
}
// In case of any non-success, we are retrieving the HTML report of the last completed
// In case of any non-success, we are retrieving the HTML report of the last completed
// slave job.
Note that we could use that syntax also in case of success.
// slave job.
// The only drop-back is that we may retrieve the HTML report of a previous build
// The only drop-back is that we may retrieve the HTML report of a previous build
cleanup
{
always
{
script
{
script
{
if
(!
fileExists
(
'test_results-eNB-CI-TDD-Band40-B210.html'
))
{
if
(!
fileExists
(
'test_results-eNB-CI-TDD-Band40-B210.html'
))
{
copyArtifacts
(
projectName:
'eNB-CI-TDD-Band40-B210'
,
copyArtifacts
(
projectName:
'eNB-CI-TDD-Band40-B210'
,
...
...
This diff is collapsed.
Click to expand it.
ci-scripts/runTestOnVM.sh
+
4
−
4
View file @
0d67d44e
...
@@ -593,9 +593,9 @@ then
...
@@ -593,9 +593,9 @@ then
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
<
$EPC_VM_CMDS
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
<
$EPC_VM_CMDS
rm
$EPC_VM_CMDS
rm
$EPC_VM_CMDS
echo
"echo
\"
iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1
\"
"
>
$VM_CMDS
echo
"echo
\"
iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1
\"
"
>
$VM_CMDS
echo
"echo
\"
COMMAND IS: iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1
\"
> /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>
$VM_CMDS
echo
"echo
\"
COMMAND IS: iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1
\"
> /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>
$VM_CMDS
echo
"iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1 | tee -a /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>>
$VM_CMDS
echo
"iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1 | tee -a /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>>
$VM_CMDS
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
<
$VM_CMDS
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
<
$VM_CMDS
rm
-f
$VM_CMDS
rm
-f
$VM_CMDS
...
@@ -674,7 +674,7 @@ then
...
@@ -674,7 +674,7 @@ then
STATUS
=
-1
STATUS
=
-1
else
else
EFFECTIVE_BANDWIDTH
=
`
tail
-n3
$ARCHIVES_LOC
/iperf_ul_client.txt | egrep
"Mbits/sec"
|
sed
-e
"s#^.*MBytes *##"
-e
"s#sec.*#sec#"
`
EFFECTIVE_BANDWIDTH
=
`
tail
-n3
$ARCHIVES_LOC
/iperf_ul_client.txt | egrep
"Mbits/sec"
|
sed
-e
"s#^.*MBytes *##"
-e
"s#sec.*#sec#"
`
if
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
4
.
*
Mbits.
*
]]
||
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
3
.
*
Mbits.
*
]]
if
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
2
.
*
Mbits.
*
]]
||
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
1
.
*
Mbits.
*
]]
then
then
echo
"got requested UL bandwidth:
$EFFECTIVE_BANDWIDTH
"
echo
"got requested UL bandwidth:
$EFFECTIVE_BANDWIDTH
"
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment