fix: preserve status timing source commit
This commit is contained in:
+2
-1
@@ -2127,12 +2127,13 @@ function buildFollowerTimings(
|
||||
...stageTimingsFromCommand(triggerCommand),
|
||||
...stageTimingsFromNativePayload(nativePayload),
|
||||
]).slice(0, 24);
|
||||
const stageSourceCommit = stages.length > 0 ? live.observedSha : null;
|
||||
return {
|
||||
budgetSeconds: follower.budgets.endToEndSeconds,
|
||||
totalSeconds: total?.seconds ?? null,
|
||||
totalStatus: total?.status ?? "unknown",
|
||||
totalSource: total?.source ?? "-",
|
||||
sourceCommit: total?.sourceCommit ?? stringOrNull(triggerCommand?.sourceCommit) ?? null,
|
||||
sourceCommit: total?.sourceCommit ?? stringOrNull(triggerCommand?.sourceCommit) ?? stageSourceCommit,
|
||||
startedAt: total?.startedAt ?? null,
|
||||
finishedAt: total?.finishedAt ?? null,
|
||||
overBudget: total === null ? null : total.seconds > follower.budgets.endToEndSeconds,
|
||||
|
||||
Reference in New Issue
Block a user