From 6b2b7943e21a1529cf2cab39abce5456a37a4b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 5 Dec 2025 13:00:23 +0100 Subject: [PATCH 1/6] Do not show negative time in expected benchmark end --- site/frontend/src/pages/status/page.vue | 42 +++++++++++++------------ 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/site/frontend/src/pages/status/page.vue b/site/frontend/src/pages/status/page.vue index 1504fb9eb..0f91fa89a 100644 --- a/site/frontend/src/pages/status/page.vue +++ b/site/frontend/src/pages/status/page.vue @@ -122,32 +122,34 @@ function ExpectedCurrentRequestCompletion() { const now = new Date(); const diffSeconds = differenceInSeconds(estimatedCompleted, now); - const prettyDisplay = formatSecondsAsDuration(diffSeconds); + let expectedEnd: string; + if (diffSeconds >= 0) { + let remainingSeconds = formatSecondsAsDuration(diffSeconds); + expectedEnd = `expected to end in approximately ${remainingSeconds}`; + } else { + expectedEnd = "is running longer than expected"; + } + + let kind = "PR"; + let link; if (req.requestType === "Release") { - return ( - - Current Benchmark for{" "} - - - {" "} - expected to end in approximately {prettyDisplay} - - ); + link = ; + kind = ""; } else { const url = `https://github.com/rust-lang/rust/pull/${req.pr}`; - return ( - - Current Benchmark for PR{" "} - - - #{req.pr} - {" "} - - expected to end in approximately {prettyDisplay} - + link = ( + + #{req.pr} + ); } + + return ( + + Current benchmark for {kind} {link} {expectedEnd}. + + ); } function PullRequestLink({request}: {request: BenchmarkRequest}) { From 714fcafff87705aa9d59aedf3daae0fe85a379c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 5 Dec 2025 13:04:12 +0100 Subject: [PATCH 2/6] Truncate tag in collector table --- site/frontend/src/pages/status/collector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/frontend/src/pages/status/collector.vue b/site/frontend/src/pages/status/collector.vue index c414c2aa9..5f1f0d285 100644 --- a/site/frontend/src/pages/status/collector.vue +++ b/site/frontend/src/pages/status/collector.vue @@ -182,7 +182,7 @@ function formatProfile(job: BenchmarkJob): string {