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

推荐订阅源

Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
量子位
美团技术团队
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
月光博客
月光博客

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
chore: improve beta smoke release tooling · openclaw/open...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -65,10 +65,19 @@ interface NpmUpdateSummary {

6565

packageSpec: string;

6666

updateTarget: string;

6767

updateExpected: string;

68+

updateTargetBuildCommit: string;

69+

updateTargetPackageVersion: string;

70+

updateTargetTarball: string;

6871

provider: Provider;

6972

latestVersion: string;

7073

currentHead: string;

7174

runDir: string;

75+

slowestTiming?: {

76+

durationMs: number;

77+

label: string;

78+

phase: "fresh" | "fresh-target" | "update";

79+

};

80+

totalDurationMs: number;

7281

fresh: Record<Platform, string>;

7382

freshTarget: Record<Platform, string>;

7483

freshTargetSpec: string;

@@ -184,6 +193,13 @@ function platformRecord<T>(value: T): Record<Platform, T> {

184193

return { linux: value, macos: value, windows: value };

185194

}

186195196+

function formatDuration(durationMs: number): string {

197+

const seconds = Math.round(durationMs / 1000);

198+

const minutes = Math.floor(seconds / 60);

199+

const remainder = seconds % 60;

200+

return minutes > 0 ? `${minutes}m ${remainder}s` : `${remainder}s`;

201+

}

202+187203

class NpmUpdateSmoke {

188204

private auth: ProviderAuth;

189205

private windowsAuth: ProviderAuth;

@@ -197,8 +213,12 @@ class NpmUpdateSmoke {

197213

private server: HostServer | null = null;

198214

private artifact: PackageArtifact | null = null;

199215

private freshTargetSpec = "";

216+

private startedAt = Date.now();

217+

private updateTargetBuildCommit = "";

200218

private updateTargetEffective = "";

201219

private updateExpectedNeedle = "";

220+

private updateTargetPackageVersion = "";

221+

private updateTargetTarball = "";

202222

private linuxVm = linuxVmDefault;

203223204224

private freshStatus = platformRecord("skip");

@@ -221,6 +241,7 @@ class NpmUpdateSmoke {

221241

}

222242223243

async run(): Promise<void> {

244+

this.startedAt = Date.now();

224245

this.runDir = await makeTempDir("openclaw-parallels-npm-update.");

225246

this.tgzDir = await makeTempDir("openclaw-parallels-npm-update-tgz.");

226247

try {

@@ -394,12 +415,76 @@ class NpmUpdateSmoke {

394415

});

395416

this.updateTargetEffective = this.server.urlFor(this.artifact.path);

396417

this.updateExpectedNeedle = this.currentHeadShort;

418+

this.updateTargetPackageVersion = this.artifact.version ?? "";

419+

this.updateTargetBuildCommit =

420+

this.artifact.buildCommitShort ?? this.artifact.buildCommit ?? "";

421+

this.updateTargetTarball = this.updateTargetEffective;

397422

return;

398423

}

399424

this.updateTargetEffective = this.options.updateTarget;

400425

this.updateExpectedNeedle = this.isExplicitPackageTarget(this.updateTargetEffective)

401426

? ""

402427

: resolveOpenClawRegistryVersion(this.updateTargetEffective) || this.updateTargetEffective;

428+

const metadata = this.resolveRegistryPackageMetadata(this.updateTargetEffective);

429+

this.updateTargetPackageVersion = metadata.version;

430+

this.updateTargetBuildCommit =

431+

metadata.gitHead || this.resolvePackageBuildCommit(metadata.tarball);

432+

this.updateTargetTarball = metadata.tarball;

433+

}

434+435+

private resolvePackageBuildCommit(tarball: string): string {

436+

if (!tarball) {

437+

return "";

438+

}

439+

const output = run(

440+

"bash",

441+

["-lc", `curl -fsSL ${shellQuote(tarball)} | tar -xzOf - package/dist/build-info.json`],

442+

{

443+

check: false,

444+

quiet: true,

445+

},

446+

).stdout.trim();

447+

if (!output) {

448+

return "";

449+

}

450+

try {

451+

const parsed = JSON.parse(output) as { commit?: string };

452+

return parsed.commit ? parsed.commit.slice(0, 7) : "";

453+

} catch {

454+

return "";

455+

}

456+

}

457+458+

private resolveRegistryPackageMetadata(target: string): {

459+

gitHead: string;

460+

tarball: string;

461+

version: string;

462+

} {

463+

if (this.isExplicitPackageTarget(target)) {

464+

return { gitHead: "", tarball: "", version: "" };

465+

}

466+

const spec = target.startsWith("openclaw@") ? target : `openclaw@${target}`;

467+

const output = run("npm", ["view", spec, "version", "dist.tarball", "gitHead", "--json"], {

468+

check: false,

469+

quiet: true,

470+

}).stdout.trim();

471+

if (!output) {

472+

return { gitHead: "", tarball: "", version: "" };

473+

}

474+

try {

475+

const parsed = JSON.parse(output) as {

476+

dist?: { tarball?: string };

477+

gitHead?: string;

478+

version?: string;

479+

};

480+

return {

481+

gitHead: parsed.gitHead ?? "",

482+

tarball: parsed.dist?.tarball ?? "",

483+

version: parsed.version ?? "",

484+

};

485+

} catch {

486+

return { gitHead: "", tarball: "", version: "" };

487+

}

403488

}

404489405490

private async runSameGuestUpdates(): Promise<void> {

@@ -900,6 +985,7 @@ class NpmUpdateSmoke {

900985

}

901986902987

private async writeSummary(): Promise<string> {

988+

const slowestTiming = this.timings.toSorted((a, b) => b.durationMs - a.durationMs)[0];

903989

const summary: NpmUpdateSummary = {

904990

currentHead: this.currentHeadShort,

905991

fresh: this.freshStatus,

@@ -915,7 +1001,18 @@ class NpmUpdateSmoke {

9151001

windows: { status: this.updateStatus.windows, version: this.updateVersion.windows },

9161002

},

9171003

timings: this.timings,

1004+

slowestTiming: slowestTiming

1005+

? {

1006+

durationMs: slowestTiming.durationMs,

1007+

label: slowestTiming.label,

1008+

phase: slowestTiming.phase,

1009+

}

1010+

: undefined,

1011+

totalDurationMs: Date.now() - this.startedAt,

9181012

updateExpected: this.updateExpectedNeedle,

1013+

updateTargetBuildCommit: this.updateTargetBuildCommit,

1014+

updateTargetPackageVersion: this.updateTargetPackageVersion,

1015+

updateTargetTarball: this.updateTargetTarball,

9191016

updateTarget: this.updateTargetEffective,

9201017

};

9211018

const summaryPath = path.join(this.runDir, "summary.json");

@@ -924,10 +1021,14 @@ class NpmUpdateSmoke {

9241021

lines: [

9251022

`- package spec: ${summary.packageSpec}`,

9261023

`- update target: ${summary.updateTarget}`,

1024+

`- update target package: ${summary.updateTargetPackageVersion || "unknown"}${summary.updateTargetBuildCommit ? ` (${summary.updateTargetBuildCommit})` : ""}`,

1025+

`- update target tarball: ${summary.updateTargetTarball || "n/a"}`,

9271026

`- update expected: ${summary.updateExpected}`,

9281027

`- fresh: macOS=${summary.fresh.macos}, Windows=${summary.fresh.windows}, Linux=${summary.fresh.linux}`,

9291028

`- update: macOS=${summary.update.macos.status} (${summary.update.macos.version}), Windows=${summary.update.windows.status} (${summary.update.windows.version}), Linux=${summary.update.linux.status} (${summary.update.linux.version})`,

9301029

`- fresh target: ${summary.freshTargetSpec || "skip"} macOS=${summary.freshTarget.macos}, Windows=${summary.freshTarget.windows}, Linux=${summary.freshTarget.linux}`,

1030+

`- wall clock: ${formatDuration(summary.totalDurationMs)}`,

1031+

`- slowest phase: ${summary.slowestTiming ? `${summary.slowestTiming.phase}/${summary.slowestTiming.label} ${formatDuration(summary.slowestTiming.durationMs)}` : "n/a"}`,

9311032

`- logs: ${summary.runDir}`,

9321033

],

9331034

summaryPath,