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

推荐订阅源

Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
小众软件
小众软件
美团技术团队
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
D
Docker
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
B
Blog
雷峰网
雷峰网
The Cloudflare 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
ci: skip no-op changed-scope fanout · openclaw/openclaw@d...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -1,3 +1,4 @@

1+

import { execFileSync } from "node:child_process";

12

import fs from "node:fs";

23

import os from "node:os";

34

import path from "node:path";

@@ -19,6 +20,7 @@ const { detectChangedScope, listChangedPaths } =

1920

};

20212122

const markerPaths: string[] = [];

23+

const tempDirs: string[] = [];

22242325

afterEach(() => {

2426

for (const markerPath of markerPaths) {

@@ -27,8 +29,25 @@ afterEach(() => {

2729

} catch {}

2830

}

2931

markerPaths.length = 0;

32+

for (const tempDir of tempDirs) {

33+

fs.rmSync(tempDir, { force: true, recursive: true });

34+

}

35+

tempDirs.length = 0;

3036

});

313738+

function parseGitHubOutput(output: string): Record<string, string> {

39+

return Object.fromEntries(

40+

output

41+

.trim()

42+

.split("\n")

43+

.filter(Boolean)

44+

.map((line) => {

45+

const separator = line.indexOf("=");

46+

return [line.slice(0, separator), line.slice(separator + 1)];

47+

}),

48+

);

49+

}

50+3251

describe("detectChangedScope", () => {

3352

it("fails safe when no paths are provided", () => {

3453

expect(detectChangedScope([])).toEqual({

@@ -333,4 +352,33 @@ describe("detectChangedScope", () => {

333352

expect(() => listChangedPaths(injectedBase, "HEAD")).toThrow();

334353

expect(fs.existsSync(markerPath)).toBe(false);

335354

});

355+356+

it("keeps direct CLI preflight empty diffs as no-op scope", () => {

357+

const repoDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-ci-scope-empty-"));

358+

tempDirs.push(repoDir);

359+

const outputPath = path.join(repoDir, "github-output.txt");

360+

const scriptPath = path.resolve("scripts/ci-changed-scope.mjs");

361+362+

execFileSync("git", ["init", "-b", "main"], { cwd: repoDir });

363+

execFileSync("git", ["config", "user.email", "ci@example.invalid"], { cwd: repoDir });

364+

execFileSync("git", ["config", "user.name", "CI"], { cwd: repoDir });

365+

fs.writeFileSync(path.join(repoDir, "README.md"), "test\n", "utf8");

366+

execFileSync("git", ["add", "README.md"], { cwd: repoDir });

367+

execFileSync("git", ["commit", "-m", "test"], { cwd: repoDir });

368+369+

execFileSync(process.execPath, [scriptPath, "--base", "HEAD", "--head", "HEAD"], {

370+

cwd: repoDir,

371+

env: { ...process.env, GITHUB_OUTPUT: outputPath },

372+

});

373+374+

expect(parseGitHubOutput(fs.readFileSync(outputPath, "utf8"))).toEqual({

375+

run_node: "false",

376+

run_macos: "false",

377+

run_android: "false",

378+

run_windows: "false",

379+

run_skills_python: "false",

380+

run_changed_smoke: "false",

381+

run_control_ui_i18n: "false",

382+

});

383+

});

336384

});