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

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 【当耐特】
H
Help Net Security
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
Y
Y Combinator Blog
C
Check Point Blog
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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: include deleted files in changed lanes · openclaw/op...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -1,5 +1,5 @@

11

import { execFileSync } from "node:child_process";

2-

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

2+

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

33

import path from "node:path";

44

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

55

import {

@@ -83,6 +83,85 @@ describe("scripts/changed-lanes", () => {

8383

});

8484

});

858586+

it("includes deleted worktree files in the default local diff", () => {

87+

const dir = makeTempRepoRoot(tempDirs, "openclaw-changed-lanes-deleted-");

88+

git(dir, ["init", "-q", "--initial-branch=main"]);

89+

mkdirSync(path.join(dir, "src", "shared"), { recursive: true });

90+

writeFileSync(

91+

path.join(dir, "src", "shared", "obsolete.ts"),

92+

"export const value = 1;\n",

93+

"utf8",

94+

);

95+

git(dir, ["add", "src/shared/obsolete.ts"]);

96+

git(dir, [

97+

"-c",

98+

"user.email=test@example.com",

99+

"-c",

100+

"user.name=Test User",

101+

"commit",

102+

"-q",

103+

"-m",

104+

"initial",

105+

]);

106+107+

unlinkSync(path.join(dir, "src", "shared", "obsolete.ts"));

108+109+

const output = execFileSync(

110+

process.execPath,

111+

[path.join(repoRoot, "scripts", "changed-lanes.mjs"), "--json", "--base", "HEAD"],

112+

{

113+

cwd: dir,

114+

encoding: "utf8",

115+

env: createNestedGitEnv(),

116+

},

117+

);

118+119+

expect(JSON.parse(output)).toMatchObject({

120+

paths: ["src/shared/obsolete.ts"],

121+

lanes: { core: true, coreTests: true },

122+

});

123+

});

124+125+

it("includes deleted staged files in the staged diff", () => {

126+

const dir = makeTempRepoRoot(tempDirs, "openclaw-changed-lanes-staged-deleted-");

127+

git(dir, ["init", "-q", "--initial-branch=main"]);

128+

mkdirSync(path.join(dir, "src", "shared"), { recursive: true });

129+

writeFileSync(

130+

path.join(dir, "src", "shared", "obsolete.ts"),

131+

"export const value = 1;\n",

132+

"utf8",

133+

);

134+

git(dir, ["add", "src/shared/obsolete.ts"]);

135+

git(dir, [

136+

"-c",

137+

"user.email=test@example.com",

138+

"-c",

139+

"user.name=Test User",

140+

"commit",

141+

"-q",

142+

"-m",

143+

"initial",

144+

]);

145+146+

unlinkSync(path.join(dir, "src", "shared", "obsolete.ts"));

147+

git(dir, ["add", "src/shared/obsolete.ts"]);

148+149+

const output = execFileSync(

150+

process.execPath,

151+

[path.join(repoRoot, "scripts", "changed-lanes.mjs"), "--json", "--staged"],

152+

{

153+

cwd: dir,

154+

encoding: "utf8",

155+

env: createNestedGitEnv(),

156+

},

157+

);

158+159+

expect(JSON.parse(output)).toMatchObject({

160+

paths: ["src/shared/obsolete.ts"],

161+

lanes: { core: true, coreTests: true },

162+

});

163+

});

164+86165

it("ignores the explicit path separator", () => {

87166

const result = detectChangedLanes(["--", "scripts/test-live-acp-bind-docker.sh"]);

88167