diff --git a/report/src/pages/LoadTestDetail.tsx b/report/src/pages/LoadTestDetail.tsx index 808ab81..fd5050c 100644 --- a/report/src/pages/LoadTestDetail.tsx +++ b/report/src/pages/LoadTestDetail.tsx @@ -91,6 +91,7 @@ const SummarySection = ({ result }: { result: LoadTestResult }) => { const submitted = result.throughput.total_submitted; const confirmed = result.throughput.total_confirmed; const failed = result.throughput.total_failed; + const reverted = result.throughput.total_reverted; const blockRange = result.block_range; const hasConfirmedBlockRange = typeof blockRange?.first_block === "number" && @@ -110,6 +111,13 @@ const SummarySection = ({ result }: { result: LoadTestResult }) => { hint={formatPercent(confirmed, submitted) + " of submitted"} /> + {reverted > 0 && ( + + )} { - {result.top_failure_reasons.length === 0 ? ( -
- No failures recorded. -
- ) : ( -
    - {result.top_failure_reasons.map(([reason, count]) => ( -
  • - {reason} - - {count.toLocaleString()} - -
  • - ))} -
- )} + {(() => { + const reverted = result.throughput.total_reverted; + const reasons: [string, number][] = [ + ...(reverted > 0 + ? [["reverted", reverted] as [string, number]] + : []), + ...result.top_failure_reasons, + ]; + if (reasons.length === 0) { + return ( +
+ No failures recorded. +
+ ); + } + return ( +
    + {reasons.map(([reason, count]) => ( +
  • + {reason} + + {count.toLocaleString()} + +
  • + ))} +
+ ); + })()}
)} diff --git a/report/src/types.ts b/report/src/types.ts index 321ad63..13d8c21 100644 --- a/report/src/types.ts +++ b/report/src/types.ts @@ -151,6 +151,7 @@ export interface ThroughputStats { total_submitted: number; total_confirmed: number; total_failed: number; + total_reverted: number; tps: number; gps: number; duration: RustDuration;