Skip to content

test(bpf): integration-test eBPF load and event flow (#148)#217

Open
Anushreer22 wants to merge 2 commits into
optiqor:mainfrom
Anushreer22:test/bpf-integration-ebpf-148
Open

test(bpf): integration-test eBPF load and event flow (#148)#217
Anushreer22 wants to merge 2 commits into
optiqor:mainfrom
Anushreer22:test/bpf-integration-ebpf-148

Conversation

@Anushreer22

Copy link
Copy Markdown
Contributor

Adds an integration test that loads the syscall and TCP BPF programs and verifies collectors receive events from synthetic activity.

Changes

  • internal/integration/ebpf_load_test.go — new integration test using testcontainers

How it works

  • Loads syscall latency and TCP monitor BPF programs (skips if BTF unavailable)
  • Generates syscall activity via an Alpine container running file operations
  • Makes a localhost TCP connection to trigger the TCP collector
  • Asserts that at least the syscall collector captured events
  • Gracefully skips if BPF programs cannot be loaded

Closes #148

@Anushreer22 Anushreer22 requested a review from btwshivam as a code owner June 11, 2026 12:13
@github-actions

Copy link
Copy Markdown

🚀 First PR — welcome aboard!

A few things to expect:

  1. CI: every PR runs build + race tests + lint + (eventually) the kernel matrix. If something fails, the log will tell you exactly which gate.
  2. DCO: every commit needs Signed-off-by:git commit -s adds it automatically.
  3. Conventional Commits: PR titles like feat(doctor): add new rule or fix(bpf): handle X. We squash-merge by default.
  4. Review: a maintainer will review within 72 hours. Suggestions are conversations, not orders — push back if something doesn't fit your context.

If you get stuck, reply here or jump to Discussions. We want this PR to land.

@github-actions github-actions Bot added testing Tests and test coverage area/bpf eBPF programs and loaders level:advanced 200+ lines or 6+ files (auto-applied) labels Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/bpf eBPF programs and loaders level:advanced 200+ lines or 6+ files (auto-applied) testing Tests and test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(bpf): integration-test eBPF load and event flow in a privileged container

1 participant