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

bpf,make: add ability to run bpf unit tests in the Cilium builder #25173

Merged

Conversation

ldelossa
Copy link
Contributor

@ldelossa ldelossa commented Apr 27, 2023

This commit adds a top level Makefile target for running eBPF unit tests within the Cilium builder container.

The Cilium builder container ensures all the dependencies necessary to build and run the tests are present.

After this commit, running make run_bpf_tests from the root of the repo will run the tests in a container, while running the same target in the ./test directory will run the tests locally, outside of the container

Add top level `make run_bpf_tests` target to run eBPF unit tests in the Cilium builder container

@ldelossa ldelossa requested review from a team as code owners April 27, 2023 19:51
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 27, 2023
@ldelossa ldelossa added the release-note/misc This PR makes changes that have no direct user impact. label Apr 27, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 27, 2023
@ldelossa ldelossa force-pushed the ldelossa/containerize-ebpf-unit-tests branch from e51594b to 7f6c79c Compare April 27, 2023 19:57
@ldelossa
Copy link
Contributor Author

Don't think we need to run full suite for this, smoke tests cover running the effected eBPF unit tests, and this passes.

Just need reviews.

@ldelossa ldelossa force-pushed the ldelossa/containerize-ebpf-unit-tests branch from 7f6c79c to 4fdad2b Compare April 28, 2023 01:17
This commit adds a top level Makefile target for running eBPF unit tests
within the Cilium builder container.

The Cilium builder container ensures all the dependencies necessary to
build and run the tests are present.

After this commit, running `make run_bpf_tests` from the root of the
repo will run the tests in a container, while running the same target in
the `./test` directory will run the tests locally, outside of the
container

Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
@ldelossa ldelossa force-pushed the ldelossa/containerize-ebpf-unit-tests branch from 4fdad2b to 0b42443 Compare April 28, 2023 01:20
Copy link
Member

@dylandreimerink dylandreimerink left a comment

Choose a reason for hiding this comment

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

LGTM!

@ldelossa ldelossa added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 2, 2023
@ldelossa
Copy link
Contributor Author

ldelossa commented May 2, 2023

Unrelated Travis CI issue, marking ready to merge with two approvals.

@joestringer
Copy link
Member

Can we do something about the Travis issue? Ignoring it won't make it go away.

@joestringer joestringer merged commit 4330751 into cilium:main May 2, 2023
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants