Skip to content

Commit 462321b

Browse files
committed
wip
1 parent c7630f7 commit 462321b

4 files changed

Lines changed: 52 additions & 26 deletions

File tree

.factory/automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ build:
355355
if [[ -n "$CORE_FAILED" ]]; then exit 1; fi
356356
357357
source tool/test/start-cluster-servers.sh 3 &&
358-
bazel test --config=ci //csharp/Test/Integration:test-failover --test_env=CLUSTER_SERVER_SCRIPT=$CLUSTER_SERVER_SCRIPT --test_env=ROOT_CA=$ROOT_CA --test_env=CLUSTER_DIR=$CLUSTER_DIR --test_output=streamed --jobs=1 &&
358+
bazel test --config=ci //csharp/Test/Integration/Cluster:test-failover --test_env=CLUSTER_SERVER_SCRIPT=$CLUSTER_SERVER_SCRIPT --test_env=ROOT_CA=$ROOT_CA --test_env=CLUSTER_DIR=$CLUSTER_DIR --test_output=streamed --jobs=1 &&
359359
export CLUSTER_FAILED= || export CLUSTER_FAILED=1
360360
tool/test/stop-cluster-servers.sh
361361
if [[ -n "$CLUSTER_FAILED" ]]; then exit 1; fi

csharp/Test/Integration/BUILD

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -49,31 +49,6 @@ csharp_integration_test(
4949
targeting_packs = targeting_packs,
5050
)
5151

52-
csharp_integration_test(
53-
name = "test-failover",
54-
srcs = ["FailoverTest.cs"],
55-
deps = [
56-
"//csharp:driver-csharp",
57-
"//csharp/Api:api",
58-
"//csharp/Answer:answer",
59-
"//csharp/Common:common",
60-
],
61-
target_frameworks = target_frameworks,
62-
targeting_packs = targeting_packs,
63-
size = "large",
64-
data = [
65-
"//tool/test:cluster-server.sh",
66-
"//tool/test/resources:encryption/ext-grpc-root-ca.pem",
67-
],
68-
# Pass these paths via --test_env: --test_env=CLUSTER_SERVER_SCRIPT=<path> --test_env=ROOT_CA=<path>
69-
# The test drives an out-of-sandbox cluster started by start-cluster-servers.sh:
70-
# it kills/restarts nodes via cluster-server.sh, which writes to log files and
71-
# data directories under $CLUSTER_DIR (the outer workspace). The Bazel sandbox
72-
# blocks writes to those paths, so this test must run unsandboxed and locally,
73-
# and it relies on host-level state so cached results would be misleading.
74-
tags = ["external", "no-cache", "no-sandbox"],
75-
)
76-
7752
checkstyle_test(
7853
name = "checkstyle",
7954
include = glob(["*"]),
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
load("@typedb_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
19+
load("//csharp:build_opts.bzl", "target_frameworks", "targeting_packs")
20+
load("//csharp/Test:rules.bzl", "csharp_integration_test")
21+
22+
csharp_integration_test(
23+
name = "test-failover",
24+
srcs = ["FailoverTest.cs"],
25+
deps = [
26+
"//csharp:driver-csharp",
27+
"//csharp/Api:api",
28+
"//csharp/Answer:answer",
29+
"//csharp/Common:common",
30+
],
31+
target_frameworks = target_frameworks,
32+
targeting_packs = targeting_packs,
33+
size = "large",
34+
data = [
35+
"//tool/test:cluster-server.sh",
36+
"//tool/test/resources:encryption/ext-grpc-root-ca.pem",
37+
],
38+
# Pass these paths via --test_env: --test_env=CLUSTER_SERVER_SCRIPT=<path> --test_env=ROOT_CA=<path>
39+
# The test drives an out-of-sandbox cluster started by start-cluster-servers.sh:
40+
# it kills/restarts nodes via cluster-server.sh, which writes to log files and
41+
# data directories under $CLUSTER_DIR (the outer workspace). The Bazel sandbox
42+
# blocks writes to those paths, so this test must run unsandboxed and locally,
43+
# and it relies on host-level state so cached results would be misleading.
44+
tags = ["external", "no-cache", "no-sandbox"],
45+
)
46+
47+
checkstyle_test(
48+
name = "checkstyle",
49+
include = glob(["*"]),
50+
license_type = "apache-header",
51+
)
File renamed without changes.

0 commit comments

Comments
 (0)