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

推荐订阅源

云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
爱范儿
爱范儿
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
有赞技术团队
有赞技术团队
博客园_首页
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园 - Franky
量子位
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence

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
ci: speed up package tarball validation · openclaw/opencl...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -6,8 +6,10 @@ import { spawnSync } from "node:child_process";

66

import fs from "node:fs";

77

import os from "node:os";

88

import path from "node:path";

9+

import { performance } from "node:perf_hooks";

910

import { LOCAL_BUILD_METADATA_DIST_PATHS } from "./lib/local-build-metadata-paths.mjs";

1011

import {

12+

collectPackageDistImports,

1113

collectPackageDistImportErrors,

1214

expandPackageDistImportClosure,

1315

} from "./lib/package-dist-imports.mjs";

@@ -29,20 +31,37 @@ if (!fs.existsSync(tarball)) {

2931

fail(`OpenClaw package tarball does not exist: ${tarball}`);

3032

}

313332-

const list = spawnSync("tar", ["-tf", tarball], {

33-

encoding: "utf8",

34-

stdio: ["ignore", "pipe", "pipe"],

35-

});

34+

const phaseTimingsEnabled = process.env.OPENCLAW_PACKAGE_TARBALL_CHECK_TIMINGS !== "0";

35+

function runPhase(label, action) {

36+

const startedAt = performance.now();

37+

try {

38+

return action();

39+

} finally {

40+

if (phaseTimingsEnabled) {

41+

const durationMs = Math.round(performance.now() - startedAt);

42+

console.error(`check-openclaw-package-tarball: ${label} completed in ${durationMs}ms`);

43+

}

44+

}

45+

}

46+47+

const list = runPhase("tar list", () =>

48+

spawnSync("tar", ["-tf", tarball], {

49+

encoding: "utf8",

50+

stdio: ["ignore", "pipe", "pipe"],

51+

}),

52+

);

3653

if (list.status !== 0) {

3754

fail(`tar -tf failed for ${tarball}: ${list.stderr || list.status}`);

3855

}

39564057

const extractDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-package-tarball-"));

4158

try {

42-

const extract = spawnSync("tar", ["-xf", tarball, "-C", extractDir], {

43-

encoding: "utf8",

44-

stdio: ["ignore", "pipe", "pipe"],

45-

});

59+

const extract = runPhase("tar extract", () =>

60+

spawnSync("tar", ["-xf", tarball, "-C", extractDir], {

61+

encoding: "utf8",

62+

stdio: ["ignore", "pipe", "pipe"],

63+

}),

64+

);

4665

if (extract.status !== 0) {

4766

fail(`tar -xf failed for ${tarball}: ${extract.stderr || extract.status}`);

4867

}

@@ -181,6 +200,7 @@ for (const forbiddenEntry of FORBIDDEN_LOCAL_BUILD_METADATA_FILES) {

181200

if (!entrySet.has("dist/postinstall-inventory.json")) {

182201

errors.push("missing dist/postinstall-inventory.json");

183202

}

203+

let packageDistImports = null;

184204

if (entrySet.has("dist/postinstall-inventory.json")) {

185205

try {

186206

const allowLegacyPrivateQaInventoryOmissions =

@@ -191,6 +211,12 @@ if (entrySet.has("dist/postinstall-inventory.json")) {

191211

} else {

192212

const normalizedInventory = inventory.map((entry) => entry.replace(/\\/gu, "/"));

193213

const normalizedInventorySet = new Set(normalizedInventory);

214+

packageDistImports = runPhase("dist import graph", () =>

215+

collectPackageDistImports({

216+

files: normalized,

217+

readText: readTarEntry,

218+

}),

219+

);

194220

for (const inventoryEntry of inventory) {

195221

const normalizedEntry = inventoryEntry.replace(/\\/gu, "/");

196222

if (!entrySet.has(normalizedEntry)) {

@@ -210,6 +236,7 @@ if (entrySet.has("dist/postinstall-inventory.json")) {

210236

files: normalized,

211237

seedFiles: normalizedInventory,

212238

readText: readTarEntry,

239+

imports: packageDistImports,

213240

});

214241

for (const importedEntry of expandedInventory) {

215242

if (!normalizedInventorySet.has(importedEntry)) {

@@ -230,6 +257,7 @@ errors.push(

230257

...collectPackageDistImportErrors({

231258

files: normalized,

232259

readText: readTarEntry,

260+

imports: packageDistImports ?? undefined,

233261

}),

234262

);

235263