From e58c708846a16e98ea77646229671071832cfaaa Mon Sep 17 00:00:00 2001 From: William Law Date: Tue, 12 May 2026 13:44:25 -0400 Subject: [PATCH] chore: display reverted in top failure modes --- report/src/pages/LoadTestDetail.tsx | 56 +++++++++++++++++++---------- report/src/types.ts | 1 + 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/report/src/pages/LoadTestDetail.tsx b/report/src/pages/LoadTestDetail.tsx index d6e0853..9396404 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; return ( @@ -106,6 +107,13 @@ const SummarySection = ({ result }: { result: LoadTestResult }) => { hint={formatPercent(confirmed, submitted) + " of submitted"} /> + {reverted > 0 && ( + + )} { - {result.top_failure_reasons.length === 0 ? ( -
- No failures recorded. -
- ) : ( - - )} + {(() => { + 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 ( + + ); + })()}
)} diff --git a/report/src/types.ts b/report/src/types.ts index d0d59f5..b8b1404 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;