Skip to content

GCC BPF: factor out into a separate job#171

Merged
theihor merged 1 commit intolibbpf:mainfrom
theihor:gcc-bpf-separate
Feb 5, 2025
Merged

GCC BPF: factor out into a separate job#171
theihor merged 1 commit intolibbpf:mainfrom
theihor:gcc-bpf-separate

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Feb 5, 2025

In order to test selftests/bpf build with GCC BPF, the latest snapshot of GCC BPF compiler has to built from source.

We don't want this to be a dependency for all the test runners, so
introduce a separate gcc-bpf workflow that executes the following:

  • checkout Linux source tree and patch it (as in kernel-build)
  • download relevant artifacts with the KBUILD_OUTPUT objects (as in
    kernel-test)
  • build/download GCC BPF compiler
  • build selftests/bpf/test_progs-bpf_gcc runner, hence the test BPF
    objects built with GCC

The test_progs-bpf_gcc runner is not executed on BPF CI yet [1], so successful selftests build is a successful job run.

[1] https://lore.kernel.org/bpf/[email protected]/

In order to test selftests/bpf build with GCC BPF, the latest snapshot
of GCC BPF compiler has to built from source.

We don't want this to be a dependency for all the test runners, so
introduce a separate gcc-bpf workflow that executes the following:
  * checkout Linux source tree and patch it (as in kernel-build)
  * download relevant artifacts with the KBUILD_OUTPUT objects (as in
    kernel-test)
  * build/download GCC BPF compiler
  * build selftests/bpf/test_progs-bpf_gcc runner, hence the test BPF
    objects built with GCC

The test_progs-bpf_gcc runner is not executed on BPF CI yet [1], so
successful selftests build is a successful job run.

[1] https://lore.kernel.org/bpf/[email protected]/
@theihor
Copy link
Contributor Author

theihor commented Feb 5, 2025

kernel-patches/vmtest pipeline has passed: https://github.com/kernel-patches/vmtest/actions/runs/13163688712/job/36739008180

@theihor theihor merged commit 4632435 into libbpf:main Feb 5, 2025
16 checks passed
theihor added a commit to kernel-patches/vmtest that referenced this pull request Feb 5, 2025
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