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

[lfx-mentorship-2025-Mar-May] Kmesh eBPF unit test #1209

Open
LiZhenCheng9527 opened this issue Jan 26, 2025 · 3 comments
Open

[lfx-mentorship-2025-Mar-May] Kmesh eBPF unit test #1209

LiZhenCheng9527 opened this issue Jan 26, 2025 · 3 comments
Labels
kind/enhancement New feature or request

Comments

@LiZhenCheng9527
Copy link
Collaborator

  • Description: As the community features continue to expand, the number of eBPF programs in the data plane has increased. Due to the inherent limitations of eBPF (third-state encoding, neither user space nor kernel space, running in a kernel virtual machine with a dedicated instruction set), Kmesh implements complex governance logic through features like tail call and map-in-map, which poses challenges for data plane quality protection.
    eBPF, a recently introduced programmable technology in the kernel, currently has an immature ecosystem. The industry is actively exploring eBPF testing capabilities (e.g., Unit Testing eBPF). This project aims to develop an eBPF UT testing framework in conjunction with the Kmesh project to ensure the quality of the Kmesh data plane.
  • Expected Outcome:
    • Export Kmesh eBPF programs to support UT test case.
    • Export design documentation for eBPF UT tests
  • Recommended Skills: C, eBPF, (go)
  • Mentor(s): @bitcoffeeiux ([email protected])
  • Useful Link:
@Dhiren-Mhatre
Copy link

Hello @LiZhenCheng9527 and @bitcoffeeiux,
I am very interested in contributing to the "[lfx-mentorship-2025-Mar-May] Kmesh eBPF Unit Test" project. With a strong background in Golang, I have previously contributed to open-source projects such as Prometheus and the Palisadoes Foundation, where I gained valuable experience in building scalable and efficient systems.
The project's focus on developing an eBPF unit testing framework for Kmesh aligns perfectly with my interests in low-level programming and kernel technologies. I am eager to apply my skills in C and Golang while learning more about eBPF's capabilities and challenges.
I look forward to the opportunity to collaborate with the team and contribute to ensuring the quality of Kmesh's data plane.

@btwshivam
Copy link

Hello @bitcoffeeiux I’m Shivam, i have experience in eBPF testing and kernel-level development. I recently worked on unit testing for Inspektor Gadget, focusing on running eBPF gadget tests across different kernel versions.

I’m very interested in contributing to the Kmesh eBPF Unit Test Project and helping build a robust testing framework. I’ve gone through the documentation and would love to discuss the current testing challenges and possible approaches.

@btwshivam
Copy link

Hey, @LiZhenCheng9527 I’d like to pick a small task, such as writing a basic eBPF unit test. Could you suggest a good starting point or any existing gaps in the test suite that I can work on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants