From 17d585955d84534bb2434df01264935e12e0b209 Mon Sep 17 00:00:00 2001 From: Manu Bretelle Date: Fri, 20 Oct 2023 22:31:00 -0700 Subject: [PATCH] [vmtest] using danobi/vmtest --- .github/scripts/matrix.py | 12 ++++++++++-- .github/workflows/test.yml | 12 +----------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/scripts/matrix.py b/.github/scripts/matrix.py index 4e8ef4c7..8847802d 100644 --- a/.github/scripts/matrix.py +++ b/.github/scripts/matrix.py @@ -55,7 +55,7 @@ def get_tests(config): return [test for test in tests if not test.endswith("parallel")] -matrix = [ +""" { "kernel": "LATEST", "runs_on": [], @@ -63,6 +63,8 @@ def get_tests(config): "toolchain": "gcc", "llvm-version": "16", }, +""" +matrix = [ { "kernel": "LATEST", "runs_on": [], @@ -70,6 +72,8 @@ def get_tests(config): "toolchain": "llvm", "llvm-version": "16", }, +] +""" { "kernel": "LATEST", "runs_on": [], @@ -93,6 +97,7 @@ def get_tests(config): "parallel_tests": False, }, ] +""" self_hosted_repos = [ "kernel-patches/bpf", "kernel-patches/vmtest", @@ -132,10 +137,13 @@ def get_tests(config): } set_output("test_matrix", dumps(test_matrix)) -veristat_runs_on = next( +veristat_runs_on = [] +""" +next( x["runs_on"] for x in matrix if x["arch"] == os.environ["veristat_arch"] and x["toolchain"] == os.environ["veristat_toolchain"] ) +""" set_output("veristat_runs_on", veristat_runs_on) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf4af269..7562fdd8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -150,18 +150,8 @@ jobs: - name: Untar artifacts # zstd is installed by default in the runner images. run: zstd -d -T0 vmlinux-${{ matrix.arch }}-${{ matrix.toolchain_full }}.tar.zst --stdout | tar -xf - - - name: Prepare rootfs - uses: libbpf/ci/prepare-rootfs@main - with: - project-name: 'libbpf' - arch: ${{ matrix.arch }} - kernel: ${{ matrix.kernel }} - kernel-root: '.' - kbuild-output: ${{ env.KBUILD_OUTPUT }} - image-output: '/tmp/root.img' - test: ${{ matrix.test }} - name: Run selftests - uses: libbpf/ci/run-qemu@main + uses: chantra/libbpf-ci/run-qemu@vmtest continue-on-error: ${{ matrix.continue_on_error }} timeout-minutes: ${{ matrix.timeout_minutes }} with: