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

chore: improve libcurl dependency reference #2145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

federico-sysdig
Copy link
Contributor

What type of PR is this?
/kind cleanup

Any specific area of the project related to this PR?
/area build

Does this PR require a change in the driver versions?
no

What this PR does / why we need it:
Library libcurl can be referenced in a more structured way by using CMake's find_package mechanism. This allows falcosecurity-lib to build also in other scenarios, e.g. with Vcpkg as a package manager.

Which issue(s) this PR fixes:
none

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@poiana
Copy link
Contributor

poiana commented Nov 4, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: federico-sysdig
Once this PR has been reviewed and has the lgtm label, please assign incertum 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

@poiana poiana requested review from hbrueckner and mstemm November 4, 2024 19:11
Copy link

github-actions bot commented Nov 5, 2024

Perf diff from master - unit tests

     3.61%     +0.60%  [.] gzfile_read
    10.70%     -0.58%  [.] sinsp_parser::reset
     1.38%     +0.47%  [.] sinsp::fetch_next_event
     1.91%     -0.38%  [.] scap_event_decode_params
    11.80%     -0.30%  [.] sinsp::next
     1.08%     -0.21%  [.] sinsp_parser::parse_context_switch
     0.22%     +0.21%  [.] sinsp_threadinfo::get_fd
     2.66%     +0.20%  [.] sinsp_thread_manager::get_thread_ref
     0.31%     +0.19%  [.] std::_Hashtable<unsigned long, std::pair<unsigned long const, std::shared_ptr<ppm_evt_hdr> >, std::allocator<std::pair<unsigned long const, std::shared_ptr<ppm_evt_hdr> > >, std::__detail::_Select1st, std::equal_to<unsigned long>, std::hash<unsigned long>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::find
     1.15%     -0.19%  [.] std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release

Heap diff from master - unit tests

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Heap diff from master - scap file

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Benchmarks diff from master

Comparing gbench_data.json to /root/actions-runner/_work/libs/libs/build/gbench_data.json
Benchmark                                                         Time             CPU      Time Old      Time New       CPU Old       CPU New
----------------------------------------------------------------------------------------------------------------------------------------------
BM_sinsp_split_mean                                            +0.0183         +0.0183           147           149           147           149
BM_sinsp_split_median                                          +0.0187         +0.0187           146           149           146           149
BM_sinsp_split_stddev                                          +0.1694         +0.1695             1             2             1             2
BM_sinsp_split_cv                                              +0.1484         +0.1486             0             0             0             0
BM_sinsp_concatenate_paths_relative_path_mean                  -0.1158         -0.1158            61            54            61            54
BM_sinsp_concatenate_paths_relative_path_median                -0.1423         -0.1423            61            53            61            53
BM_sinsp_concatenate_paths_relative_path_stddev               +14.2845        +14.2744             0             2             0             2
BM_sinsp_concatenate_paths_relative_path_cv                   +16.2854        +16.2742             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_mean                     +0.0288         +0.0287            24            25            24            25
BM_sinsp_concatenate_paths_empty_path_median                   +0.0299         +0.0299            24            25            24            25
BM_sinsp_concatenate_paths_empty_path_stddev                   -0.4737         -0.4740             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_cv                       -0.4884         -0.4887             0             0             0             0
BM_sinsp_concatenate_paths_absolute_path_mean                  -0.1662         -0.1663            66            55            66            55
BM_sinsp_concatenate_paths_absolute_path_median                -0.1749         -0.1749            67            55            67            55
BM_sinsp_concatenate_paths_absolute_path_stddev                -0.7943         -0.7947             1             0             1             0
BM_sinsp_concatenate_paths_absolute_path_cv                    -0.7533         -0.7538             0             0             0             0
BM_sinsp_split_container_image_mean                            +0.0168         +0.0168           386           393           386           393
BM_sinsp_split_container_image_median                          +0.0153         +0.0153           387           393           387           393
BM_sinsp_split_container_image_stddev                          +0.3510         +0.3505             2             2             2             2
BM_sinsp_split_container_image_cv                              +0.3286         +0.3282             0             0             0             0

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.44%. Comparing base (d1881b4) to head (8792181).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2145   +/-   ##
=======================================
  Coverage   75.44%   75.44%           
=======================================
  Files         265      265           
  Lines       34057    34057           
  Branches     5801     5801           
=======================================
+ Hits        25694    25695    +1     
+ Misses       8363     8362    -1     
Flag Coverage Δ
libsinsp 75.44% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@federico-sysdig federico-sysdig force-pushed the chore-improve-curl-dep-reference branch from 9acce30 to 762a913 Compare November 5, 2024 08:46
@poiana poiana added size/XS and removed size/S labels Nov 5, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Nov 8, 2024

Can you rebase on latest master? Thanks, should help with the CI :)

@federico-sysdig federico-sysdig force-pushed the chore-improve-curl-dep-reference branch 2 times, most recently from 298b145 to 9d60005 Compare November 8, 2024 16:37
@federico-sysdig
Copy link
Contributor Author

Can you rebase on latest master? Thanks, should help with the CI :)

@FedeDP I've rebased a second time. I noticed a batch of several commits has been merged.

@FedeDP
Copy link
Contributor

FedeDP commented Nov 13, 2024

/milestone 0.20.0

@poiana poiana added this to the 0.20.0 milestone Nov 13, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Jan 3, 2025

There are still a bunch of failures here; care to rebase and eventually fix them?

@federico-sysdig federico-sysdig force-pushed the chore-improve-curl-dep-reference branch from 9d60005 to 8792181 Compare January 4, 2025 16:24
@leogr leogr requested review from FedeDP and LucaGuerra January 7, 2025 11:04
@FedeDP
Copy link
Contributor

FedeDP commented Jan 7, 2025

So, static builds and zig builds are broken :/

There is no hurry for this one, for now i'll move it to next milestone; if we are able to fix it sooner, we can move it back to 0.20.

/milestone 0.21.0

@FedeDP FedeDP closed this Jan 7, 2025
@poiana poiana modified the milestones: 0.20.0, 0.21.0 Jan 7, 2025
@FedeDP
Copy link
Contributor

FedeDP commented Jan 7, 2025

/reopen
Sorry, wrong click!

@poiana poiana reopened this Jan 7, 2025
@poiana
Copy link
Contributor

poiana commented Jan 7, 2025

@FedeDP: Reopened this PR.

In response to this:

/reopen
Sorry, wrong click!

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

3 participants