tju-yxq opened a new pull request, #2037: URL: https://github.com/apache/rocketmq-dashboard/pull/2037
## Summary This PR adds focused regression coverage for several issue reports whose original descriptions were broader than the repository-verifiable evidence. It covers current `rocketmq-studio` behavior for: - alert export replacing non-finite thresholds (`NaN`/`Infinity`) with a finite numeric expression value; - alert export prefixing alert names that start with a digit so generated rule names start with `[A-Za-z_]`; - message query rejecting inverted or equal time ranges before broker query calls; - existing DLQ resend outcome classification tests (`NO_MESSAGES`, `FAILED`, `PARTIAL`); - existing TPS parsing tests for whitespace handling, 1-minute average selection, and values above the integer range. ## Evidence boundary - Verified by code inspection and focused/mocked unit tests. - This PR does not claim live Prometheus validation, live broker/UI testing, or full deployment testing. ## Verification ```bash cd server mvn -DskipTests=false "-Dtest=AlertServiceTest#exportPrometheusRulesYamlShouldPrefixAlertNamesStartingWithDigit+exportPrometheusRulesYamlShouldReplaceNonFiniteThresholds,RocketMQMessageProviderTest#queryMessagesShouldRejectInvertedTimeRangeBeforeAdminLookup+queryMessagesShouldRejectEqualTimeRangeBeforeAdminLookup,RocketMQDLQProviderTest#resendMessagesDoesNotPullWhenDlqQueueSetIsNull+resendMessagesCountsNonSendOkResultsAsFailures+resendMessagesMarksAResultPartialWhenOneDlqQueueCannotBeScanned,RocketMQClusterProviderTest#discoverClustersShouldParseRuntimeTpsWithExtraWhitespace+discoverClustersShouldKeepOneMinuteTpsAboveIntegerRange,RocketMQDashboardProviderTest#dashboardShouldKeepPerClusterTpsAboveIntegerRange" test ``` Result: `BUILD SUCCESS`; `Tests run: 10, Failures: 0, Errors: 0, Skipped: 0`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
