The GitHub Actions job "CI" on rocketmq-dashboard.git/fix/shared-byte-size-format has failed. Run started by GitHub user lizhimins (triggered by lizhimins).
Head commit for run: 3638611602aa31c2338d56bc1cf9850247a38a5a / wang1r <[email protected]> fix(web): share one byte-size formatter for messages and payloads message.tsx and topic.tsx each carried a private byte formatter for the same MessageRecord.size and send-payload byte counts, and both copies stopped at megabytes: if (bytes >= 1048576) return `${(bytes / 1048576).toFixed(2)} MB`; so a 5 GiB message body rendered as "5120.00 MB" and a 2 TiB payload as "2097152.00 MB", while utils/format.ts already scales to PB. The copies also disagreed with the shared formatter on the base unit ("512 B" vs "512.0 B") and inherited none of its guards, so a size a provider could not resolve rendered as "NaN B". Delete both copies and point the five call sites at formatBytes. A byte count has no meaningful fraction, so the base unit now renders whole; the promotion loop has to round with the same width it renders with, or 1023.6 would print "1024 B" instead of being promoted to "1.0 KB". Report URL: https://github.com/apache/rocketmq-dashboard/actions/runs/36846681673 With regards, GitHub Actions via GitBox
