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

推荐订阅源

Martin Fowler
Martin Fowler
Jina AI
Jina AI
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
I
InfoQ
L
LangChain Blog
The Cloudflare Blog
IT之家
IT之家
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
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
fix(scripts): detect shell-wrapped changed gates · opencl...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -1117,6 +1117,28 @@ describe("scripts/crabbox-wrapper", () => {

11171117

expectGroupedShellCommand(remoteCommand, shellScript);

11181118

});

111911191120+

it("preserves macOS JS and Git bootstraps for shell-wrapped sparse changed gates", () => {

1121+

const shellScript = "bash -lc 'pnpm check:changed'";

1122+

const result = runWrapper(

1123+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1124+

["run", "--provider", "aws", "--target", "macos", "--shell", "--", shellScript],

1125+

{

1126+

gitResponses: {

1127+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1128+

["status\u0000--porcelain=v1"]: { stdout: "" },

1129+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1130+

},

1131+

},

1132+

);

1133+1134+

const output = parseFakeCrabboxOutput(result);

1135+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1136+

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

1137+

expect(remoteCommand).toContain("git init -q");

1138+

expect(remoteCommand).toContain("openclaw_crabbox_bootstrap_macos_js");

1139+

expectGroupedShellCommand(remoteCommand, shellScript);

1140+

});

1141+11201142

it("preserves sparse changed-gate Git bootstrap for assignment-prefix command substitutions", () => {

11211143

const shellScript = "TOOL_ROOT=$(pwd) pnpm check:changed";

11221144

const result = runWrapper(

@@ -1159,6 +1181,94 @@ describe("scripts/crabbox-wrapper", () => {

11591181

expect(remoteCommand).toContain(`&& ${shellScript}`);

11601182

});

116111831184+

it("preserves sparse changed-gate Git bootstrap for bash -lc shell commands", () => {

1185+

const shellScript =

1186+

"env CI=1 NODE_OPTIONS=--max-old-space-size=4096 bash -lc 'set -euo pipefail; pnpm check:changed'";

1187+

const result = runWrapper(

1188+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1189+

["run", "--provider", "aws", "--shell", "--", shellScript],

1190+

{

1191+

gitResponses: {

1192+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1193+

["status\u0000--porcelain=v1"]: { stdout: "" },

1194+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1195+

},

1196+

},

1197+

);

1198+1199+

const output = parseFakeCrabboxOutput(result);

1200+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1201+

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

1202+

expect(remoteCommand).toContain("git init -q");

1203+

expect(remoteCommand).toContain(

1204+

"git fetch -q --depth=1 origin abc123:refs/remotes/origin/main",

1205+

);

1206+

expect(remoteCommand).toContain(`&& ${shellScript}`);

1207+

});

1208+1209+

it("preserves sparse changed-gate Git bootstrap for shell option values before -c", () => {

1210+

const shellScript = "bash -o pipefail -c 'pnpm check:changed'";

1211+

const result = runWrapper(

1212+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1213+

["run", "--provider", "aws", "--shell", "--", shellScript],

1214+

{

1215+

gitResponses: {

1216+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1217+

["status\u0000--porcelain=v1"]: { stdout: "" },

1218+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1219+

},

1220+

},

1221+

);

1222+1223+

const output = parseFakeCrabboxOutput(result);

1224+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1225+

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

1226+

expect(remoteCommand).toContain("git init -q");

1227+

expect(remoteCommand).toContain(`&& ${shellScript}`);

1228+

});

1229+1230+

it("preserves sparse changed-gate Git bootstrap for attached shell option values before -c", () => {

1231+

const shellScript = "bash --rcfile=./ci.bashrc -c 'pnpm check:changed'";

1232+

const result = runWrapper(

1233+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1234+

["run", "--provider", "aws", "--shell", "--", shellScript],

1235+

{

1236+

gitResponses: {

1237+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1238+

["status\u0000--porcelain=v1"]: { stdout: "" },

1239+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1240+

},

1241+

},

1242+

);

1243+1244+

const output = parseFakeCrabboxOutput(result);

1245+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1246+

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

1247+

expect(remoteCommand).toContain("git init -q");

1248+

expect(remoteCommand).toContain(`&& ${shellScript}`);

1249+

});

1250+1251+

it("preserves sparse changed-gate Git bootstrap for grouped shell options before -c", () => {

1252+

const shellScript = "bash -eo pipefail -c 'pnpm check:changed'";

1253+

const result = runWrapper(

1254+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1255+

["run", "--provider", "aws", "--shell", "--", shellScript],

1256+

{

1257+

gitResponses: {

1258+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1259+

["status\u0000--porcelain=v1"]: { stdout: "" },

1260+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1261+

},

1262+

},

1263+

);

1264+1265+

const output = parseFakeCrabboxOutput(result);

1266+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1267+

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

1268+

expect(remoteCommand).toContain("git init -q");

1269+

expect(remoteCommand).toContain(`&& ${shellScript}`);

1270+

});

1271+11621272

it("preserves sparse changed-gate Git bootstrap for absolute time-prefixed shell commands", () => {

11631273

const shellScript = "/usr/bin/time -l pnpm check:changed";

11641274

const result = runWrapper(