惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
博客园 - 【当耐特】
I
InfoQ
腾讯CDC
人人都是产品经理
人人都是产品经理
H
Help Net Security
Y
Y Combinator Blog
B
Blog
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
D
Docker
博客园 - 聂微东
B
Blog RSS Feed
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
perf(scripts): prebuild qa runtime assets · openclaw/open...
vincentkoc · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -57,6 +57,7 @@ Docs: https://docs.openclaw.ai

5757

- CI/tooling: route script edits through conventional owner tests when matching `test/scripts` or `src/scripts` coverage already exists.

5858

- CI/tooling: honor option terminators in the memory FD repro script so follow-on arguments are not reparsed.

5959

- Release/CI/E2E: honor option terminators across release, Parallels smoke, plugin gauntlet, and extension-memory scripts.

60+

- Performance: prebuild QA runtime probes with generated plugin assets but without CLI startup metadata.

6061

- Performance: skip declaration bundling for runtime-only CLI startup and gateway watch build profiles.

6162

- Performance: reuse prepared provider handles, strict tool schemas, gateway runtime metadata, session maintenance config, plugin metadata, bundled skill allowlists, package-local plugin artifacts, single-entry store writes, and validated/serialized session prompt blobs.

6263
Original file line numberDiff line numberDiff line change

@@ -158,6 +158,14 @@ export const BUILD_ALL_PROFILES = {

158158

"build-stamp",

159159

"runtime-postbuild-stamp",

160160

],

161+

qaRuntime: [

162+

"plugins:assets:build",

163+

"tsdown",

164+

"check-cli-bootstrap-imports",

165+

"runtime-postbuild",

166+

"build-stamp",

167+

"runtime-postbuild-stamp",

168+

],

161169

cliStartup: [

162170

"tsdown",

163171

"check-cli-bootstrap-imports",

@@ -183,6 +191,11 @@ export const BUILD_ALL_PROFILE_STEP_ENV = {

183191

OPENCLAW_RUNTIME_POSTBUILD_STATIC_ASSETS: "0",

184192

},

185193

},

194+

qaRuntime: {

195+

tsdown: {

196+

OPENCLAW_RUN_NODE_SKIP_DTS_BUILD: "1",

197+

},

198+

},

186199

