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

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
月光博客
月光博客
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
博客园 - 司徒正美
V
Visual Studio Blog
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
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
test(scripts): route pr wrapper scripts · openclaw/opencl...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1061,6 +1061,10 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([

10611061

["scripts/run-node.mjs", ["src/infra/run-node.test.ts"]],

10621062

["scripts/committer", ["test/scripts/committer.test.ts"]],

10631063

["scripts/gh-read", ["test/scripts/gh-read.test.ts"]],

1064+

["scripts/pr", ["test/scripts/pr-wrappers.test.ts"]],

1065+

["scripts/pr-merge", ["test/scripts/pr-wrappers.test.ts"]],

1066+

["scripts/pr-prepare", ["test/scripts/pr-wrappers.test.ts"]],

1067+

["scripts/pr-review", ["test/scripts/pr-wrappers.test.ts"]],

10641068

["scripts/setup-auth-system.sh", ["test/scripts/test-projects.test.ts"]],

10651069

["scripts/ci-run-timings.mjs", ["test/scripts/ci-run-timings.test.ts"]],

10661070

["scripts/docker-e2e.mjs", ["test/scripts/docker-e2e-helper-cli.test.ts"]],

@@ -1574,6 +1578,7 @@ const TOOLING_TEST_TARGETS = new Map([

15741578

"test/scripts/plugin-prerelease-test-plan.test.ts",

15751579

["test/scripts/plugin-prerelease-test-plan.test.ts"],

15761580

],

1581+

["test/scripts/pr-wrappers.test.ts", ["test/scripts/pr-wrappers.test.ts"]],

15771582

["test/scripts/test-projects.test.ts", ["test/scripts/test-projects.test.ts"]],

15781583

[

15791584

"test/scripts/vitest-local-scheduling.test.ts",

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,52 @@

1+

// PR wrapper tests cover maintainer helper command delegation.

2+

import { readFileSync } from "node:fs";

3+

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

4+
5+

function readScript(path: string): string {

6+

return readFileSync(path, "utf8");

7+

}

8+
9+

describe("scripts/pr wrappers", () => {

10+

it("keeps the main PR helper usage and command table aligned", () => {

11+

const script = readScript("scripts/pr");

12+
13+

expect(script).toContain("export NO_COLOR=1");

14+

expect(script).toContain("unset COLORTERM");

15+

expect(script).toContain("scripts/pr review-init <PR>");

16+

expect(script).toContain("scripts/pr prepare-run <PR>");

17+

expect(script).toContain("scripts/pr merge-run <PR>");

18+

expect(script).toContain('review_init "$pr"');

19+

expect(script).toContain('prepare_run "$pr"');

20+

expect(script).toContain('merge_run "$pr"');

21+

});

22+
23+

it("keeps merge wrapper modes delegated to the main PR helper", () => {

24+

const script = readScript("scripts/pr-merge");

25+
26+

expect(script).toContain("scripts/pr-merge <PR>");

27+

expect(script).toContain('exec "$base" merge-verify "$1"');

28+

expect(script).toContain('exec "$base" merge-verify "$pr"');

29+

expect(script).toContain('exec "$base" merge-run "$pr"');

30+

});

31+
32+

it("keeps prepare wrapper modes delegated to the main PR helper", () => {

33+

const script = readScript("scripts/pr-prepare");

34+
35+

expect(script).toContain("scripts/pr-prepare <init|validate-commit|gates|push|run> <PR>");

36+

for (const mode of ["init", "validate-commit", "gates", "push", "run"]) {

37+

expect(script).toContain(`${mode})`);

38+

}

39+

expect(script).toContain('exec "$base" prepare-init "$pr"');

40+

expect(script).toContain('exec "$base" prepare-validate-commit "$pr"');

41+

expect(script).toContain('exec "$base" prepare-gates "$pr"');

42+

expect(script).toContain('exec "$base" prepare-push "$pr"');

43+

expect(script).toContain('exec "$base" prepare-run "$pr"');

44+

});

45+
46+

it("keeps review wrapper delegated to review-init", () => {

47+

const script = readScript("scripts/pr-review");

48+
49+

expect(script).toContain('base="$script_dir/pr"');

50+

expect(script).toContain('exec "$base" review-init "$@"');

51+

});

52+

});

Original file line numberDiff line numberDiff line change

@@ -1361,6 +1361,10 @@ describe("scripts/test-projects changed-target routing", () => {

13611361

const expectedTargets = new Map([

13621362

["scripts/committer", ["test/scripts/committer.test.ts"]],

13631363

["scripts/gh-read", ["test/scripts/gh-read.test.ts"]],

1364+

["scripts/pr", ["test/scripts/pr-wrappers.test.ts"]],

1365+

["scripts/pr-merge", ["test/scripts/pr-wrappers.test.ts"]],

1366+

["scripts/pr-prepare", ["test/scripts/pr-wrappers.test.ts"]],

1367+

["scripts/pr-review", ["test/scripts/pr-wrappers.test.ts"]],

13641368

]);

13651369
13661370

for (const [source, targets] of expectedTargets) {