The GitHub Actions job "CI" on rocketmq-dashboard.git/dev-101401 has failed.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
1b22793d1fd4ae5dcf07cdcdf48836d30a3d62f0 / lizhimins <[email protected]>
fix(alert): judge the trimmed native operator and pin the whitelist to the 
evaluator

NativeAlertRulePolicy validated the raw operator string while
AlertRuleEvaluator.compare() and NativeAlertRuleTestService.normalizeRule()
both work on the trimmed value, so a rule carrying " > " was rejected at
write time even though every consumer downstream would have accepted it.
Trim before the whitelist lookup (and reuse it for the UNAVAILABLE metric
guard) so validation and evaluation agree.

The operator whitelist now exists in three places (AlertRuleRequestDTO's
@Pattern, AlertRuleEvaluator.compare() and NATIVE_OPERATORS). Add a test
that walks NATIVE_OPERATORS and proves the evaluator actually implements
each one, so an operator added to the policy without a matching switch
case fails the build instead of silently evaluating to false.

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

With regards,
GitHub Actions via GitBox

Reply via email to