From 163227a0af57808fc5b6b6896d00a6ca1e39d0e0 Mon Sep 17 00:00:00 2001 From: Vincent Koc <25068+vincentkoc@users.noreply.github.com> Date: Sat, 11 Jul 2026 03:40:18 -0700 Subject: [PATCH] perf(ci): use source performance build profile --- .github/workflows/openclaw-performance.yml | 2 +- test/scripts/openclaw-performance-workflow.test.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openclaw-performance.yml b/.github/workflows/openclaw-performance.yml index 46714b49ef9e..de4c6ed12210 100644 --- a/.github/workflows/openclaw-performance.yml +++ b/.github/workflows/openclaw-performance.yml @@ -676,7 +676,7 @@ jobs: exit 0 fi - pnpm build + OPENCLAW_BUILD_PRIVATE_QA=1 node scripts/build-all.mjs sourcePerformance pnpm test:gateway:cpu-scenarios \ --output-dir "$SOURCE_PERF_DIR/gateway-cpu" \ diff --git a/test/scripts/openclaw-performance-workflow.test.ts b/test/scripts/openclaw-performance-workflow.test.ts index 429468222f77..fecc4e74a92c 100644 --- a/test/scripts/openclaw-performance-workflow.test.ts +++ b/test/scripts/openclaw-performance-workflow.test.ts @@ -165,6 +165,15 @@ describe("OpenClaw performance workflow", () => { expect(workflowText).not.toContain("https://x-access-token:"); }); + it("builds only the QA and startup artifacts required by source probes", () => { + const run = findStep("Run OpenClaw source performance probes", "source_performance").run ?? ""; + const build = "OPENCLAW_BUILD_PRIVATE_QA=1 node scripts/build-all.mjs sourcePerformance"; + + expect(run).toContain(build); + expect(run).not.toContain("pnpm build"); + expect(run.indexOf(build)).toBeLessThan(run.indexOf("pnpm test:gateway:cpu-scenarios")); + }); + it("isolates required publication in a fresh artifact-consuming job", () => { const workflow = readWorkflow(); const publisher = workflow.jobs?.publish;