mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
perf(ci): use source performance build profile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user