From 715693c88fed51190dfed7ac5b775661f25e836d Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 12 Dec 2023 20:12:23 +0900 Subject: [PATCH] CI: add actuated-arm64-4cpu-12gb See . Thanks to Alex Ellis, Ampere Computing, and Equinix. Host information: * CPU: aarch64 (ARMv8), 4 cores * RAM: 10 GiB, no swap * Kernel: 5.10.201 * Lacks CONFIG_CHECKPOINT_RESTORE, CONFIG_BLK_CGROUP_IOCOST, etc. * Cgroup: v2 * OS: Ubuntu 22.04 * Lacks newuidmap, newgidmap, etc. (still apt-gettable) Signed-off-by: Akihiro Suda --- .github/workflows/test.yml | 38 +++++++++++++++++++++++++++++++++++--- README.md | 1 + 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75cdd15973d..2f829b47ff4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,8 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, ubuntu-22.04] + # actuated-arm64-4cpu-12gb is missing CONFIG_CHECKPOINT_RESTORE + os: [ubuntu-20.04, ubuntu-22.04, actuated-arm64-4cpu-12gb] go-version: [1.20.x, 1.21.x] rootless: ["rootless", ""] race: ["-race", ""] @@ -40,6 +41,15 @@ jobs: criu: criu-dev - dmz: runc_nodmz os: ubuntu-20.04 + - go-version: 1.20.x + os: actuated-arm64-4cpu-12gb + - race: "-race" + os: actuated-arm64-4cpu-12gb + - criu: criu-dev + os: actuated-arm64-4cpu-12gb + - dmz: runc_nodmz + os: actuated-arm64-4cpu-12gb + runs-on: ${{ matrix.os }} steps: @@ -47,12 +57,34 @@ jobs: - name: checkout uses: actions/checkout@v4 + - name: Show host info + run: | + set -x + # Sync `set -x` outputs with command ouputs + exec 2>&1 + # Version + uname -a + cat /etc/os-release + # Hardware + cat /proc/cpuinfo + free -mt + # cgroup + ls -F /sys/fs/cgroup + cat /proc/self/cgroup + if [ -e /sys/fs/cgroup/cgroup.controllers ]; then + cat /sys/fs/cgroup/cgroup.controllers + cat /sys/fs/cgroup/cgroup.subtree_control + ls -F /sys/fs/cgroup$(grep -oP '0::\K.*' /proc/self/cgroup) + fi + # kernel config + script/check-config.sh + - name: install deps if: matrix.criu == '' env: PREFIX: https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu run: | - packages="libseccomp-dev sshfs" + packages="libseccomp-dev sshfs uidmap" if script/check-config.sh | grep -q "CONFIG_CHECKPOINT_RESTORE:\s*enabled"; then # criu repo REPO=${PREFIX}_$(echo ${{ matrix.os }} | sed 's/.*-//') @@ -69,7 +101,7 @@ jobs: if: matrix.criu != '' run: | sudo apt -q update - sudo apt -q install -y libseccomp-dev sshfs \ + sudo apt -q install -y libseccomp-dev sshfs uidmap \ libcap-dev libnet1-dev libnl-3-dev \ libprotobuf-c-dev libprotobuf-dev protobuf-c-compiler protobuf-compiler git clone https://github.com/checkpoint-restore/criu.git ~/criu diff --git a/README.md b/README.md index 7e40776bbb7..fbe576d91ed 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![gha/validate](https://github.com/opencontainers/runc/workflows/validate/badge.svg)](https://github.com/opencontainers/runc/actions?query=workflow%3Avalidate) [![gha/ci](https://github.com/opencontainers/runc/workflows/ci/badge.svg)](https://github.com/opencontainers/runc/actions?query=workflow%3Aci) [![CirrusCI](https://api.cirrus-ci.com/github/opencontainers/runc.svg)](https://cirrus-ci.com/github/opencontainers/runc) +Arm CI sponsored by Actuated ## Introduction