|
|
|
|
@ -40,6 +40,7 @@ export type UpdateStepInfo = {
|
|
|
|
|
export type UpdateStepCompletion = UpdateStepInfo & {
|
|
|
|
|
durationMs: number;
|
|
|
|
|
exitCode: number | null;
|
|
|
|
|
stderrTail?: string | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UpdateStepProgress = {
|
|
|
|
|
@ -199,10 +200,13 @@ async function runStep(opts: RunStepOptions): Promise<UpdateStepResult> {
|
|
|
|
|
const result = await runCommand(argv, { cwd, timeoutMs, env });
|
|
|
|
|
const durationMs = Date.now() - started;
|
|
|
|
|
|
|
|
|
|
const stderrTail = trimLogTail(result.stderr, MAX_LOG_CHARS);
|
|
|
|
|
|
|
|
|
|
progress?.onStepComplete?.({
|
|
|
|
|
...stepInfo,
|
|
|
|
|
durationMs,
|
|
|
|
|
exitCode: result.code,
|
|
|
|
|
stderrTail,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|