ci: polish source performance report

This commit is contained in:
Peter Steinberger
2026-05-02 17:49:48 +01:00
parent 06a5469f47
commit d3b6c805de
2 changed files with 9 additions and 1 deletions

View File

@@ -327,6 +327,7 @@ jobs:
run_dir="$SOURCE_PERF_DIR/mock-hello/run-$(printf '%03d' "$run_index")"
pnpm openclaw qa suite \
--provider-mode mock-openai \
--model "mock-openai/${PERFORMANCE_MODEL_ID}" \
--concurrency 1 \
--output-dir "$(realpath --relative-to="$GITHUB_WORKSPACE" "$run_dir")" \
--scenario channel-chat-baseline

View File

@@ -160,10 +160,17 @@ function buildCliRows(cli) {
formatMs(commandCase.summary?.durationMs?.p50),
formatMs(commandCase.summary?.durationMs?.p95),
formatMb(commandCase.summary?.maxRssMb?.p95),
commandCase.summary?.exitSummary ?? "n/a",
formatExitSummary(commandCase.summary?.exitSummary),
]);
}
function formatExitSummary(value) {
if (typeof value !== "string" || !value) {
return "n/a";
}
return value.replaceAll(/\b(code:(?:null|-?\d+)|signal:[^,\s]+)x(\d+)\b/g, "$1 x$2");
}
function buildObservationRows(summary) {
return (summary?.observations ?? []).map((observation) => [
observation.kind ?? "unknown",