Skip to content

Commit

Permalink
CI: add actuated-arm64-4cpu-12gb
Browse files Browse the repository at this point in the history
See <https://actuated.dev/blog/arm-ci-cncf-ampere>.
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 <[email protected]>
  • Loading branch information
AkihiroSuda committed Dec 15, 2023
1 parent 58d6226 commit c844665
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
42 changes: 39 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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", ""]
Expand All @@ -40,19 +41,54 @@ 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:

- 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: start sshd (used for testing rootless with systemd)
run: |
sudo systemctl start ssh.socket
- 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/.*-//')
Expand All @@ -69,7 +105,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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
<a href="https://actuated.dev"><img alt="Arm CI sponsored by Actuated" src="https://docs.actuated.dev/images/actuated-badge.png" width="120px"></img></a>

## Introduction

Expand Down

0 comments on commit c844665

Please sign in to comment.