Skip to content

Commit

Permalink
Merge pull request cri-o#2758 from haircommander/e2e-get-false-1.15
Browse files Browse the repository at this point in the history
[1.15] download kubetest manually
  • Loading branch information
Mrunal Patel authored Sep 4, 2019
2 parents f5bd5ee + 650f211 commit 9fb0ba9
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
6 changes: 6 additions & 0 deletions contrib/test/integration/build/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@
KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
regexp: 'KUBECONFIG='
state: present

- name: install kubectl (for kubetest)
copy:
src: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes/_output/bin/kubectl"
dest: "{{ ansible_env.GOPATH }}/bin/kubectl"
mode: "preserve"
16 changes: 16 additions & 0 deletions contrib/test/integration/build/kubetest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

- name: clone test-infra source repo
git:
repo: "https://github.com/kubernetes/test-infra.git"
dest: "{{ ansible_env.GOPATH }}/src/k8s.io/test-infra"
force: "{{ force_clone | default(False) | bool}}"

# per https://github.com/kubernetes/test-infra/issues/14070 we need to download
# kubetest with go module 1.11 on and without -u. As of the time of writing this,
# neither are happening in hack/e2e.go. instead, add this, and set --get=false when
# running e2e
- name: install kubetest
shell: GOPROXY=https://proxy.golang.org GOSUMDB=sum.golang.org GO111MODULE=on go get ./kubetest
args:
chdir: "{{ ansible_env.GOPATH }}/src/k8s.io/test-infra"
4 changes: 3 additions & 1 deletion contrib/test/integration/e2e-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
- name: Buffer the e2e testing command to workaround Ansible YAML folding "feature"
set_fact:
e2e_shell_cmd: >
KUBE_CONTAINER_RUNTIME="remote" GINKGO_PARALLEL_NODES=6 GINKGO_PARALLEL=y /usr/bin/go run hack/e2e.go
KUBE_CONTAINER_RUNTIME="remote" GINKGO_PARALLEL_NODES=6 GINKGO_PARALLEL=y
"{{ ansible_env.GOPATH }}"/bin/kubetest
--provider local
--test
--test_args="-host=https://{{ ansible_default_ipv4.address }}:6443
--ginkgo.focus=\[Feature:SecurityContext\]
Expand Down
4 changes: 3 additions & 1 deletion contrib/test/integration/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
- name: Buffer the e2e testing command to workaround Ansible YAML folding "feature"
set_fact:
e2e_shell_cmd: >
KUBE_CONTAINER_RUNTIME="remote" GINKGO_TOLERATE_FLAKES="y" GINKGO_PARALLEL_NODES=6 GINKGO_PARALLEL=y /usr/bin/go run hack/e2e.go
KUBE_CONTAINER_RUNTIME="remote" GINKGO_TOLERATE_FLAKES="y" GINKGO_PARALLEL_NODES=6 GINKGO_PARALLEL=y
"{{ ansible_env.GOPATH }}"/bin/kubetest
--provider local
--test
--test_args="-host=https://{{ ansible_default_ipv4.address }}:6443
--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|PersistentVolumes|\[HPA\]|should.support.building.a.client.with.a.CSR|should.propagate.mounts.to.the.host|for.NodePort.service|type.clusterIP|unready.pods|ExternalName.services|Guestbook.application|in-cluster.config|Pods.should.support.pod.readiness.gates|\[sig-storage\].In-tree.Volumes.\[Driver:.local\]|\[sig-storage\].CSI.Volumes.CSI.Topology.test.using.GCE.PD.driver
Expand Down
1 change: 1 addition & 0 deletions contrib/test/integration/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- "{{ ansible_env.GOPATH }}/src/github.com/k8s.io"
- "{{ ansible_env.GOPATH }}/src/github.com/bats-core"
- "{{ ansible_env.GOPATH }}/src/github.com/opencontainers"
- "{{ ansible_env.GOPATH }}/src/k8s.io/test-infra"

- name: install Go tools and dependencies
shell: /usr/bin/go get -u "github.com/{{ item }}"
Expand Down
11 changes: 11 additions & 0 deletions contrib/test/integration/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
k8s_github_fork: "kubernetes"
crio_socket: "/var/run/crio/crio.sock"

- name: clone build and install kubetest
include: "build/kubetest.yml"

- name: clone build and install runc
include: "build/runc.yml"
when: "{{ build_runc | default(True) | bool}}"
Expand Down Expand Up @@ -121,6 +124,10 @@
k8s_git_version: "release-1.15"
k8s_github_fork: "kubernetes"
crio_socket: "/var/run/crio/crio.sock"

- name: clone build and install kubetest
include: "build/kubetest.yml"

- name: run k8s e2e tests
include: e2e.yml

Expand All @@ -138,5 +145,9 @@
k8s_git_version: "master"
k8s_github_fork: "kubernetes"
crio_socket: "/var/run/crio/crio.sock"

- name: clone build and install kubetest
include: "build/kubetest.yml"

- name: run k8s e2e features tests
include: e2e-features.yml

0 comments on commit 9fb0ba9

Please sign in to comment.