From 8d2a572eadd87ca5fb69af583ac8285bfe14fafc Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 11 Jan 2018 16:54:38 +0100 Subject: [PATCH] contrib: test: add node-e2e job Signed-off-by: Antonio Murdaca --- contrib/test/integration/main.yml | 22 ++++++++++++++++++++++ contrib/test/integration/node-e2e.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 contrib/test/integration/node-e2e.yml diff --git a/contrib/test/integration/main.yml b/contrib/test/integration/main.yml index cbbcd12e..1f6448f5 100644 --- a/contrib/test/integration/main.yml +++ b/contrib/test/integration/main.yml @@ -41,6 +41,7 @@ tags: - integration - e2e + - node-e2e - critest tasks: - name: clone build and install cri-o @@ -80,6 +81,27 @@ - name: run critest validation and benchmarks include: critest.yml +- hosts: all + remote_user: root + vars_files: + - "{{ playbook_dir }}/vars.yml" + tags: + - node-e2e + tasks: + - name: install Golang tools + include: golang.yml + vars: + version: "1.9.2" + - name: clone build and install kubernetes + include: "build/kubernetes.yml" + vars: + force_clone: True + k8s_git_version: "master" + k8s_github_fork: "kubernetes" + crio_socket: "/var/run/crio/crio.sock" + - name: run k8s node-e2e tests + include: node-e2e.yml + - hosts: all remote_user: root vars_files: diff --git a/contrib/test/integration/node-e2e.yml b/contrib/test/integration/node-e2e.yml new file mode 100644 index 00000000..6ea8ac2c --- /dev/null +++ b/contrib/test/integration/node-e2e.yml @@ -0,0 +1,26 @@ +--- + +- name: enable and start CRI-O + systemd: + name: crio + state: started + enabled: yes + daemon_reload: yes + +- name: disable SELinux + command: setenforce 0 + +- name: Flush the iptables + command: iptables -F + +- name: run node-e2e tests + shell: | + # parametrize crio socket + # cgroup-driver??? + # TODO(runcom): remove conformance focus, we want everything for testgrid + make test-e2e-node PARALLELISM=1 RUNTIME=remote CONTAINER_RUNTIME_ENDPOINT=/var/run/crio.sock IMAGE_SERVICE_ENDPOINT=/var/run/crio/crio.sock TEST_ARGS='--prepull-images=true --kubelet-flags="--cgroup-driver=systemd"' FOCUS="\[Conformance\]" &> {{ artifacts }}/node-e2e.log + args: + chdir: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes" + async: 7200 + poll: 10 + ignore_errors: true