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

推荐订阅源

V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - Franky
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
小众软件
小众软件
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
C
Check Point Blog
WordPress大学
WordPress大学
博客园 - 【当耐特】
博客园 - 司徒正美
D
Docker

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(docker): seed lockfile snapshot tarballs before prune...
steipete · 2026-05-24 · via Recent Commits to openclaw:main

@@ -1,46 +1,102 @@

11

import { spawnSync } from "node:child_process";

2-

import { resolve } from "node:path";

3-

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

2+

import { mkdirSync, writeFileSync } from "node:fs";

3+

import { join, resolve } from "node:path";

4+

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

5+

import { cleanupTempDirs, makeTempRepoRoot } from "../helpers/temp-repo.js";

4657

const scriptPath = resolve("scripts/list-prod-store-packages.mjs");

8+

const tempDirs: string[] = [];

697-

function runListProdStorePackages(input: unknown) {

10+

function runListProdStorePackages(input: unknown, cwd = process.cwd()) {

811

return spawnSync(process.execPath, [scriptPath], {

12+

cwd,

913

encoding: "utf8",

1014

input: JSON.stringify(input),

1115

});

1216

}

13171418

describe("list-prod-store-packages", () => {

19+

afterEach(() => {

20+

cleanupTempDirs(tempDirs);

21+

});

22+1523

it("accepts pnpm list array output", () => {

16-

const result = runListProdStorePackages([

17-

{

18-

dependencies: {

19-

sourceMap: {

20-

from: "source-map",

21-

resolved: "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",

22-

version: "0.6.1",

24+

const cwd = makeTempRepoRoot(tempDirs, "openclaw-prod-store-packages-");

25+

const result = runListProdStorePackages(

26+

[

27+

{

28+

dependencies: {

29+

sourceMap: {

30+

from: "source-map",

31+

resolved: "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",

32+

version: "0.6.1",

33+

},

2334

},

2435

},

25-

},

26-

]);

36+

],

37+

cwd,

38+

);

27392840

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

2941

expect(result.stdout).toBe("source-map@0.6.1");

3042

});

31433244

it("accepts pnpm list object output", () => {

33-

const result = runListProdStorePackages({

34-

dependencies: {

35-

litSignals: {

36-

from: "@lit-labs/signals",

37-

resolved: "https://registry.npmjs.org/@lit-labs/signals/-/signals-0.1.3.tgz",

38-

version: "0.1.3",

45+

const cwd = makeTempRepoRoot(tempDirs, "openclaw-prod-store-packages-");

46+

const result = runListProdStorePackages(

47+

{

48+

dependencies: {

49+

litSignals: {

50+

from: "@lit-labs/signals",

51+

resolved: "https://registry.npmjs.org/@lit-labs/signals/-/signals-0.1.3.tgz",

52+

version: "0.1.3",

53+

},

3954

},

4055

},

41-

});

56+

cwd,

57+

);

42584359

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

4460

expect(result.stdout).toBe("@lit-labs/signals@0.1.3");

4561

});

62+63+

it("adds lockfile snapshot dependencies missing from pnpm list output", () => {

64+

const cwd = makeTempRepoRoot(tempDirs, "openclaw-prod-store-packages-");

65+

mkdirSync(join(cwd, "scripts"));

66+

writeFileSync(

67+

join(cwd, "pnpm-lock.yaml"),

68+

[

69+

"lockfileVersion: '10.0'",

70+

"",

71+

"packages:",

72+

" source-map-support@0.5.21:",

73+

" resolution: {integrity: sha512-test}",

74+

" source-map@0.6.1:",

75+

" resolution: {integrity: sha512-test}",

76+

"",

77+

"snapshots:",

78+

" source-map-support@0.5.21:",

79+

" dependencies:",

80+

" source-map: 0.6.1",

81+

" source-map@0.6.1: {}",

82+

"",

83+

].join("\n"),

84+

);

85+

const result = runListProdStorePackages(

86+

{

87+

dependencies: {

88+

sourceMapSupport: {

89+

from: "source-map-support",

90+

resolved:

91+

"https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",

92+

version: "0.5.21",

93+

},

94+

},

95+

},

96+

cwd,

97+

);

98+99+

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

100+

expect(result.stdout).toBe("source-map-support@0.5.21\nsource-map@0.6.1");

101+

});

46102

});