The GitHub Actions job "CI" on 
rocketmq-dashboard.git/fix/alert-reminder-interval-units has succeeded.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
566d218be09faf1f95895581c7e0c4389efa7b9e / Apulupie 
<[email protected]>
fix(alert): validate the reminder interval like the duration field

AlertRuleRequestDTO carried two duration fields parsed by the same 
AlertRuleDuration, and
#6451 tightened only one of them: duration validates PROMETHEUS_DURATION_REGEXP 
(each unit at
most once, descending), while reminderInterval kept the expression #6451 
replaced there. The
REST create/update endpoints therefore accepted "1m1m", "1s1m" or "1h2d"; 
AlertRuleDuration
sums the parts without checking the order, so a stored "1m1m" scheduled the 
next reminder two
minutes later and the rules table rendered a value the editor's own interval 
list cannot
produce.

Point reminderInterval at the same constant so both fields of the rule agree on 
the syntax.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/45941962160

With regards,
GitHub Actions via GitBox

Reply via email to