Skip to content

Conversation

@mmetc
Copy link
Contributor

@mmetc mmetc commented Feb 11, 2026

simplify loop and reduce risk of races (we didn't lock before reading len)

simplify loop and reduce risk of races (we didn't lock before reading len)
@mmetc mmetc added this to the 1.7.7 milestone Feb 11, 2026
@github-actions
Copy link

@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.

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 62.06897% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.10%. Comparing base (1df2c55) to head (e01dcd1).

Files with missing lines Patch % Lines
cmd/crowdsec/output.go 62.06% 9 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4300      +/-   ##
==========================================
- Coverage   63.11%   63.10%   -0.01%     
==========================================
  Files         473      473              
  Lines       33466    33468       +2     
==========================================
- Hits        21123    21121       -2     
- Misses      10222    10226       +4     
  Partials     2121     2121              
Flag Coverage Δ
bats 46.55% <62.06%> (-0.02%) ⬇️
unit-linux 36.00% <0.00%> (-0.07%) ⬇️
unit-windows 24.45% <0.00%> (+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.

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

@mmetc mmetc changed the title refact cmd/crowdsec: encapsulate alertBuffer refact cmd/crowdsec: encapsulate cache into alertBuffer Feb 11, 2026
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.

1 participant