@rubytech/taskmaster 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build-info.json
CHANGED
|
@@ -124,8 +124,11 @@ export const updateHandlers = {
|
|
|
124
124
|
const timeoutMs = typeof timeoutMsRaw === "number" && Number.isFinite(timeoutMsRaw)
|
|
125
125
|
? Math.max(1000, Math.floor(timeoutMsRaw))
|
|
126
126
|
: undefined;
|
|
127
|
+
const log = context.logGateway;
|
|
128
|
+
log.info(`software update started`);
|
|
127
129
|
const progress = {
|
|
128
130
|
onStepStart: (step) => {
|
|
131
|
+
log.info(`update step ${step.index + 1}/${step.total}: ${step.name}`);
|
|
129
132
|
context.broadcast("update.progress", {
|
|
130
133
|
phase: "step-start",
|
|
131
134
|
name: step.name,
|
|
@@ -134,13 +137,15 @@ export const updateHandlers = {
|
|
|
134
137
|
});
|
|
135
138
|
},
|
|
136
139
|
onStepComplete: (step) => {
|
|
140
|
+
const ok = step.exitCode === 0 || step.exitCode === null;
|
|
141
|
+
log.info(`update step ${step.index + 1}/${step.total}: ${step.name} ${ok ? "ok" : `FAILED (exit ${step.exitCode})`} (${step.durationMs}ms)`);
|
|
137
142
|
context.broadcast("update.progress", {
|
|
138
143
|
phase: "step-done",
|
|
139
144
|
name: step.name,
|
|
140
145
|
index: step.index,
|
|
141
146
|
total: step.total,
|
|
142
147
|
durationMs: step.durationMs,
|
|
143
|
-
ok
|
|
148
|
+
ok,
|
|
144
149
|
});
|
|
145
150
|
},
|
|
146
151
|
};
|
|
@@ -167,6 +172,12 @@ export const updateHandlers = {
|
|
|
167
172
|
durationMs: 0,
|
|
168
173
|
};
|
|
169
174
|
}
|
|
175
|
+
if (result.status === "ok") {
|
|
176
|
+
log.info(`software update completed (${result.mode}, ${result.durationMs}ms)`);
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
log.warn(`software update ${result.status}: ${result.reason ?? "unknown"} (${result.mode}, ${result.durationMs}ms)`);
|
|
180
|
+
}
|
|
170
181
|
const payload = {
|
|
171
182
|
kind: "update",
|
|
172
183
|
status: result.status,
|