Skip to content

ROX-33627: Add benchmarks for alert manager#19460

Open
dashrews78 wants to merge 2 commits intomasterfrom
dashrews/merge-alert-benchmark-33627
Open

ROX-33627: Add benchmarks for alert manager#19460
dashrews78 wants to merge 2 commits intomasterfrom
dashrews/merge-alert-benchmark-33627

Conversation

@dashrews78
Copy link
Contributor

@dashrews78 dashrews78 commented Mar 17, 2026

Description

Add sql_integration benchmarks for mergeManyAlerts and AlertAndNotify
using real Postgres to measure protobuf deserialization cost and
allocation pressure. These provide a baseline for the two-phase fetch
optimization — results confirm merge dominates the pipeline (~80-90%
at 1000 previous alerts) with ~30 allocs per previous alert.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

This is just a test.

Add sql_integration benchmarks for mergeManyAlerts and AlertAndNotify
using real Postgres to measure protobuf deserialization cost and
allocation pressure. These provide a baseline for the two-phase fetch
optimization — results confirm merge dominates the pipeline (~80-90%
at 1000 previous alerts) with ~30 allocs per previous alert.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dashrews78
Copy link
Contributor Author

dashrews78 commented Mar 17, 2026

This change is part of the following stack:

Change managed by git-spice.

@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 17, 2026

Images are ready for the commit at 9e5ba18.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-348-g9e5ba1861b.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.33%. Comparing base (fe38a34) to head (9e5ba18).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19460      +/-   ##
==========================================
- Coverage   49.34%   49.33%   -0.02%     
==========================================
  Files        2719     2722       +3     
  Lines      205087   205145      +58     
==========================================
+ Hits       101193   101199       +6     
- Misses      96361    96414      +53     
+ Partials     7533     7532       -1     
Flag Coverage Δ
go-unit-tests 49.33% <ø> (-0.02%) ⬇️

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:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants