-
Notifications
You must be signed in to change notification settings - Fork 175
new(ci): run e2e tests with podman socket too. #2386
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
Conversation
@@ -295,9 +294,6 @@ jobs: | |||
libprotobuf-dev \ | |||
protobuf-compiler \ | |||
"linux-headers-$(uname -r)" | |||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 90 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ported CI to use standard clang and llvm present in the ubuntu-24.04 runner image.
.github/workflows/ci.yml
Outdated
@@ -268,15 +268,14 @@ jobs: | |||
cmake_opts: -DUSE_BUNDLED_DEPS=True | |||
- name: asan | |||
cmake_opts: -DUSE_BUNDLED_DEPS=True -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address | |||
runs-on: ubuntu-22.04 | |||
runs-on: ubuntu-24.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need newer version of podman.
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2386 +/- ##
==========================================
+ Coverage 77.15% 77.18% +0.02%
==========================================
Files 231 231
Lines 30347 30357 +10
Branches 4656 4658 +2
==========================================
+ Hits 23415 23430 +15
+ Misses 6932 6927 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1267651
to
1dc4c50
Compare
04541d7
to
97cc497
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also took my time and added a new reusable_workflow for e2e tests; it is useful because we will use it in container's plugin CI: https://github.com/falcosecurity/plugins/blob/main/.github/workflows/container-ci.yaml#L154
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
0adb26f
to
a23c370
Compare
run: | | ||
sudo rm -rf /tmp/report | ||
# Force podman to run with runc by removing crun | ||
sudo apt remove -y crun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We enforce running podman with runc so that test_exec_in_container
test is still valid since it expects a runc related event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make some changes to the tests to try and figure out if they are running with podman or docker, but meh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! Just left a few comments.
run: | | ||
sudo rm -rf /tmp/report | ||
# Force podman to run with runc by removing crun | ||
sudo apt remove -y crun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could make some changes to the tests to try and figure out if they are running with podman or docker, but meh.
f1652c5
to
7369db0
Compare
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
4d02de4
to
86207cc
Compare
/milestone 0.21.0 |
They allow to disable test for podman or docker. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
4e302e4
to
535e679
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, Molter73 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area CI
/area tests
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This PR enables e2e tests (the python ones) to run through podman socket too.
This allows us to test container plugin with both docker and podman.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Keeping it wip since i am testing the CI by triggering it over and over :D
Does this PR introduce a user-facing change?: