Merge pull request #5406 from dims/separate-jobs-for-build-and-test-for-openlab
New Openlab based job to run ARM64 tests
This commit is contained in:
commit
9cf44ee13b
20
.zuul.yaml
20
.zuul.yaml
@ -4,6 +4,8 @@
|
||||
check:
|
||||
jobs:
|
||||
- containerd-build-arm64
|
||||
- containerd-test-arm64
|
||||
- containerd-integration-test-arm64
|
||||
|
||||
- job:
|
||||
name: containerd-build-arm64
|
||||
@ -13,3 +15,21 @@
|
||||
run: .zuul/playbooks/containerd-build/run.yaml
|
||||
nodeset: ubuntu-xenial-arm64-openlab
|
||||
voting: false
|
||||
|
||||
- job:
|
||||
name: containerd-test-arm64
|
||||
parent: init-test
|
||||
description: |
|
||||
Containerd unit tests in openlab cluster.
|
||||
run: .zuul/playbooks/containerd-build/unit-test.yaml
|
||||
nodeset: ubuntu-xenial-arm64-openlab
|
||||
voting: false
|
||||
|
||||
- job:
|
||||
name: containerd-integration-test-arm64
|
||||
parent: init-test
|
||||
description: |
|
||||
Containerd unit tests in openlab cluster.
|
||||
run: .zuul/playbooks/containerd-build/integration-test.yaml
|
||||
nodeset: ubuntu-xenial-arm64-openlab
|
||||
voting: false
|
||||
|
96
.zuul/playbooks/containerd-build/integration-test.yaml
Normal file
96
.zuul/playbooks/containerd-build/integration-test.yaml
Normal file
@ -0,0 +1,96 @@
|
||||
- hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- role: config-golang
|
||||
go_version: '1.16.3'
|
||||
arch: arm64
|
||||
tasks:
|
||||
- name: Install pre-requisites
|
||||
shell:
|
||||
cmd: |
|
||||
set -xe
|
||||
set -o pipefail
|
||||
apt-get update
|
||||
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
|
||||
|
||||
go version
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Install containerd and cri dependencies
|
||||
shell:
|
||||
cmd: |
|
||||
set -xe
|
||||
make install-deps
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Install criu
|
||||
shell:
|
||||
cmd: |
|
||||
set -xe
|
||||
apt-get install -y \
|
||||
libprotobuf-dev \
|
||||
libprotobuf-c-dev \
|
||||
protobuf-c-compiler \
|
||||
protobuf-compiler \
|
||||
python-protobuf \
|
||||
libnl-3-dev \
|
||||
libnet-dev \
|
||||
libcap-dev \
|
||||
python-future
|
||||
wget https://github.com/checkpoint-restore/criu/archive/v3.13.tar.gz -O criu.tar.gz
|
||||
tar -zxf criu.tar.gz
|
||||
cd criu-3.13
|
||||
make install-criu
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Install containerd
|
||||
shell:
|
||||
cmd: |
|
||||
set -xe
|
||||
make binaries
|
||||
make install | tee $LOGS_PATH/make_install.log
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Tests
|
||||
shell:
|
||||
cmd: |
|
||||
make test | tee $LOGS_PATH/make_test.log
|
||||
make root-test | tee $LOGS_PATH/make_root-test.log
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Integration 1
|
||||
shell:
|
||||
cmd: |
|
||||
make integration EXTRA_TESTFLAGS=-no-criu TESTFLAGS_RACE=-race | tee $LOGS_PATH/make_integration-test.log
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: Integration 2
|
||||
shell:
|
||||
cmd: |
|
||||
TESTFLAGS_PARALLEL=1 make integration EXTRA_TESTFLAGS=-no-criu | tee $LOGS_PATH/make_integration-test.log
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: CRI Integration Test
|
||||
shell:
|
||||
cmd: |
|
||||
CONTAINERD_RUNTIME="io.containerd.runc.v2" make cri-integration | tee $LOGS_PATH/make_cri-integration-test.log
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
||||
- name: CRI Integration Test
|
||||
shell:
|
||||
cmd: |
|
||||
if grep -q "FAIL:" $LOGS_PATH/*.log; then
|
||||
echo "FAILURE"
|
||||
exit 1
|
||||
fi
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
@ -15,7 +15,6 @@
|
||||
|
||||
go version
|
||||
make | tee $LOGS_PATH/make.txt
|
||||
make test | tee $LOGS_PATH/make_test.txt
|
||||
|
||||
cp -r ./bin $RESULTS_PATH
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
|
20
.zuul/playbooks/containerd-build/unit-test.yaml
Normal file
20
.zuul/playbooks/containerd-build/unit-test.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
- hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- role: config-golang
|
||||
go_version: '1.16.3'
|
||||
arch: arm64
|
||||
tasks:
|
||||
- name: Build and test containerd
|
||||
shell:
|
||||
cmd: |
|
||||
set -xe
|
||||
set -o pipefail
|
||||
apt-get update
|
||||
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
|
||||
|
||||
go version
|
||||
make build test | tee $LOGS_PATH/make_test.txt
|
||||
chdir: '{{ zuul.project.src_dir }}'
|
||||
executable: /bin/bash
|
||||
environment: '{{ global_env }}'
|
Loading…
Reference in New Issue
Block a user