aya icon indicating copy to clipboard operation
aya copied to clipboard

Test that all the supported program types can be loaded and attached as part of CI

Open alessandrod opened this issue 4 years ago • 1 comments

As part of CI, we should test that we can load and attach all the supported programs. This requires doing two things:

  • we need to create small test programs for all the supported types (using aya-bpf and building with bpf-linker)
  • we need to create a github action workflow that somehow - probably using qemu or maybe even multipass - loads our own kernel where we can use the bpf syscall (which is otherwise not available in github runners)

alessandrod avatar Jun 21 '21 09:06 alessandrod

I've been using vagrant for this on a macOS host (only host that supports nested virtualization). Works quite well, though build times are a bit slow.

For reference:

  • https://github.com/willfindlay/bpfcontain-rs/blob/master/.github/workflows/ci.yml
  • https://github.com/willfindlay/bpfcontain-rs/blob/master/Vagrantfile

willfindlay avatar Jun 28 '21 01:06 willfindlay