File tree 3 files changed +20
-10
lines changed
3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -1058,6 +1058,8 @@ jobs:
1058
1058
${{ runner.os }}-node-
1059
1059
- name : setup images
1060
1060
run : ./ci/github/system-testing/e2e.bash setup_images
1061
+ - name : setup and start swarm
1062
+ run : ./ci/github/system-testing/e2e.bash setup_and_run_stack
1061
1063
- name : setup environment
1062
1064
run : ./ci/github/system-testing/e2e.bash setup_environment
1063
1065
- name : setup registry
@@ -1070,7 +1072,7 @@ jobs:
1070
1072
- name : recover docker logs
1071
1073
id : logs_recovery
1072
1074
if : always()
1073
- run : ./ci/github/system-testing/e2e.bash recover_artifacts
1075
+ run : ./ci/github/system-testing/e2e.bash dump_docker_logs
1074
1076
- name : upload docker logs
1075
1077
if : always()
1076
1078
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -74,13 +74,17 @@ uninstall_insecure_registry() {
74
74
}
75
75
76
76
setup_images () {
77
- echo " --------------- getting simcore docker images..."
77
+ echo " --------------- preparing docker images..."
78
78
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
79
79
make info-images
80
80
81
+ }
82
+
83
+ setup_and_run_stack () {
81
84
# configure simcore for testing with a private registry
82
85
install_insecure_registry
83
86
87
+ echo " --------------- starting swarm ..."
84
88
# start simcore and set log-level
85
89
export LOG_LEVEL=WARNING
86
90
make up-version
@@ -135,29 +139,32 @@ setup_database() {
135
139
install () {
136
140
# # shortcut
137
141
setup_images
142
+ setup_and_run_stack
138
143
setup_environment
139
144
setup_registry
140
145
setup_database
141
146
}
142
147
143
148
test () {
149
+ sleep 5
144
150
pushd tests/e2e
145
151
make test
146
152
popd
147
-
148
153
}
149
154
150
- recover_artifacts () {
155
+ dump_docker_logs () {
151
156
# all screenshots are in tests/e2e/screenshots if any
152
157
153
158
# get docker logs.
154
159
# NOTE: dumping logs sometimes hangs. Introducing a timeout
155
- mkdir simcore_logs
160
+ mkdir --parents simcore_logs
156
161
(timeout 30 docker service logs --timestamps --tail=300 --details ${SWARM_STACK_NAME} _webserver > simcore_logs/webserver.log 2>&1 ) || true
157
162
(timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _director > simcore_logs/director.log 2>&1 ) || true
158
163
(timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _storage > simcore_logs/storage.log 2>&1 ) || true
159
164
(timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _sidecar > simcore_logs/sidecar.log 2>&1 ) || true
160
165
(timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _catalog > simcore_logs/catalog.log 2>&1 ) || true
166
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _migration > simcore_logs/migration.log 2>&1 ) || true
167
+ (timeout 30 docker service logs --timestamps --tail=200 --details ${SWARM_STACK_NAME} _postgres > simcore_logs/postgres.log 2>&1 ) || true
161
168
}
162
169
163
170
clean_up () {
Original file line number Diff line number Diff line change @@ -41,17 +41,17 @@ registry-down: ## bring the docker registry down
41
41
wait-for-services : # # wait for simcore services to be up
42
42
@python utils/wait_for_services.py
43
43
44
+
44
45
.PHONY : transfer-images-to-registry
45
46
transfer-images-to-registry : # # transfer images to registry
47
+ # pushing sleeper image
46
48
@docker pull itisfoundation/sleeper:1.0.0
47
49
@docker tag itisfoundation/sleeper:1.0.0 registry:5000/simcore/services/comp/itis/sleeper:1.0.0
48
50
@docker push registry:5000/simcore/services/comp/itis/sleeper:1.0.0
49
-
50
- # @docker pull itisfoundation/jupyter-base-notebook:2.13.0
51
- # @docker tag itisfoundation/jupyter-base-notebook:2.13.0 registry:5000/simcore/services/dynamic/jupyter-base-notebook:2.13.0
52
- # @docker push registry:5000/simcore/services/dynamic/jupyter-base-notebook:2.13.0
53
51
# completed transfer of images
54
52
curl -s registry:5000/v2/_catalog | jq ' .repositories'
53
+ curl -s http://registry:5000/v2/simcore/services/comp/itis/sleeper/tags/list? n=50 | jq ' .'
54
+
55
55
56
56
PUBLISHED_PORT = $(shell docker inspect $(shell docker service ls --format "{{ .Name }}" | grep postgres) --format "{{(index .Endpoint.Ports 0) .PublishedPort}}")
57
57
.PHONY : inject-templates-in-db
@@ -64,8 +64,9 @@ inject-templates-in-db: ## inject project templates
64
64
--dbname simcoredb \
65
65
--command " \copy projects from 'tutorials/sleepers_project_template_sql.csv' csv header;" ;
66
66
67
+
67
68
.PHONY : test
68
- test : # # test the platform
69
+ test : # # test the platformå
69
70
# tests
70
71
npm test
71
72
# tests whether tutorial run
You can’t perform that action at this time.
0 commit comments