Skip to content

Commit

Permalink
Fix the CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 committed Nov 1, 2024
1 parent 9716862 commit 6538d7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test/pkg:
# takes a bit of time.
.PHONY: test/verify
test/verify:
bazel test //hack/...
bazel test --test_output=all //hack/...

.PHONY: test/lint
test/lint:
Expand Down Expand Up @@ -94,7 +94,7 @@ test/e2e-short:
test/e2e/testrunner-k3d-%: PACKAGE=$*
test/e2e/testrunner-k3d-%:
bazel run //hack/k8s:k8s -- -type k3d
bazel test --stamp //e2e/$(PACKAGE)/... --test_arg=-test.v --test_arg=-test.parallel=4 --test_arg=parallel=true
bazel test --test_output=all --stamp //e2e/$(PACKAGE)/... --test_arg=-test.v --test_arg=-test.parallel=4 --test_arg=parallel=true

# Use this target to run e2e tests using a k3d k8s cluster.
# This target uses k3d to start a k8s cluster and runs the e2e tests
Expand Down
2 changes: 1 addition & 1 deletion hack/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sh_test(
args = [
"run",
"--config .golangci.yaml",
"--timeout 5m",
"--timeout 10m",
],
data = ["@//:all-srcs"],
env = {
Expand Down
4 changes: 3 additions & 1 deletion hack/bin/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ genrule(
visibility = ["//visibility:public"],
)

# fetch preflight has only linux supported binary and only used for releasing the operator to openshift
# Hence, fetching same binary for all platforms to allow bazel sync on other platform.
genrule(
name = "fetch_preflight",
srcs = select({
Expand Down Expand Up @@ -77,7 +79,7 @@ genrule(
genrule(
name = "io_kubernetes_kube-apiserver",
srcs = select({
":m1": ["@kube-apiserver_linux_amd64//file"],
":m1": ["@kube-apiserver_darwin_amd64//file"],
":darwin": ["@kube-apiserver_linux_amd64//file"],
":k8": ["@kube-apiserver_linux_amd64//file"],
}),
Expand Down
4 changes: 2 additions & 2 deletions hack/bin/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def install_integration_test_dependencies():
http_file(
name = "kube-apiserver_darwin_amd64",
executable = 1,
sha256 = "a874d479f183f9e4c19a5c69b44955fabd2e250b467d2d9f0641ae91a82ddbea",
urls = ["https://storage.googleapis.com/cert-manager-testing-assets/kube-apiserver-1.17.3_darwin_amd64"],
sha256 = "b575b687097b4662b7eb2ea5453e4b381994ddf34b85ca4bb8e4f16c5f86bedb",
urls = ["https://storage.googleapis.com/cockroach-operator-testing-assets/kube-apiserver-1.24.2_darwin_arm64"],
)

http_file(
Expand Down

0 comments on commit 6538d7c

Please sign in to comment.