Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dummy --filter-track-{tc,xdp} tests #492

Merged
merged 2 commits into from
Jan 31, 2025
Merged

Add dummy --filter-track-{tc,xdp} tests #492

merged 2 commits into from
Jan 31, 2025

Conversation

brb
Copy link
Member

@brb brb commented Jan 23, 2025

Depends on #484

@brb brb added the testing label Jan 23, 2025
@brb brb force-pushed the pr/brb/ci-bpf-xdp branch 4 times, most recently from 2f049a8 to c013fd4 Compare January 27, 2025 11:36
@brb brb force-pushed the pr/brb/ci-bpf-xdp branch from c013fd4 to 01e00d6 Compare January 30, 2025 20:17
This is going to be used to test --filter-track-{xdp,tc}, and later on
--filter-track-bpf-helpers.

This commit adds the compiled BPF progs, to reduce the runtime
dependency burden for the GH workflows (no need to install Clang).

Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/ci-bpf-xdp branch 2 times, most recently from 621dd8a to 68bca0b Compare January 31, 2025 11:08
@brb brb marked this pull request as ready for review January 31, 2025 11:22
@brb brb requested a review from a team as a code owner January 31, 2025 11:22
@brb brb requested review from tklauser and removed request for a team January 31, 2025 11:22
So that we can check whether pwru can start when there are the progs
loaded. Later on, we will extend the prog to call BPF helpers and do
tail jumps.

Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/ci-bpf-xdp branch from 68bca0b to 3638c0b Compare January 31, 2025 12:53
@brb brb requested a review from tklauser January 31, 2025 13:01
- name: Build test-app
run: |
cd test-app
go build .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether we should run go generate here to generate bpf_x86_bpfel.* rather than adding these generated files to the repo. But then again I'm not sure what the standard practice is regarding these generated files for ebpf-go programs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was considering that, but then from the commit msg:

This commit adds the compiled BPF progs, to reduce the runtime dependency burden for the GH workflows (no need to install Clang)

I am expecting that prog to change very rarely, so the no need to install Clang for each PR outweighs the convenience.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have read the commit message 😬 all good then

@brb brb merged commit 7c481ae into main Jan 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants