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

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

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
test: speed up run-node tests · openclaw/openclaw@c8364b4
openclaw · 2026-05-27 · via Recent Commits to openclaw:main

@@ -8,6 +8,7 @@ import {

88

bundledPluginRoot,

99

} from "openclaw/plugin-sdk/test-fixtures";

1010

import { describe, expect, it, vi } from "vitest";

11+

import { copyBundledPluginMetadata } from "../../scripts/copy-bundled-plugin-metadata.mjs";

1112

import {

1213

BUILD_STAMP_FILE,

1314

RUNTIME_POSTBUILD_STAMP_FILE,

@@ -130,6 +131,13 @@ async function skipRuntimePostBuild(): Promise<void> {

130131

return;

131132

}

132133134+

async function syncBundledPluginMetadata(params?: {

135+

cwd?: string;

136+

env?: Record<string, string | undefined>;

137+

}): Promise<void> {

138+

copyBundledPluginMetadata({ cwd: params?.cwd, env: params?.env });

139+

}

140+133141

function firstMockCall<T extends unknown[]>(mock: { mock: { calls: T[] } }): T | undefined {

134142

return mock.mock.calls[0];

135143

}

@@ -455,6 +463,7 @@ describe("run-node script", () => {

455463

tmp,

456464

spawn,

457465

env: { OPENCLAW_FORCE_BUILD: "1" },

466+

runRuntimePostBuild: syncBundledPluginMetadata,

458467

});

459468460469

expect(exitCode).toBe(0);

@@ -1698,7 +1707,12 @@ describe("run-node script", () => {

16981707

});

1699170817001709

const { spawnCalls, spawn, spawnSync } = createSpawnRecorder();

1701-

const exitCode = await runStatusCommand({ tmp, spawn, spawnSync });

1710+

const exitCode = await runStatusCommand({

1711+

tmp,

1712+

spawn,

1713+

spawnSync,

1714+

runRuntimePostBuild: syncBundledPluginMetadata,

1715+

});

1702171617031717

expect(exitCode).toBe(0);

17041718

expect(spawnCalls).toEqual([statusCommandSpawn()]);

@@ -1772,7 +1786,12 @@ describe("run-node script", () => {

17721786

gitHead: "abc123\n",

17731787

gitStatus: ` M ${EXTENSION_MANIFEST}\n`,

17741788

});

1775-

const exitCode = await runStatusCommand({ tmp, spawn, spawnSync });

1789+

const exitCode = await runStatusCommand({

1790+

tmp,

1791+

spawn,

1792+

spawnSync,

1793+

runRuntimePostBuild: syncBundledPluginMetadata,

1794+

});

1776179517771796

expect(exitCode).toBe(0);

17781797

expect(spawnCalls).toEqual([statusCommandSpawn()]);

@@ -2317,37 +2336,39 @@ describe("run-node script", () => {

23172336

});

2318233723192338

it("reports missing core runtime postbuild outputs when runtime stamps match HEAD", async () => {

2320-

for (const missingPath of [

2321-

DIST_PLUGIN_SDK_ROOT_ALIAS,

2322-

DIST_CHANNEL_CATALOG,

2323-

DIST_LEGACY_CLI_EXIT_COMPAT,

2324-

DIST_STABLE_ROOT_RUNTIME_ALIAS,

2325-

DIST_LEGACY_ROOT_RUNTIME_COMPAT,

2326-

]) {

2327-

await withTempDir({ prefix: "openclaw-run-node-" }, async (tmp) => {

2328-

await setupTrackedProject(tmp, {

2329-

files: {

2330-

[ROOT_SRC]: "export const value = 1;\n",

2331-

[DIST_STABLE_ROOT_RUNTIME_SOURCE]: "export const value = 1;\n",

2332-

[DIST_STABLE_ROOT_RUNTIME_ALIAS]:

2333-

"export * from './model-catalog.runtime-AbCd1234.js';\n",

2334-

[DIST_LEGACY_ROOT_RUNTIME_TARGET]: "export const aborted = true;\n",

2335-

[DIST_LEGACY_ROOT_RUNTIME_COMPAT]: "export * from './abort.runtime.js';\n",

2336-

[RUNTIME_POSTBUILD_STAMP]: '{"head":"abc123"}\n',

2337-

},

2338-

buildPaths: [

2339-

ROOT_SRC,

2340-

DIST_ENTRY,

2341-

DIST_STABLE_ROOT_RUNTIME_SOURCE,

2342-

DIST_STABLE_ROOT_RUNTIME_ALIAS,

2343-

DIST_LEGACY_ROOT_RUNTIME_TARGET,

2344-

DIST_LEGACY_ROOT_RUNTIME_COMPAT,

2345-

BUILD_STAMP,

2346-

RUNTIME_POSTBUILD_STAMP,

2347-

],

2348-

});

2349-

await fs.rm(resolvePath(tmp, missingPath));

2339+

await withTempDir({ prefix: "openclaw-run-node-" }, async (tmp) => {

2340+

await setupTrackedProject(tmp, {

2341+

files: {

2342+

[ROOT_SRC]: "export const value = 1;\n",

2343+

[DIST_STABLE_ROOT_RUNTIME_SOURCE]: "export const value = 1;\n",

2344+

[DIST_STABLE_ROOT_RUNTIME_ALIAS]:

2345+

"export * from './model-catalog.runtime-AbCd1234.js';\n",

2346+

[DIST_LEGACY_ROOT_RUNTIME_TARGET]: "export const aborted = true;\n",

2347+

[DIST_LEGACY_ROOT_RUNTIME_COMPAT]: "export * from './abort.runtime.js';\n",

2348+

[RUNTIME_POSTBUILD_STAMP]: '{"head":"abc123"}\n',

2349+

},

2350+

buildPaths: [

2351+

ROOT_SRC,

2352+

DIST_ENTRY,

2353+

DIST_STABLE_ROOT_RUNTIME_SOURCE,

2354+

DIST_STABLE_ROOT_RUNTIME_ALIAS,

2355+

DIST_LEGACY_ROOT_RUNTIME_TARGET,

2356+

DIST_LEGACY_ROOT_RUNTIME_COMPAT,

2357+

BUILD_STAMP,

2358+

RUNTIME_POSTBUILD_STAMP,

2359+

],

2360+

});

235023612362+

for (const missingPath of [

2363+

DIST_PLUGIN_SDK_ROOT_ALIAS,

2364+

DIST_CHANNEL_CATALOG,

2365+

DIST_LEGACY_CLI_EXIT_COMPAT,

2366+

DIST_STABLE_ROOT_RUNTIME_ALIAS,

2367+

DIST_LEGACY_ROOT_RUNTIME_COMPAT,

2368+

]) {

2369+

const resolvedMissingPath = resolvePath(tmp, missingPath);

2370+

const originalContent = await fs.readFile(resolvedMissingPath, "utf8");

2371+

await fs.rm(resolvedMissingPath);

23512372

const requirement = resolveRuntimePostBuildRequirement(

23522373

createBuildRequirementDeps(tmp, {

23532374

gitHead: "abc123\n",

@@ -2359,8 +2380,9 @@ describe("run-node script", () => {

23592380

shouldSync: true,

23602381

reason: "missing_runtime_postbuild_output",

23612382

});

2362-

});

2363-

}

2383+

await fs.writeFile(resolvedMissingPath, originalContent);

2384+

}

2385+

});

23642386

});

2365238723662388

it("does not require ambiguous stable runtime aliases that postbuild cannot create", async () => {

@@ -2567,7 +2589,12 @@ describe("run-node script", () => {

25672589

gitHead: "abc123\n",

25682590

gitStatus: "",

25692591

});

2570-

const exitCode = await runStatusCommand({ tmp, spawn, spawnSync });

2592+

const exitCode = await runStatusCommand({

2593+

tmp,

2594+

spawn,

2595+

spawnSync,

2596+

runRuntimePostBuild: syncBundledPluginMetadata,

2597+

});

2571259825722599

expect(exitCode).toBe(0);

25732600

expect(spawnCalls).toEqual([statusCommandSpawn()]);

@@ -2602,7 +2629,12 @@ describe("run-node script", () => {

26022629

gitHead: "abc123\n",

26032630

gitStatus: "",

26042631

});

2605-

const exitCode = await runStatusCommand({ tmp, spawn, spawnSync });

2632+

const exitCode = await runStatusCommand({

2633+

tmp,

2634+

spawn,

2635+

spawnSync,

2636+

runRuntimePostBuild: syncBundledPluginMetadata,

2637+

});

2606263826072639

expect(exitCode).toBe(0);

26082640

expect(spawnCalls).toEqual([statusCommandSpawn()]);