Skip to content

Optimize bpf selftest to increase CI success rate

Jiayuan Chen bpf linux-kselftest lkml netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/bpf: Allow auto port binding for cgroup connecttools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c tools/testing/selftests/bpf/progs/connect4_dropper.c+12 -50 repliesApplied
2/3selftests/bpf: Allow auto port binding for bpf nftools/testing/selftests/bpf/prog_tests/bpf_nf.c+6 -30 repliesApplied
3/3selftests/bpf: Fixes for test_maps testtools/testing/selftests/bpf/test_maps.c+5 -41 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next v1 0/3] Optimize bpf selftest to increase CI success rate

1. Optimized some static bound port selftests to avoid port occupation when running test_progs -j.
2. Optimized the retry logic for test_maps.

Some Failed CI:
https://github.com/kernel-patches/bpf/actions/runs/13275542359/job/37064974076
https://github.com/kernel-patches/bpf/actions/runs/13549227497/job/37868926343
https://github.com/kernel-patches/bpf/actions/runs/13548089029/job/37865812030
https://github.com/kernel-patches/bpf/actions/runs/13553536268/job/37883329296
(Perhaps it's due to the large number of pull requests requiring CI runs?)

Jiayuan Chen (3):
selftests/bpf: Allow auto port binding for cgroup connect selftests/bpf: Allow auto port binding for bpf nf selftests/bpf: Fixes for test_maps test

 tools/testing/selftests/bpf/prog_tests/bpf_nf.c     |  9 ++++++---
 .../testing/selftests/bpf/prog_tests/cgroup_v1v2.c  | 13 +++++++++----
 .../testing/selftests/bpf/progs/connect4_dropper.c  |  4 +++-
 tools/testing/selftests/bpf/test_maps.c             |  9 +++++----
 4 files changed, 23 insertions(+), 12 deletions(-)
Signature · 1 line
2.47.1