Skip to content

[RFC] kernel-build.yaml: add an action to test bpftool build - #517

Closed
Tropicao wants to merge 1 commit into
kernel-patches:masterfrom
Tropicao:test_bpftool_build_in_ci
Closed

Tropicao wants to merge 1 commit into
kernel-patches:masterfrom
Tropicao:test_bpftool_build_in_ci

Conversation

@Tropicao

@Tropicao Tropicao commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The tools/testing/selftests/bpf directory in the kernel source tree contains the test_bpftool_build.sh script that ensures that the various supported ways of building bpftool work correctly. This test isn't currently part of the tests automatically executed in CI.

Add a dedicated step in kernel-build.yml to execute this script and validate that bpftool can be built correctly.

⚠️ Depends on libbpf/ci#236

An execution example can be found here: kernel-patches/bpf#13368

See RFC on mailing list: https://lore.kernel.org/bpf/DKT6QBHWC8YM.4D90SOC807CW@bootlin.com/

@Tropicao Tropicao changed the title kernel-build.yaml: add an action to test bpftool build [RFC] kernel-build.yaml: add an action to test bpftool build Aug 19, 2026
The tools/testing/selftests/bpf directory in the kernel source tree
contains the test_bpftool_build.sh script that ensures that the various
supported ways of building bpftool work correctly. This test isn't
currently part of the tests automatically executed in CI.

Add a dedicated job in test.yml to execute this script and validate that
bpftool can be built correctly. As the test has very little dependencies
(only a build test, no dependency on built artifact), the added workflow
remains simple and isolated from the other "build-and-tests" workflows:
- attached to highest parent workflow (test.yml)
- it only tests host build, so no need to run it as many time as the
  matrix script generates configurations
- supports download_sources flag, so can be run from kernel tree or
  vmtest tree

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
@Tropicao
Tropicao force-pushed the test_bpftool_build_in_ci branch from 4a2e2cc to b96e472 Compare September 10, 2026 07:50
@Tropicao Tropicao closed this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant