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

refactor(agent): improve magic file recognition performance #975

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

lavarou
Copy link
Member

@lavarou lavarou commented Oct 14, 2024

Speed up magic file recognition performance by cleaning up the list of magic
files from the files that belong to uninstrumented packages.

Speed up magic file recognition performance by cleaning up the list of magic
files from the files that belong to uninstrumented packages.
Remove files that belong to old and uninstrumented frameworks/libraries from
`libraries` and `logging_frameworks` arrays.
@lavarou lavarou requested a review from zsistla October 14, 2024 16:48
@lavarou lavarou added this to the next-release milestone Oct 14, 2024
@newrelic-php-agent-bot
Copy link

newrelic-php-agent-bot commented Oct 14, 2024

Test Suite Status Result
Multiverse 7/7 passing
SOAK 53/56 passing

After `logging_frameworks` cleanup, the agent no longer detects `cakephp/log`
or `analog/analog` - the tests need to be removed as well.
@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.54%. Comparing base (f9530ed) to head (5a53c0c).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #975   +/-   ##
=======================================
  Coverage   78.54%   78.54%           
=======================================
  Files         196      196           
  Lines       27103    27103           
=======================================
  Hits        21287    21287           
  Misses       5816     5816           
Flag Coverage Δ
agent-for-php-7.2 78.55% <ø> (ø)
agent-for-php-7.3 78.57% <ø> (ø)
agent-for-php-7.4 78.27% <ø> (ø)
agent-for-php-8.0 78.29% <ø> (ø)
agent-for-php-8.1 78.28% <ø> (ø)
agent-for-php-8.2 77.87% <ø> (ø)
agent-for-php-8.3 77.87% <ø> (ø)

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.

@lavarou lavarou merged commit 7a5f848 into dev Oct 15, 2024
55 checks passed
@lavarou lavarou deleted the refactor/improve-magic-file-recognition-performance branch October 15, 2024 04:22
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.

4 participants