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

推荐订阅源

The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
The Cloudflare Blog
G
Google Developers Blog
博客园_首页
Martin Fowler
Martin Fowler
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
D
Docker
C
Check Point Blog
T
Tailwind CSS Blog
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
GbyAI
GbyAI

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
fix(package): kill candidate resolver trees on windows · ...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main

@@ -5,7 +5,7 @@ import { access, mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promise

55

import { tmpdir } from "node:os";

66

import path from "node:path";

77

import { pathToFileURL } from "node:url";

8-

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

8+

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

99

import {

1010

ARTIFACT_TARBALL_SCAN_MAX_ENTRIES,

1111

assertExpectedSha256ForTest,

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

2020

readPackageBuildSourceSha,

2121

resolveNpmPackageCandidatePackRunner,

2222

runCommandForTest,

23+

signalChildProcessTree,

2324

validateOpenClawPackageSpec,

2425

} from "../../scripts/resolve-openclaw-package-candidate.mjs";

2526

@@ -214,6 +215,31 @@ describe("resolve-openclaw-package-candidate", () => {

214215

});

215216

});

216217218+

it("signals Windows package runner process trees with taskkill", () => {

219+

const child = {

220+

kill: vi.fn(),

221+

pid: 12345,

222+

};

223+

const runTaskkill = vi.fn(() => ({ error: undefined, status: 0 }));

224+225+

signalChildProcessTree(child, "SIGTERM", {

226+

platform: "win32",

227+

runTaskkill,

228+

});

229+

expect(runTaskkill).toHaveBeenNthCalledWith(1, "taskkill", ["/PID", "12345", "/T"], {

230+

stdio: "ignore",

231+

});

232+233+

signalChildProcessTree(child, "SIGKILL", {

234+

platform: "win32",

235+

runTaskkill,

236+

});

237+

expect(runTaskkill).toHaveBeenNthCalledWith(2, "taskkill", ["/PID", "12345", "/T", "/F"], {

238+

stdio: "ignore",

239+

});

240+

expect(child.kill).not.toHaveBeenCalled();

241+

});

242+217243

it("keeps npm pack filenames inside the package candidate output directory", async () => {

218244

const dir = await mkdtemp(path.join(tmpdir(), "openclaw-package-npm-pack-"));

219245

tempDirs.push(dir);

@@ -688,26 +714,30 @@ describe("resolve-openclaw-package-candidate", () => {

688714

const requestHeaders: Array<Record<string, string> | undefined> = [];

689715690716

try {

691-

await downloadUrl("https://packages.internal:8443/artifactory/openclaw/openclaw.tgz", target, {

692-

fetchImpl: async (_url: URL, init?: RequestInit) => {

693-

requestHeaders.push(init?.headers as Record<string, string> | undefined);

694-

if (requestHeaders.length === 1) {

695-

return new Response(null, {

696-

headers: {

697-

location: "https://mirror.internal:8443/artifactory/openclaw/openclaw.tgz",

698-

},

699-

status: 302,

717+

await downloadUrl(

718+

"https://packages.internal:8443/artifactory/openclaw/openclaw.tgz",

719+

target,

720+

{

721+

fetchImpl: async (_url: URL, init?: RequestInit) => {

722+

requestHeaders.push(init?.headers as Record<string, string> | undefined);

723+

if (requestHeaders.length === 1) {

724+

return new Response(null, {

725+

headers: {

726+

location: "https://mirror.internal:8443/artifactory/openclaw/openclaw.tgz",

727+

},

728+

status: 302,

729+

});

730+

}

731+

return new Response(new Uint8Array([4, 5, 6]), {

732+

headers: { "content-length": "3" },

733+

status: 200,

700734

});

701-

}

702-

return new Response(new Uint8Array([4, 5, 6]), {

703-

headers: { "content-length": "3" },

704-

status: 200,

705-

});

735+

},

736+

lookupHost: lookupAddresses([{ address: "10.0.0.8", family: 4 }]),

737+

maxBytes: 3,

738+

trustedSource,

706739

},

707-

lookupHost: lookupAddresses([{ address: "10.0.0.8", family: 4 }]),

708-

maxBytes: 3,

709-

trustedSource,

710-

});

740+

);

711741

} finally {

712742

if (previousToken === undefined) {

713743

delete process.env.OPENCLAW_TRUSTED_PACKAGE_TOKEN;