From 6ecb2e9b3f5492b1f8241982378cdf6a739af4af Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Thu, 4 Jul 2024 12:09:06 +0000 Subject: [PATCH] ci: run aarch64 tests native via actuated Signed-off-by: Adrian Reber --- .github/workflows/actuated-aarch64-test.yaml | 65 ++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/actuated-aarch64-test.yaml diff --git a/.github/workflows/actuated-aarch64-test.yaml b/.github/workflows/actuated-aarch64-test.yaml new file mode 100644 index 0000000000..57dc6f15f6 --- /dev/null +++ b/.github/workflows/actuated-aarch64-test.yaml @@ -0,0 +1,65 @@ +name: Actuated aarch64 test + +on: [push, pull_request] + +# Cancel any preceding run on the pull request. +concurrency: + group: stream-test-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/criu-dev' }} + +jobs: + build: + runs-on: actuated-arm64-6cpu-8gb + strategy: + matrix: + target: [GCC=1, CLANG=1] + + steps: + # https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md + # vmmeter start + - name: Prepare arkade + uses: alexellis/arkade-get@master + with: + crane: latest + print-summary: false + + - name: Install vmmeter + run: | + crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin + + - name: Run vmmeter + uses: self-actuated/vmmeter-action@master + # vmmeter end + + - uses: actions/checkout@v4 + - name: Run Tests ${{ matrix.target }} + # Following tests are failing on the actuated VMs: + # ################### 4 TEST(S) FAILED (TOTAL 463/SKIPPED 54) #################### + # * zdtm/static/change_mnt_context(ns) + # * zdtm/static/macvlan(ns) + # * zdtm/static/netns_lock_iptables(h) + # * zdtm/static/sched_policy00(ns) + ###################################### FAIL ##################################### + # + # ./change_mnt_context --pidfile=change_mnt_context.pid --outfile=change_mnt_context.out + # 45: ERR: change_mnt_context.c:23: mount (errno = 22 (Invalid argument)) + # + # Test output: ================================ + # Device "zdtmmvlan0" does not exist. + # # the macvlan module is not available on the actuated VMs + # + # Traceback (most recent call last): + # File "/home/runner/actions-runner/_work/criu/criu/test/zdtm/static/netns_lock_iptables.hook", line 107, in + # cln.connect(("localhost", PORT)) + # socket.gaierror: [Errno -3] Temporary failure in name resolution + # + # 5: ERR: sched_policy00.c:55: Can't set policy (errno = 1 (Operation not permitted)) + # 4: ERR: test.c:320: Test exited unexpectedly with code 255 + # + run: > + echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts; + cat /etc/hosts; ping -c 3 localhost; + sudo -E make -C scripts/ci local ${{ matrix.target }} RUN_TESTS=1 + ZDTM_OPTS="-x zdtm/static/change_mnt_context + -x zdtm/static/macvlan + -x zdtm/static/sched_policy00"