Skip to content

Commit 3c1b0e9

Browse files
committed
chore(ci): make runtime metrics normalization non-fatal on write errors
1 parent 39ad22a commit 3c1b0e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/normalize-runtime-metrics.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ try {
155155
}
156156
console.log(`[normalize-runtime-metrics] normalized ${targetInput}`);
157157
} catch (error) {
158+
const message = error instanceof Error ? error.message : String(error);
158159
if (
159160
error &&
160161
typeof error === "object" &&
@@ -166,5 +167,8 @@ try {
166167
);
167168
process.exit(0);
168169
}
169-
throw error;
170+
console.warn(
171+
`[normalize-runtime-metrics] skipped: non-fatal write error (${message})`,
172+
);
173+
process.exit(0);
170174
}

0 commit comments

Comments
 (0)