EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
e1e95607
Commit
e1e95607
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
log services on failure
parent
3afcf0bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!49
Production release 1.1.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/gitlab_test.sh
+16
-13
16 additions, 13 deletions
testing/gitlab_test.sh
with
16 additions
and
13 deletions
testing/gitlab_test.sh
+
16
−
13
View file @
e1e95607
#!/bin/sh
function
log_services
()
{
if
[
$?
-ne
0
]
then
echo
"Failure in tests, logging from services:"
for
service
in
$(
docker service
ls
--format
"{{.Name}}"
)
;
do
docker service ps
$service
--no-trunc
>>
"/tmp/
$service
.log"
docker service logs
$service
>>
"/tmp/
$service
.log"
docker service ps
$service
--no-trunc
docker service logs
$service
done
exit
1
fi
}
# fetch secrets and write them to their according files
cat
$vhr18_db
>
../env/vhr18_db.env
cat
$vhr18_django
>
../env/vhr18_django.env
...
...
@@ -49,7 +62,7 @@ bash ./registrar_prep.sh product_list.csv
pytest registrar_test.py preprocessor_test.py renderer_test.py
if
[
$?
-ne
0
]
;
then
echo
"Pytest fail"
>
&2
&&
exit
1
;
fi
log_services
swift delete preprocessor_results
...
...
@@ -62,17 +75,7 @@ sleep 90
# test the existance of ingested item
pytest ingestor_test.py
swift delete preprocessor_result
s
log_service
s
if
[
$?
-ne
0
]
then
echo
"Failure in tests, logging from services:"
for
service
in
$(
docker service
ls
--format
"{{.Name}}"
)
;
do
docker service ps
$service
--no-trunc
>>
"/tmp/
$service
.log"
docker service logs
$service
>>
"/tmp/
$service
.log"
docker service ps
$service
--no-trunc
docker service logs
$service
done
exit
1
fi
swift delete preprocessor_results
\ No newline at end of file
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