ソースを参照

ci: Enable conformance tests related to 32-bit jumps

Now that rbpf supports 32-bit jump instructions, we can enable the
related conformance tests in the CI. We can also update the container
image to its latest version, in order to pull the fixes from
https://github.com/Alan-Jowett/bpf_conformance/pull/53. All tests should
pass, we already have identical tests in rbpf's suite.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Quentin Monnet 2 年 前
コミット
1eb0046b3c
1 ファイル変更4 行追加4 行削除
  1. 4 4
      .github/workflows/test.yaml

+ 4 - 4
.github/workflows/test.yaml

@@ -12,10 +12,10 @@ jobs:
     runs-on: ubuntu-latest
     env:
       # Exclude features not supported by rbpf yet.
-      # 32-bit jump - https://github.com/qmonnet/rbpf/issues/47
       # atomic operations - https://github.com/qmonnet/rbpf/issues/47
       # mem-len - Tests assume r2 contains the length of the memory.
-      KNOWN_FAILURES: "(j.*32|lock|mem-len)"
+      KNOWN_FAILURES: "(lock|mem-len)"
+      CONFORMANCE_IMAGE: "ghcr.io/alan-jowett/bpf_conformance@sha256:547765717557e0f222de71fbf26f4bd9621c0149911aa03296024b469dd4598b"
     strategy:
       matrix:
         include:
@@ -53,7 +53,7 @@ jobs:
       - name: Run BPF conformance tests - Interpreter
         run: |
           docker run -v ${{github.workspace}}:/rbpf --rm \
-          ghcr.io/alan-jowett/bpf_conformance@sha256:b88246eee0474f0a114fedadd7b9d8c79940647f44b0e499dfd10e70d1300a6f \
+          "${{ env.CONFORMANCE_IMAGE }}" \
           bin/bpf_conformance_runner --test_file_directory tests \
           --plugin_path /rbpf/target/release/examples/rbpf_plugin \
           --exclude_regex "${{ env.KNOWN_FAILURES }}"
@@ -62,7 +62,7 @@ jobs:
       - name: Run BPF conformance tests - JIT
         run: |
           docker run -v ${{github.workspace}}:/rbpf --rm \
-          ghcr.io/alan-jowett/bpf_conformance@sha256:b88246eee0474f0a114fedadd7b9d8c79940647f44b0e499dfd10e70d1300a6f \
+          "${{ env.CONFORMANCE_IMAGE }}" \
           bin/bpf_conformance_runner --test_file_directory tests \
           --plugin_path /rbpf/target/release/examples/rbpf_plugin \
           --exclude_regex "${{ env.KNOWN_FAILURES }}"  \