perf(ci): use source performance build profile

This commit is contained in:
Vincent Koc
2026-07-11 03:40:18 -07:00
committed by Vincent Koc
parent 6013e78f5a
commit 163227a0af
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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" \
@@ -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;