Skip to content

[AAP] Minor fixes and improvements to file descriptor reclamation#3526

Merged
cataphract merged 4 commits intomasterfrom
anilm3/appsec-fd-fixes
Dec 11, 2025
Merged

[AAP] Minor fixes and improvements to file descriptor reclamation#3526
cataphract merged 4 commits intomasterfrom
anilm3/appsec-fd-fixes

Conversation

@Anilm3
Copy link
Copy Markdown
Contributor

@Anilm3 Anilm3 commented Dec 10, 2025

Description

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 3.70370% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.63%. Comparing base (01a8843) to head (bdb3ffe).

Files with missing lines Patch % Lines
appsec/src/helper/utils.hpp 0.00% 15 Missing ⚠️
appsec/src/helper/network/acceptor.cpp 0.00% 9 Missing ⚠️
appsec/src/helper/network/acceptor.hpp 0.00% 1 Missing ⚠️
appsec/src/helper/runner.cpp 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (3.70%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3526      +/-   ##
==========================================
- Coverage   61.73%   61.63%   -0.11%     
==========================================
  Files         143      143              
  Lines       13008    13015       +7     
  Branches     1702     1702              
==========================================
- Hits         8031     8022       -9     
- Misses       4218     4231      +13     
- Partials      759      762       +3     
Files with missing lines Coverage Δ
appsec/src/helper/worker_pool.cpp 74.28% <100.00%> (+0.75%) ⬆️
appsec/src/helper/network/acceptor.hpp 0.00% <0.00%> (ø)
appsec/src/helper/runner.cpp 0.00% <0.00%> (ø)
appsec/src/helper/network/acceptor.cpp 0.00% <0.00%> (ø)
appsec/src/helper/utils.hpp 57.89% <0.00%> (-37.76%) ⬇️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 01a8843...bdb3ffe. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread appsec/src/helper/network/acceptor.cpp Outdated
: sock_(::socket(AF_UNIX, SOCK_STREAM, 0))
{
// NOLINTNEXTLINE(android-cloexec-socket,cppcoreguidelines-prefer-member-initializer)
sock_ = ::socket(AF_UNIX, SOCK_STREAM, 0);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it would be better to introduce an owned_fd class and also remove the destructor

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Dec 10, 2025

Benchmarks [ appsec ]

Benchmark execution time: 2025-12-10 17:35:02

Comparing candidate commit bdb3ffe in PR branch anilm3/appsec-fd-fixes with baseline commit 01a8843 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.

@Anilm3 Anilm3 marked this pull request as ready for review December 10, 2025 16:57
@Anilm3 Anilm3 requested a review from a team as a code owner December 10, 2025 16:57
@cataphract cataphract force-pushed the anilm3/appsec-fd-fixes branch from 14a1d2c to bdb3ffe Compare December 10, 2025 16:59
@cataphract cataphract force-pushed the anilm3/appsec-fd-fixes branch 2 times, most recently from bdb3ffe to f49dd68 Compare December 11, 2025 11:01
@cataphract cataphract merged commit 14dc0a4 into master Dec 11, 2025
18 checks passed
@cataphract cataphract deleted the anilm3/appsec-fd-fixes branch December 11, 2025 11:01
@github-actions github-actions Bot added the profiling Relates to the Continuous Profiler label Dec 11, 2025
@github-actions github-actions Bot added this to the 1.15.0 milestone Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:asm profiling Relates to the Continuous Profiler tracing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants