diff --git a/scripts/src/cicd.ts b/scripts/src/cicd.ts index 070de390..4fca2434 100644 --- a/scripts/src/cicd.ts +++ b/scripts/src/cicd.ts @@ -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,