aya
aya copied to clipboard
Test that all the supported program types can be loaded and attached as part of CI
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-bpfand 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)
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