@@ -97,12 +97,13 @@ build:
97
97
export CORE_FAILED= || export CORE_FAILED=1
98
98
tool/test/stop-core-server.sh
99
99
if [[ -n "$CORE_FAILED" ]]; then exit 1; fi
100
-
101
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
102
- # bazel test //rust/tests/integration/cloud/... --test_output=streamed &&
103
- # export CLOUD_FAILED= || export CLOUD_FAILED=1
104
- # tool/test/stop-cloud-servers.sh
105
- # if [[ -n "$CLOUD_FAILED" ]]; then exit 1; fi
100
+
101
+ # TODO: Use cloud server artifact with 3 nodes when available
102
+ tool/test/start-core-server.sh &&
103
+ bazel test //rust/tests/integration/cloud/... --test_output=streamed --test_arg=--nocapture &&
104
+ export CLOUD_FAILED= || export CLOUD_FAILED=1
105
+ tool/test/stop-core-server.sh
106
+ if [[ -n "$CORE_FAILED" ]]; then exit 1; fi
106
107
107
108
test-rust-behaviour-core :
108
109
image : typedb-ubuntu-20.04 # Ubuntu 20.04 has GLIBC version 2.31 (2020) which we should verify to compile against
@@ -120,22 +121,22 @@ build:
120
121
tool/test/stop-core-server.sh
121
122
exit $TEST_SUCCESS
122
123
123
- # test-rust-behaviour-cloud:
124
- # image: typedb-ubuntu-20.04 # Ubuntu 20.04 has GLIBC version 2.31 (2020) which we should verify to compile against
125
- # dependencies:
126
- # - build
127
- # command: |
128
- # export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
129
- # export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
130
- # bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
131
- # bazel run @typedb_dependencies//distribution/artifact:create-netrc
132
- #
133
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
134
- # bazel test //rust/tests/behaviour/... --//rust/tests/behaviour/config:mode=cloud \
135
- # -- test_output=streamed --test_env=ROOT_CA=$ROOT_CA &&
136
- # export TEST_SUCCESS=0 || export TEST_SUCCESS=1
137
- # tool/test/stop-cloud-servers .sh
138
- # exit $TEST_SUCCESS
124
+ test-rust-behaviour-cloud :
125
+ image : typedb-ubuntu-20.04 # Ubuntu 20.04 has GLIBC version 2.31 (2020) which we should verify to compile against
126
+ dependencies :
127
+ - build
128
+ command : |
129
+ export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
130
+ export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
131
+ bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
132
+ bazel run @typedb_dependencies//distribution/artifact:create-netrc
133
+
134
+ # TODO: Use cloud server artifact with 3 nodes when available
135
+ tool/ test/start-core-server.sh &&
136
+ bazel test //rust/tests/behaviour/... --//rust/tests/behaviour/config:mode=cloud -- test_output=streamed --jobs=1 &&
137
+ export TEST_SUCCESS=0 || export TEST_SUCCESS=1
138
+ tool/test/stop-core-server .sh
139
+ exit $TEST_SUCCESS
139
140
140
141
# test-c-integration:
141
142
# image: typedb-ubuntu-20.04 # Ubuntu 20.04 has GLIBC version 2.31 (2020) which we should verify to compile against
@@ -163,16 +164,17 @@ build:
163
164
bazel run @typedb_dependencies//distribution/artifact:create-netrc
164
165
165
166
tool/test/start-core-server.sh &&
166
- .factory/test-core.sh //java/test/integration/... --test_output=errors &&
167
+ .factory/test-core.sh //java/test/integration/... --test_output=errors --jobs=1 &&
167
168
export TEST_SUCCESS=0 || export TEST_SUCCESS=1
168
169
tool/test/stop-core-server.sh
169
170
exit $TEST_SUCCESS
170
171
171
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
172
- # .factory/test-cloud.sh //java/test/integration/... --test_env=ROOT_CA=$ROOT_CA --test_output=errors --jobs=1 &&
173
- # export TEST_SUCCESS=0 || export TEST_SUCCESS=1
174
- # tool/test/stop-cloud-servers.sh
175
- # exit $TEST_SUCCESS
172
+ # TODO: Use cloud server artifact with 3 nodes when available
173
+ tool/test/start-core-server.sh &&
174
+ .factory/test-cloud.sh //java/test/integration/... --test_output=errors --jobs=1 &&
175
+ export TEST_SUCCESS=0 || export TEST_SUCCESS=1
176
+ tool/test/stop-core-server.sh
177
+ exit $TEST_SUCCESS
176
178
177
179
test-java-behaviour-core :
178
180
image : typedb-ubuntu-22.04
@@ -190,21 +192,22 @@ build:
190
192
tool/test/stop-core-server.sh
191
193
exit $TEST_SUCCESS
192
194
193
- # test-java-behaviour-cloud:
194
- # image: typedb-ubuntu-22.04
195
- # dependencies:
196
- # - build
197
- # command: |
198
- # export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
199
- # export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
200
- # bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
201
- # bazel run @typedb_dependencies//distribution/artifact:create-netrc
202
- #
203
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
204
- # .factory/test-cloud.sh //java/test/behaviour/... --test_env=ROOT_CA=$ROOT_CA --test_output=errors --jobs=1 &&
205
- # export TEST_SUCCESS=0 || export TEST_SUCCESS=1
206
- # tool/test/stop-cloud-servers.sh
207
- # exit $TEST_SUCCESS
195
+ test-java-behaviour-cloud :
196
+ image : typedb-ubuntu-22.04
197
+ dependencies :
198
+ - build
199
+ command : |
200
+ export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
201
+ export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
202
+ bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
203
+ bazel run @typedb_dependencies//distribution/artifact:create-netrc
204
+
205
+ # TODO: Use cloud server artifact with 3 nodes when available
206
+ tool/test/start-core-server.sh &&
207
+ .factory/test-cloud.sh //java/test/behaviour/... --test_output=errors --jobs=1 &&
208
+ export TEST_SUCCESS=0 || export TEST_SUCCESS=1
209
+ tool/test/stop-core-server.sh
210
+ exit $TEST_SUCCESS
208
211
209
212
test-python-integration :
210
213
image : typedb-ubuntu-22.04
@@ -224,11 +227,12 @@ build:
224
227
tool/test/stop-core-server.sh
225
228
if [[ -n "$CORE_FAILED" ]]; then exit 1; fi
226
229
227
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
228
- # bazel test //python/tests/integration/cloud/... --test_output=streamed --jobs=1 &&
229
- # export CLOUD_FAILED= || export CLOUD_FAILED=1
230
- # tool/test/stop-cloud-servers.sh
231
- # if [[ -n "$CLOUD_FAILED" ]]; then exit 1; fi
230
+ # TODO: Use cloud server artifact with 3 nodes when available
231
+ tool/test/start-core-server.sh &&
232
+ bazel test //python/tests/integration/cloud/... --test_output=streamed --jobs=1 &&
233
+ export CLOUD_FAILED= || export CLOUD_FAILED=1
234
+ tool/test/stop-core-server.sh
235
+ if [[ -n "$CLOUD_FAILED" ]]; then exit 1; fi
232
236
233
237
test-python-behaviour-core :
234
238
image : typedb-ubuntu-22.04
@@ -248,24 +252,25 @@ build:
248
252
tool/test/stop-core-server.sh
249
253
exit $TEST_SUCCESS
250
254
251
- # test-python-behaviour-cloud:
252
- # image: typedb-ubuntu-22.04
253
- # dependencies:
254
- # - build
255
- # type: foreground
256
- # command: |
257
- # export PATH="$HOME/.local/bin:$PATH"
258
- # export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
259
- # export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
260
- # bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
261
- # bazel run @typedb_dependencies//distribution/artifact:create-netrc
262
- #
263
- # source tool/test/start-cloud-servers.sh 3 && # use source to receive export vars
264
- # .factory/test-cloud.sh //python/tests/behaviour/... --test_env=ROOT_CA=$ROOT_CA --test_output=streamed --jobs=1 &&
265
- # export TEST_SUCCESS=0 || export TEST_SUCCESS=1
266
- # tool/test/stop-cloud-servers.sh
267
- # exit $TEST_SUCCESS
268
- #
255
+ test-python-behaviour-cloud :
256
+ image : typedb-ubuntu-22.04
257
+ dependencies :
258
+ - build
259
+ type : foreground
260
+ command : |
261
+ export PATH="$HOME/.local/bin:$PATH"
262
+ export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
263
+ export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
264
+ bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
265
+ bazel run @typedb_dependencies//distribution/artifact:create-netrc
266
+
267
+ # TODO: Use cloud server artifact with 3 nodes when available
268
+ tool/test/start-core-server.sh &&
269
+ .factory/test-cloud.sh //python/tests/behaviour/... --test_output=streamed --jobs=1 &&
270
+ export TEST_SUCCESS=0 || export TEST_SUCCESS=1
271
+ tool/test/stop-core-server.sh
272
+ exit $TEST_SUCCESS
273
+
269
274
# test-nodejs-integration:
270
275
# image: typedb-ubuntu-22.04
271
276
# dependencies:
0 commit comments