Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-UPF
Commits
32d3cbac
Commit
32d3cbac
authored
Oct 11, 2022
by
Stefan Spettel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): Fixed sanity check timer and reduced to max 1 minute
Signed-off-by:
Stefan Spettel
<
stefan.spettel@eurecom.fr
>
parent
e8a16c50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ci-scripts/sanityCheckDeployment.py
ci-scripts/sanityCheckDeployment.py
+6
-3
No files found.
ci-scripts/sanityCheckDeployment.py
View file @
32d3cbac
...
@@ -29,6 +29,9 @@ import sys
...
@@ -29,6 +29,9 @@ import sys
import
time
import
time
from
pcap_check
import
*
from
pcap_check
import
*
TIMEOUT_COUNT
=
60
TIMEOUT_SLEEP
=
1
logging
.
basicConfig
(
logging
.
basicConfig
(
level
=
logging
.
DEBUG
,
level
=
logging
.
DEBUG
,
format
=
"[%(asctime)s] %(name)s:%(levelname)s: %(message)s"
format
=
"[%(asctime)s] %(name)s:%(levelname)s: %(message)s"
...
@@ -142,8 +145,8 @@ def deployObject(service, tag, compose_file):
...
@@ -142,8 +145,8 @@ def deployObject(service, tag, compose_file):
# Counting the number of healthy containers
# Counting the number of healthy containers
cmd
=
'docker-compose -p vpp-sanity -f ./ci-'
+
compose_file
+
' ps -a'
cmd
=
'docker-compose -p vpp-sanity -f ./ci-'
+
compose_file
+
' ps -a'
while
(
nb_healthy
!=
expect_healthy
)
or
(
cnt
>
50
):
while
(
nb_healthy
!=
expect_healthy
)
and
(
cnt
<=
TIMEOUT_COUNT
):
time
.
sleep
(
5
)
time
.
sleep
(
TIMEOUT_SLEEP
)
cnt
+=
1
cnt
+=
1
res
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
res
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
nb_healthy
=
0
nb_healthy
=
0
...
@@ -156,7 +159,7 @@ def deployObject(service, tag, compose_file):
...
@@ -156,7 +159,7 @@ def deployObject(service, tag, compose_file):
# Adding a tempo for VPP-UPF to be fully ready
# Adding a tempo for VPP-UPF to be fully ready
if
service
==
'vpp-upf'
:
if
service
==
'vpp-upf'
:
time
.
sleep
(
10
)
time
.
sleep
(
10
)
elif
cnt
>
50
:
elif
cnt
>
TIMEOUT_COUNT
:
logging
.
error
(
'KO'
)
logging
.
error
(
'KO'
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
...
...
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