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

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

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
chore: separate commit formatting from changed gate · ope...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -64,11 +64,6 @@ describe("git-hooks/pre-commit (integration)", () => {

64646565

// Use the real hook script and lightweight helper stubs.

6666

const fakeBinDir = installPreCommitFixture(dir);

67-

// The hook can end with `pnpm check:changed --staged`, but this fixture is only

68-

// exercising staged-file handling.

69-

// Stub pnpm too so Windows CI does not invoke a real package-manager command in the temp repo.

70-

writeExecutable(fakeBinDir, "pnpm", "#!/usr/bin/env bash\nexit 0\n");

71-7267

// Create an untracked file that should NOT be staged by the hook.

7368

writeFileSync(path.join(dir, "secret.txt"), "do-not-stage\n", "utf8");

7469

@@ -85,8 +80,8 @@ describe("git-hooks/pre-commit (integration)", () => {

8580

expect(staged).toEqual(["--all"]);

8681

});

878288-

it("runs changed-scope check for non-doc staged changes", () => {

89-

const dir = makeTempRepoRoot(tempDirs, "openclaw-pre-commit-check-changed-");

83+

it("does not run the changed-scope check for non-doc staged changes", () => {

84+

const dir = makeTempRepoRoot(tempDirs, "openclaw-pre-commit-no-check-changed-");

9085

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

91869287

const fakeBinDir = installPreCommitFixture(dir);

@@ -95,7 +90,7 @@ describe("git-hooks/pre-commit (integration)", () => {

9590

writeExecutable(

9691

fakeBinDir,

9792

"pnpm",

98-

"#!/usr/bin/env bash\nprintf '%s\\n' \"$*\" > pnpm-args.txt\n",

93+

"#!/usr/bin/env bash\necho 'pnpm should not run from pre-commit' >&2\nexit 99\n",

9994

);

1009510196

writeFileSync(path.join(dir, "tracked.txt"), "hello\n", "utf8");

@@ -105,11 +100,11 @@ describe("git-hooks/pre-commit (integration)", () => {

105100

PATH: `${fakeBinDir}:${process.env.PATH ?? ""}`,

106101

});

107102108-

expect(run(dir, "cat", ["pnpm-args.txt"])).toBe("check:changed --staged");

103+

expect(run(dir, "git", ["diff", "--cached", "--name-only"])).toBe("tracked.txt");

109104

});

110105111-

it("skips changed-scope check when FAST_COMMIT is enabled", () => {

112-

const dir = makeTempRepoRoot(tempDirs, "openclaw-pre-commit-yolo-");

106+

it("ignores FAST_COMMIT because the hook is already formatting-only", () => {

107+

const dir = makeTempRepoRoot(tempDirs, "openclaw-pre-commit-fast-");

113108

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

114109115110

const fakeBinDir = installPreCommitFixture(dir);

@@ -125,13 +120,11 @@ describe("git-hooks/pre-commit (integration)", () => {

125120

writeFileSync(path.join(dir, "tracked.txt"), "hello\n", "utf8");

126121

run(dir, "git", ["add", "--", "tracked.txt"]);

127122128-

const output = run(dir, "bash", ["git-hooks/pre-commit"], {

123+

run(dir, "bash", ["git-hooks/pre-commit"], {

129124

PATH: `${fakeBinDir}:${process.env.PATH ?? ""}`,

130125

FAST_COMMIT: "1",

131126

});

132127133-

expect(output).toContain(

134-

"FAST_COMMIT enabled: skipping changed-scope check in pre-commit hook.",

135-

);

128+

expect(run(dir, "git", ["diff", "--cached", "--name-only"])).toBe("tracked.txt");

136129

});

137130

});