Skip to content

Commit

Permalink
ci: ignore kprobe_multi test failures on arm64
Browse files Browse the repository at this point in the history
Seems like the new CI arm64 kernels doesn't have the necessary config
to support kprobe_multi. Ignore the error until we figure out what
to do.

Updates cilium#1460

Signed-off-by: Lorenz Bauer <[email protected]>
  • Loading branch information
lmb committed May 10, 2024
1 parent 65a17a9 commit 782d323
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ jobs:
runs-on: actuated-arm64-2cpu-8gb
needs: build-and-lint
timeout-minutes: 15
env:
EBPF_TEST_IGNORE_KERNEL_VERSION: 'TestKprobeMulti,TestKprobeMultiErrors,TestKprobeMultiCookie,TestKprobeMultiProgramCall,TestHaveBPFLinkKprobeMulti'
steps:
- uses: actions/checkout@v4

Expand All @@ -153,7 +155,7 @@ jobs:
- run: go install gotest.tools/[email protected]

- name: Test
run: gotestsum --ignore-non-json-output-lines --junitfile junit.xml -- -exec sudo -short -count 1 -json ./...
run: gotestsum --ignore-non-json-output-lines --junitfile junit.xml -- -exec 'sudo -E' -short -count 1 -json ./...

- name: Benchmark
run: go test -exec sudo -short -run '^$' -bench . -benchtime=1x ./...
Expand Down
13 changes: 7 additions & 6 deletions internal/testutils/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ func checkFeatureTestError(t *testing.T, err error) {

var ufe *internal.UnsupportedFeatureError
if errors.As(err, &ufe) {
if ignoreKernelVersionCheck(t.Name()) {
t.Skipf("Ignoring error due to %s: %s", ignoreKernelVersionEnvVar, ufe.Error())
} else {
checkKernelVersion(t, ufe)
}
checkKernelVersion(t, ufe)
} else {
t.Error("Feature test failed:", err)
}
Expand Down Expand Up @@ -66,8 +62,13 @@ func checkKernelVersion(tb testing.TB, ufe *internal.UnsupportedFeatureError) {
return
}

tb.Helper()

if ignoreKernelVersionCheck(tb.Name()) {
tb.Skipf("Ignoring error due to %s: %s", ignoreKernelVersionEnvVar, ufe.Error())
}

if !isKernelLessThan(tb, ufe.MinimumVersion) {
tb.Helper()
tb.Fatalf("Feature '%s' isn't supported even though kernel is newer than %s",
ufe.Name, ufe.MinimumVersion)
}
Expand Down

0 comments on commit 782d323

Please sign in to comment.