The GitHub Actions job "CI" on 
rocketmq-dashboard.git/feature/studio-frontend-optimizations has failed.
Run started by GitHub user zhaohai666 (triggered by zhaohai666).

Head commit for run:
9a6976322cb4b0bdea965ede0fa6982477c1b97f / zhaohaihzb <[email protected]>
refactor(web): dedupe error/format helpers, fix render-time setState and 
polling stability

- Add shared utils/error.ts getErrorMessage and reuse it in dlq, message,
  clients, certs and MetricsExplorer, removing five duplicated copies
  (precedence: response.data.message -> error.message -> fallback).
- Remove duplicate ResetConsumerOffsetRequest export in api/metadata.ts
  (the instanceId-less definition) to avoid a tsc Duplicate identifier.
- Reuse toStoreTimestamp from api/message in messageService instead of a
  local copy.
- Reuse formatDateTime/formatNumber from utils/format in topic and dlq pages.
- Fix dlq render-phase setState anti-pattern by moving instance-scoped
  resets into a useEffect keyed on [selectedInstanceId, refreshKey].
- Memoize MetricsExplorer's static copy object with useMemo.
- Stabilize useVisiblePolling: hold the latest poll in a ref so the interval
  effect depends only on [enabled, intervalMs] and is not torn down on every
  render when an inline poll is passed.
- Update MetricsExplorer test to assert the real error message (the shared
  helper now prefers error.message over the generic fallback).

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

With regards,
GitHub Actions via GitBox

Reply via email to