fix(ci): satisfy rtt lint rules

This commit is contained in:
Vincent Koc
2026-05-01 08:25:52 -07:00
parent c1f31f3870
commit 8751464cb9
2 changed files with 10 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ export function extractRtt(summary: TelegramQaSummary) {
const mention = scenarios.find((scenario) => scenario.id === "telegram-mentioned-message-reply");
const warmSamples = mention?.samples
?.filter((sample) => sample.status === "pass" && sample.rttMs !== undefined)
.sort((left, right) => (left.index ?? 0) - (right.index ?? 0))
.toSorted((left, right) => (left.index ?? 0) - (right.index ?? 0))
.flatMap((sample) => (sample.rttMs === undefined ? [] : [sample.rttMs]));
const rtt: RttResult["rtt"] = {
canaryMs: scenarios.find((scenario) => scenario.id === "telegram-canary")?.rttMs,