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

cleanup(tests): move filter compilation functions to sinsp_with_test_input #1911

Merged

Conversation

LucaGuerra
Copy link
Contributor

@LucaGuerra LucaGuerra commented Jun 14, 2024

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind cleanup

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area tests

Does this PR require a change in the driver versions?

No

What this PR does / why we need it:

Recently I added eval_filter() to add an urgent regression test. This one is not urgent but since we had two three different ways of evaluating a filter in tests I wanted to consolidate it in one single way.

The sinsp_with_test_input way is preferred IMO because it uses a real inspector and some filterchecks require an inspector to be present and initialized in order to work.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@LucaGuerra
Copy link
Contributor Author

/milestone 0.18.0

@poiana poiana added this to the 0.18.0 milestone Jun 14, 2024
@LucaGuerra LucaGuerra changed the title cleanup(tests): move filter compilation functions to sinsp_with_test_input wip: cleanup(tests): move filter compilation functions to sinsp_with_test_input Jun 14, 2024
@LucaGuerra LucaGuerra force-pushed the cleanup/test-cleanup-compilation branch from ed73c09 to a4791fb Compare June 14, 2024 10:28
@poiana poiana added size/XL and removed size/L labels Jun 14, 2024
@LucaGuerra LucaGuerra changed the title wip: cleanup(tests): move filter compilation functions to sinsp_with_test_input cleanup(tests): move filter compilation functions to sinsp_with_test_input Jun 14, 2024
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Jun 17, 2024

LGTM label has been added.

Git tree hash: ed6cd07bbf9b94c1c9a2b55c6e8f4d56297291ee

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Jun 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra

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:
  • OWNERS [Andreagit97,FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 435a391 into falcosecurity:master Jun 17, 2024
40 checks passed
@LucaGuerra LucaGuerra deleted the cleanup/test-cleanup-compilation branch June 26, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants