Skip to content

Commit ad7d83b

Browse files
committed
Fix the CI tests
1 parent 9716862 commit ad7d83b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test/pkg:
5959
# takes a bit of time.
6060
.PHONY: test/verify
6161
test/verify:
62-
bazel test //hack/...
62+
bazel test --test_output=all //hack/... --test_arg=-test.parallel=2
6363

6464
.PHONY: test/lint
6565
test/lint:
@@ -94,7 +94,7 @@ test/e2e-short:
9494
test/e2e/testrunner-k3d-%: PACKAGE=$*
9595
test/e2e/testrunner-k3d-%:
9696
bazel run //hack/k8s:k8s -- -type k3d
97-
bazel test --stamp //e2e/$(PACKAGE)/... --test_arg=-test.v --test_arg=-test.parallel=4 --test_arg=parallel=true
97+
bazel test --test_output=all --stamp //e2e/$(PACKAGE)/... --test_arg=-test.v --test_arg=-test.parallel=4 --test_arg=parallel=true
9898

9999
# Use this target to run e2e tests using a k3d k8s cluster.
100100
# This target uses k3d to start a k8s cluster and runs the e2e tests

hack/bin/BUILD.bazel

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ genrule(
3838
visibility = ["//visibility:public"],
3939
)
4040

41+
# fetch preflight has only linux supported binary and only used for releasing the operator to openshift
42+
# Hence, fetching same binary for all platforms to allow bazel sync on other platform.
4143
genrule(
4244
name = "fetch_preflight",
4345
srcs = select({
@@ -77,7 +79,7 @@ genrule(
7779
genrule(
7880
name = "io_kubernetes_kube-apiserver",
7981
srcs = select({
80-
":m1": ["@kube-apiserver_linux_amd64//file"],
82+
":m1": ["@kube-apiserver_darwin_amd64//file"],
8183
":darwin": ["@kube-apiserver_linux_amd64//file"],
8284
":k8": ["@kube-apiserver_linux_amd64//file"],
8385
}),

hack/bin/deps.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def install_integration_test_dependencies():
128128
http_file(
129129
name = "kube-apiserver_darwin_amd64",
130130
executable = 1,
131-
sha256 = "a874d479f183f9e4c19a5c69b44955fabd2e250b467d2d9f0641ae91a82ddbea",
132-
urls = ["https://storage.googleapis.com/cert-manager-testing-assets/kube-apiserver-1.17.3_darwin_amd64"],
131+
sha256 = "b575b687097b4662b7eb2ea5453e4b381994ddf34b85ca4bb8e4f16c5f86bedb",
132+
urls = ["https://storage.googleapis.com/cockroach-operator-testing-assets/kube-apiserver-1.24.2_darwin_arm64"],
133133
)
134134

135135
http_file(

0 commit comments

Comments
 (0)