Skip to content

Removal of Dependencies to Libraries Before Migration #163

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

LucioDonda
Copy link
Member

@LucioDonda LucioDonda commented Sep 19, 2024

Related issue
#152

Description

Although the base idea was to replace the regex library with re2 as stated on the base issue, we have proceded with a first removal of any reference of this specially related to inventory which is the parent development.

Hypothesis

Because we're dealing with a great amount of legacy code that we don't really want to keep using we have decided to first cut any relation with the os_regex library.

Proposal

  • remove any addition of os_regex as library.
  • remove any os_regex header inclution.
  • comment regex's functions used in libraries that we still need.
  • start in inventory module and proceed with any other code black that make use of os_regex

Tests

  • Compilation without warnings in every supported platform
    • Linux
    • Windows
    • MAC OS X

@LucioDonda LucioDonda self-assigned this Sep 19, 2024
@LucioDonda LucioDonda changed the title os_regex removal direct removal of os_regex reference and usage on wazuh_agent Sep 19, 2024
@LucioDonda LucioDonda changed the title direct removal of os_regex reference and usage on wazuh_agent Direct removal of os_regex reference and usage on wazuh_agent Sep 19, 2024
@LucioDonda LucioDonda changed the title Direct removal of os_regex reference and usage on wazuh_agent Direct Removal of os_regex References and Usage on Agent Sep 19, 2024
@LucioDonda LucioDonda changed the title Direct Removal of os_regex References and Usage on Agent Removal of Dependencies to Libraries Before Migration Sep 20, 2024
@LucioDonda LucioDonda force-pushed the poc/152-os-regex-removal branch from 5c86736 to 966e8cc Compare September 20, 2024 15:15
@LucioDonda LucioDonda force-pushed the poc/152-os-regex-removal branch from 966e8cc to 10ae0e9 Compare September 20, 2024 15:17
@LucioDonda LucioDonda requested a review from cborla September 20, 2024 15:25
Copy link
Member

@cborla cborla left a comment

Choose a reason for hiding this comment

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

LGTM

@LucioDonda LucioDonda merged commit b8fe691 into enhancement/17-migrate-syscollector-to-inventory-at-new-agent Sep 20, 2024
2 of 5 checks passed
@LucioDonda LucioDonda deleted the poc/152-os-regex-removal branch September 20, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants