Repository navigation
test: cover the dead-letter alert size cap - #5535
Conversation
Refs linuxfoundation/lfx-cdp-insights-ops#1238 Signed-off-by: Uroš Marolt <uros@marolt.me>
PR SummaryLow Risk Overview The scenario uses 10 units with very long Reviewed by Cursor Bugbot for commit 4cc0645. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@themarolt I'm starting review 1 of this pull request now (started 2026-12-06 19:48 UTC using review agent v0.1.37). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by Hi Uros Marolt, thanks for the quick follow-up test. SummaryThis pull request adds one regression test for the dead-letter alert's character budget. It checks that only the units that fit in the first message are marked as alerted, and that the next run names the rest. The change is test-only, and I found no issues. Decision✅ Approved DetailsOverall impression: A single test in Other reviewers and CI checks: Cursor Bugbot's summary agrees this is a low-risk, test-only change. The only required check, Rule files: read Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues |
Confidence Score: 5/5
[Low impact] This test-only change appears safe to merge. SummaryAdds a regression test for dead-letter alerts that reach the character limit before the line limit.
Reviews (1) · Last reviewed commit: "test: cover the dead-letter alert size c..." · Reviewed by Greptile |
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues with the added dead-letter alert size-cap regression coverage.
No open issues 🎉
What changed in this PR
Adds regression coverage for the dead-letter alert’s character budget, complementing the line-cap coverage from #5534.
Changes:
- Uses 10 units with long lines to trigger the size cap.
- Checks that only listed units are marked as alerted and the next run names the next pending unit.
| File | Description |
|---|---|
| services/apps/cron_service/src/jobs/syncUnitDeadLetter.test.ts | Adds a two-run regression test for size-capped alerts. |
Review effort: Balanced
lfx-one
left a comment
There was a problem hiding this comment.
Test-only change that adds a regression test for the dead-letter alert's character budget. I traced it against syncUnitDeadLetter.ts and octolensMappingHealth.ts and found no issues, so I'm approving.
Summary
Follow-up to #5534, from its review: a regression test for the size cap of the dead-letter alert. With long unit lines the message hits its character budget before the 20-line cap; only the units it lists are marked as alerted, and the rest are named on the next run.
Changes
Type of change
Related issue
Refs linuxfoundation/lfx-cdp-insights-ops#1238