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

推荐订阅源

V
V2EX
P
Proofpoint News Feed
D
DataBreaches.Net
C
Check Point Blog
L
LangChain Blog
量子位
美团技术团队
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
腾讯CDC
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale

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(test): route release wrapper scripts · openclaw/openc...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -961,14 +961,35 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([

961961

"scripts/openclaw-release-clawhub-runtime-state.ts",

962962

["test/scripts/openclaw-release-clawhub-runtime-state.test.ts"],

963963

],

964+

[

965+

"scripts/openclaw-release-clawhub-plan.ts",

966+

["test/scripts/release-wrapper-scripts.test.ts"],

967+

],

964968

[

965969

"scripts/plan-release-workflow-matrix.mjs",

966970

["test/scripts/release-workflow-matrix-plan.test.ts"],

967971

],

972+

[

973+

"scripts/plugin-clawhub-release-check.ts",

974+

["test/scripts/release-wrapper-scripts.test.ts"],

975+

],

976+

[

977+

"scripts/plugin-clawhub-release-plan.ts",

978+

["test/scripts/release-wrapper-scripts.test.ts"],

979+

],

980+

[

981+

"scripts/plugin-npm-release-check.ts",

982+

["test/scripts/release-wrapper-scripts.test.ts"],

983+

],

984+

[

985+

"scripts/plugin-npm-release-plan.ts",

986+

["test/scripts/release-wrapper-scripts.test.ts"],

987+

],

968988

[

969989

"scripts/plugin-release-pretag-pack-check.ts",

970990

["test/scripts/plugin-release-pretag-pack-check.test.ts"],

971991

],

992+

["scripts/release-verify-beta.ts", ["test/scripts/release-wrapper-scripts.test.ts"]],

972993

[

973994

"scripts/validate-release-publish-approval.mjs",

974995

["test/scripts/validate-release-publish-approval.test.ts"],

Original file line numberDiff line numberDiff line change

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

1+

// Release wrapper script tests keep changed-target routing tied to scripts that load the wrappers.

2+

import { spawnSync } from "node:child_process";

3+

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

4+
5+

const UNKNOWN_PACKAGE = "@openclaw/not-a-real-release-wrapper-test-package";

6+
7+

function runTsxScript(scriptPath: string, args: string[]) {

8+

return spawnSync(process.execPath, ["--import", "tsx", scriptPath, ...args], {

9+

cwd: process.cwd(),

10+

encoding: "utf8",

11+

});

12+

}

13+
14+

describe("release wrapper scripts", () => {

15+

it("runs plugin release wrapper CLIs and rejects unknown explicit selections", () => {

16+

for (const scriptPath of [

17+

"scripts/plugin-npm-release-plan.ts",

18+

"scripts/plugin-npm-release-check.ts",

19+

"scripts/plugin-clawhub-release-plan.ts",

20+

"scripts/plugin-clawhub-release-check.ts",

21+

]) {

22+

const result = runTsxScript(scriptPath, ["--plugins", UNKNOWN_PACKAGE]);

23+
24+

expect(result.status, scriptPath).toBe(1);

25+

expect(result.stderr, scriptPath).toContain(

26+

`Unknown or non-publishable plugin package selection: ${UNKNOWN_PACKAGE}.`,

27+

);

28+

expect(result.stdout, scriptPath).toBe("");

29+

}

30+

});

31+
32+

it("loads the OpenClaw ClawHub plan CLI and validates required arguments before planning", () => {

33+

const result = runTsxScript("scripts/openclaw-release-clawhub-plan.ts", [

34+

"--release-tag",

35+

"v2026.6.21-beta.1",

36+

"--release-publish-run-id",

37+

"123",

38+

]);

39+
40+

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

41+

expect(result.stderr).toContain("--release-publish-branch is required.");

42+

expect(result.stdout).toBe("");

43+

});

44+
45+

it("loads the beta verifier CLI and validates required version input before remote checks", () => {

46+

const result = runTsxScript("scripts/release-verify-beta.ts", ["--skip-clawhub"]);

47+
48+

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

49+

expect(result.stderr).toContain("Usage: pnpm release:verify-beta -- <version>");

50+

expect(result.stdout).toBe("");

51+

});

52+

});

Original file line numberDiff line numberDiff line change

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

19311931

"scripts/openclaw-release-clawhub-runtime-state.ts",

19321932

["test/scripts/openclaw-release-clawhub-runtime-state.test.ts"],

19331933

],

1934+

[

1935+

"scripts/openclaw-release-clawhub-plan.ts",

1936+

["test/scripts/release-wrapper-scripts.test.ts"],

1937+

],

19341938

["scripts/lib/openclaw-release-clawhub-plan.ts", ["test/plugin-clawhub-release.test.ts"]],

19351939

[

19361940

"scripts/lib/plugin-clawhub-release.ts",

@@ -1940,6 +1944,22 @@ describe("scripts/test-projects changed-target routing", () => {

19401944

"scripts/lib/plugin-npm-release.ts",

19411945

["test/plugin-npm-release.test.ts", "test/plugin-clawhub-release.test.ts"],

19421946

],

1947+

[

1948+

"scripts/plugin-clawhub-release-check.ts",

1949+

["test/scripts/release-wrapper-scripts.test.ts"],

1950+

],

1951+

[

1952+

"scripts/plugin-clawhub-release-plan.ts",

1953+

["test/scripts/release-wrapper-scripts.test.ts"],

1954+

],

1955+

[

1956+

"scripts/plugin-npm-release-check.ts",

1957+

["test/scripts/release-wrapper-scripts.test.ts"],

1958+

],

1959+

[

1960+

"scripts/plugin-npm-release-plan.ts",

1961+

["test/scripts/release-wrapper-scripts.test.ts"],

1962+

],

19431963

[

19441964

"scripts/plugin-release-pretag-pack-check.ts",

19451965

["test/scripts/plugin-release-pretag-pack-check.test.ts"],

@@ -1948,6 +1968,7 @@ describe("scripts/test-projects changed-target routing", () => {

19481968

"scripts/plan-release-workflow-matrix.mjs",

19491969

["test/scripts/release-workflow-matrix-plan.test.ts"],

19501970

],

1971+

["scripts/release-verify-beta.ts", ["test/scripts/release-wrapper-scripts.test.ts"]],

19511972

[

19521973

"scripts/validate-release-publish-approval.mjs",

19531974

["test/scripts/validate-release-publish-approval.test.ts"],