cliStartup: {

187200

tsdown: {

188201

OPENCLAW_RUN_NODE_SKIP_DTS_BUILD: "1",

Original file line numberDiff line numberDiff line change

@@ -227,7 +227,7 @@ async function runGatewayCpuScenarios(options, params = {}) {

227227

const privateQaBuild = runStep(

228228

"private QA build",

229229

process.execPath,

230-

["scripts/build-all.mjs", "cliStartup"],

230+

["scripts/build-all.mjs", "qaRuntime"],

231231

{ env: qaBuildEnv },

232232

params,

233233

);

Original file line numberDiff line numberDiff line change

@@ -229,7 +229,7 @@ function readOptionalNonNegativeIntEnv(name) {

229229

export function createGauntletPrebuildCommand(repoRoot) {

230230

return {

231231

command: process.execPath,

232-

args: [path.join(repoRoot, "scripts", "build-all.mjs"), "cliStartup"],

232+

args: [path.join(repoRoot, "scripts", "build-all.mjs"), "qaRuntime"],

233233

};

234234

}

235235
Original file line numberDiff line numberDiff line change

@@ -240,7 +240,7 @@ describe("resolveBuildAllSteps", () => {

240240

});

241241
242242

it("skips bundled tsdown declarations for runtime-only profiles", () => {

243-

for (const profile of ["ciArtifacts", "gatewayWatch", "cliStartup"]) {

243+

for (const profile of ["ciArtifacts", "gatewayWatch", "qaRuntime", "cliStartup"]) {

244244

const tsdown = resolveBuildAllSteps(profile).find((step) => step.label === "tsdown");

245245

if (!tsdown) {

246246

throw new Error(`Missing ${profile} tsdown step`);

@@ -267,6 +267,17 @@ describe("resolveBuildAllSteps", () => {

267267

]);

268268

});

269269
270+

it("uses a QA runtime profile with generated plugin assets but no startup metadata", () => {

271+

expect(resolveBuildAllSteps("qaRuntime").map((step) => step.label)).toEqual([

272+

"plugins:assets:build",

273+

"tsdown",

274+

"check-cli-bootstrap-imports",

275+

"runtime-postbuild",

276+

"build-stamp",

277+

"runtime-postbuild-stamp",

278+

]);

279+

});

280+
270281

it("uses a CLI startup profile without generated plugin assets", () => {

271282

expect(resolveBuildAllSteps("cliStartup").map((step) => step.label)).toEqual([

272283

"tsdown",

@@ -301,6 +312,24 @@ describe("resolveBuildAllSteps", () => {

301312

}

302313

});

303314
315+

it("keeps generated static plugin assets enabled for the QA runtime profile", () => {

316+

const runtimePostbuild = resolveBuildAllSteps("qaRuntime").find(

317+

(step) => step.label === "runtime-postbuild",

318+

);

319+

if (!runtimePostbuild) {

320+

throw new Error("Missing qaRuntime runtime-postbuild step");

321+

}

322+
323+

expect(BUILD_ALL_PROFILE_STEP_ENV.qaRuntime["runtime-postbuild"]).toBeUndefined();

324+

expect(

325+

resolveBuildAllStep(runtimePostbuild, {

326+

env: { OPENCLAW_RUNTIME_POSTBUILD_STATIC_ASSETS: "1" },

327+

}).options.env,

328+

).toMatchObject({

329+

OPENCLAW_RUNTIME_POSTBUILD_STATIC_ASSETS: "1",

330+

});

331+

});

332+
304333

it("writes the runtime postbuild stamp after the build stamp", () => {

305334

const labels = resolveBuildAllSteps("full").map((step) => step.label);

306335

expect(labels).toContain("runtime-postbuild");

@@ -326,7 +355,7 @@ describe("resolveBuildAllSteps", () => {

326355

});

327356
328357

it("keeps ui:build out of minimal backend-only profiles", () => {

329-

for (const profile of ["gatewayWatch", "cliStartup"]) {

358+

for (const profile of ["gatewayWatch", "qaRuntime", "cliStartup"]) {

330359

const labels = resolveBuildAllSteps(profile).map((step) => step.label);

331360

expect(labels).not.toContain("ui:build");

332361

}

Original file line numberDiff line numberDiff line change

@@ -137,7 +137,7 @@ describe("gateway CPU scenario guard", () => {

137137
138138

expect(result.exitCode).toBe(0);

139139

expect(result.summary.steps.map((step) => step.name)).toEqual(["private QA build", "qa suite"]);

140-

expect(calls[0]?.args).toEqual(["scripts/build-all.mjs", "cliStartup"]);

140+

expect(calls[0]?.args).toEqual(["scripts/build-all.mjs", "qaRuntime"]);

141141

expect(calls[0]?.env).toMatchObject({

142142

OPENCLAW_BUILD_PRIVATE_QA: "1",

143143

OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1",

Original file line numberDiff line numberDiff line change

@@ -379,10 +379,10 @@ describe("plugin gateway gauntlet helpers", () => {

379379

});

380380

});

381381
382-

it("prebuilds only the CLI startup runtime needed by the gauntlet", () => {

382+

it("prebuilds only the QA runtime needed by the gauntlet", () => {

383383

expect(createGauntletPrebuildCommand(repoRoot)).toEqual({

384384

command: process.execPath,

385-

args: [path.join(repoRoot, "scripts", "build-all.mjs"), "cliStartup"],

385+

args: [path.join(repoRoot, "scripts", "build-all.mjs"), "qaRuntime"],

386386

});

387387

});

388388