diff --git a/dev/ci/presubmits/cloud-provider-gcp-e2e-full b/dev/ci/presubmits/cloud-provider-gcp-e2e-full new file mode 100755 index 0000000000..668b7f1bb7 --- /dev/null +++ b/dev/ci/presubmits/cloud-provider-gcp-e2e-full @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -o errexit; +set -o nounset; +set -o pipefail; +set -o xtrace; + +REPO_ROOT=$(git rev-parse --show-toplevel) + +export GO111MODULE=on +if [[ -f "${REPO_ROOT}/.bazelversion" ]]; then + export BAZEL_VERSION=$(cat "${REPO_ROOT}/.bazelversion") + echo "BAZEL_VERSION set to ${BAZEL_VERSION}" +else + export BAZEL_VERSION="5.3.0" + echo "BAZEL_VERSION - Falling back to 5.3.0" +fi +/workspace/test-infra/images/kubekins-e2e/install-bazel.sh + +go install sigs.k8s.io/kubetest2@latest +go install sigs.k8s.io/kubetest2/kubetest2-gce@latest +go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest + +if [[ -f "${REPO_ROOT}/ginko-test-package-version.env" ]]; then + export TEST_PACKAGE_VERSION=$(cat "${REPO_ROOT}/ginko-test-package-version.env") + echo "TEST_PACKAGE_VERSION set to ${TEST_PACKAGE_VERSION}" +else + export TEST_PACKAGE_VERSION="v1.25.0" + echo "TEST_PACKAGE_VERSION - Falling back to v1.25.0" +fi + +kubetest2 gce -v 2 --repo-root "${REPO_ROOT}" --build --up --down --test=ginkgo --node-size e2-standard-4 --master-size e2-standard-8 -- --test-package-version="${TEST_PACKAGE_VERSION}" --parallel=30 --test-args='--minStartupPods=8' --skip-regex='\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]' diff --git a/dev/ci/presubmits/cloud-provider-gcp-verify-all b/dev/ci/presubmits/cloud-provider-gcp-verify-all new file mode 100755 index 0000000000..771709ed53 --- /dev/null +++ b/dev/ci/presubmits/cloud-provider-gcp-verify-all @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +import subprocess + +subprocess.run(["tools/verify-all.sh"], check=True) diff --git a/dev/ci/presubmits/cloud-provider-gcp-verify-up-to-date b/dev/ci/presubmits/cloud-provider-gcp-verify-up-to-date new file mode 100755 index 0000000000..1277132fe6 --- /dev/null +++ b/dev/ci/presubmits/cloud-provider-gcp-verify-up-to-date @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +import subprocess + +subprocess.run(["tools/verify-up-to-date.sh"], check=True) diff --git a/dev/ci/presubmits/pull-cloud-provider-gcp-e2e b/dev/ci/presubmits/pull-cloud-provider-gcp-e2e new file mode 100755 index 0000000000..5ff9b59ed4 --- /dev/null +++ b/dev/ci/presubmits/pull-cloud-provider-gcp-e2e @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +import subprocess + +subprocess.run(["tools/run-e2e-test.sh"], check=True) diff --git a/dev/ci/presubmits/pull-cloud-provider-gcp-scenario-kops-simple b/dev/ci/presubmits/pull-cloud-provider-gcp-scenario-kops-simple new file mode 100755 index 0000000000..41f8654074 --- /dev/null +++ b/dev/ci/presubmits/pull-cloud-provider-gcp-scenario-kops-simple @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 + +import subprocess + +subprocess.run(["e2e/add-kubernetes-to-workspace.sh"], check=True) + +subprocess.run(["e2e/scenarios/kops-simple"], check=True)