crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

acquisition refact: context-aware OneShot(), for file + journalctl + wineventlog

Open mmetc opened this issue 1 month ago • 2 comments

mmetc avatar Dec 10 '25 14:12 mmetc

@mmetc: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

github-actions[bot] avatar Dec 10 '25 14:12 github-actions[bot]

Codecov Report

:x: Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 62.93%. Comparing base (a1aea2c) to head (badef31). :warning: Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/acquisition/modules/file/run.go 75.00% 1 Missing :warning:
pkg/acquisition/modules/wineventlog/run_windows.go 50.00% 1 Missing :warning:
pkg/acquisition/modules/wineventlog/stub.go 0.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4125      +/-   ##
==========================================
- Coverage   62.96%   62.93%   -0.03%     
==========================================
  Files         467      467              
  Lines       33316    33316              
==========================================
- Hits        20976    20969       -7     
- Misses      10225    10229       +4     
- Partials     2115     2118       +3     
Flag Coverage Δ
bats 46.17% <80.00%> (+<0.01%) :arrow_up:
unit-linux 35.74% <26.66%> (-0.03%) :arrow_down:
unit-windows 25.04% <25.00%> (-0.03%) :arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Dec 10 '25 14:12 codecov[bot]