go1.18.1 (released 2022-04-12) includes security fixes to the crypto/elliptic, crypto/x509, and encoding/pem packages, as well as bug fixes to the compiler, linker, runtime, the go command, vet, and the bytes, crypto/x509, and go/types packages. See the Go 1.18.1 milestone on the issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.18.1+label%3ACherryPickApproved Includes fixes for: - CVE-2022-24675 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24675) - CVE-2022-27536 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27536) - CVE-2022-28327 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28327) go1.17.9 (released 2022-04-12) includes security fixes to the crypto/elliptic and encoding/pem packages, as well as bug fixes to the linker and runtime. See the Go 1.17.9 milestone on the issue tracker for details: Includes fixes for: - CVE-2022-24675 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24675) - CVE-2022-28327 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28327) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
97 lines
2.8 KiB
YAML
97 lines
2.8 KiB
YAML
- hosts: all
|
|
become: yes
|
|
roles:
|
|
- role: config-golang
|
|
go_version: '1.18.1'
|
|
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 lsof gperf apparmor xfsprogs
|
|
|
|
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 }}'
|