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

fix(build): metrics compilation after refactoring into classes #3265

Closed

Conversation

Molter73
Copy link
Contributor

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:
Once falcosecurity/libs#1920 is merged, compilation of falco will be broken due to the new_metric method changing the class it lives in. This PR makes falco compatible with this change.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer: The commit that changes the libs cmake files will be dropped and replaced with a commit that properly updates the libs commit and SHA once falcosecurity/libs#1920 is merged, please disregard these changes until that merge occurs.

Does this PR introduce a user-facing change?:

NONE

@Molter73
Copy link
Contributor Author

/hold

@Molter73
Copy link
Contributor Author

/cc @FedeDP @incertum

@poiana poiana requested review from FedeDP and incertum June 27, 2024 13:13
@Molter73 Molter73 changed the title Fix metrics compilation after refactoring into classes fix(build): metrics compilation after refactoring into classes Jun 27, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Jun 27, 2024

Thanks Mauro for taking care of this!

@Molter73
Copy link
Contributor Author

I'm a bit confused as to why those driver tests are failing, these PRs don't do any changes to driver code or its corresponding userspace components. Any ideas?

@FedeDP
Copy link
Contributor

FedeDP commented Jun 27, 2024

It happens sometimes; probably mismatch between kernel headers package and runner kernel (or bugged headers package); rnothing to worry about for you! Restarted :)

@Molter73
Copy link
Contributor Author

Kmod failed again, but I need to fix the cmake files after I merge the libs PR anyways. @FedeDP, what do you think? Am I OK to unhold the libs PR?

@FedeDP
Copy link
Contributor

FedeDP commented Jun 27, 2024

Yes no problem, the issue is not dependent on your changes!

@Molter73
Copy link
Contributor Author

/unhold

@incertum
Copy link
Contributor

incertum commented Jun 27, 2024

@Molter73 we usually have the habit to bump both libs and driver during the dev phase. Few times we didn't do it and it caused compatibility issues. If you agree we can just continue bumping both together?

@FedeDP
Copy link
Contributor

FedeDP commented Jun 27, 2024

/milestone 0.39.0

@poiana poiana added this to the 0.39.0 milestone Jun 27, 2024
@Molter73
Copy link
Contributor Author

Sorry it took a bit, I've bumped the driver version so it matches libs.

@Molter73
Copy link
Contributor Author

I'm guessing the error I'm getting is related to this commit: falcosecurity/libs@fac0ae4

How do we want to handle it?

@FedeDP
Copy link
Contributor

FedeDP commented Jun 28, 2024

Yep! I already tagged Gerald in that PR to ask him to double check ;)
Not a big deal, we can wait and then bump libs and driver here once the fix PR is merged.

@Molter73
Copy link
Contributor Author

Molter73 commented Jul 1, 2024

One of these days I'll get this PR to pass CI...

@incertum
Copy link
Contributor

incertum commented Jul 3, 2024

/hold for possible patches #3271 (comment). Do not merge prior to having made a decision.

Signed-off-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
@poiana
Copy link
Contributor

poiana commented Aug 5, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Molter73
Once this PR has been reviewed and has the lgtm label, please assign mstemm for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

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

@Molter73
Copy link
Contributor Author

Molter73 commented Aug 5, 2024

I'm guessing the 3 issues are due to some change that bled in with the latest libs bump, I was having some issues linking unit tests locally, I'll look into them when I get a minute.

@poiana poiana added size/M and removed size/S labels Aug 6, 2024
@Molter73
Copy link
Contributor Author

Molter73 commented Aug 6, 2024

@jasondellaluce looks like the unit test errors I got are due to some warning messages being changed in falcosecurity/libs#1831, could you double check I got those right in the last commit?

@Molter73
Copy link
Contributor Author

Molter73 commented Aug 6, 2024

Now it looks like ASAN is not very happy, tried to run the tests locally with a debug build and the errors seem related to falcosecurity/libs#1992, would appreciate some confirmation.

@LucaGuerra
Copy link
Contributor

LucaGuerra commented Aug 6, 2024

@Molter73 AFAIK the ASan failures are fixed by falcosecurity/libs#1992 , I'm writing some tests for those and will merge the PR soon. I'm not sure why the asan crashes started appearing now.

@Molter73
Copy link
Contributor Author

Molter73 commented Aug 6, 2024

No worries, I'll update this PR after you merge!

Signed-off-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
Signed-off-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
@Molter73
Copy link
Contributor Author

Molter73 commented Aug 7, 2024

I'm gonna need some help understanding the last errors I'm getting, seems something has been broken with the legacy rules?

@FedeDP
Copy link
Contributor

FedeDP commented Aug 21, 2024

This is the same error we are gettng on #3283 . Needs further investigation...
Also this and #3283 are basically the same, i'd close one of them (well this is older and we should keep this but the other is on an upstream branch that is much easier to work with to fix the test issues; let me know if you wish to keep this one, i'll close the other!)

@Molter73
Copy link
Contributor Author

Closing in favor of #3283, let me know if any help is needed on that PR!

@Molter73 Molter73 closed this Aug 21, 2024
@Molter73 Molter73 deleted the fix-metrics-compilation branch August 21, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants