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

推荐订阅源

D
Docker
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
H
Help Net Security
月光博客
月光博客
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
GbyAI
GbyAI
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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: validate published upgrade survivor baseline · open...
joshavant · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -30,7 +30,6 @@ export PATH="$npm_config_prefix/bin:$PATH"

3030
3131

SUMMARY_JSON="${OPENCLAW_UPGRADE_SURVIVOR_SUMMARY_JSON:-$ARTIFACT_ROOT/summary.json}"

3232

PHASE_LOG="$ARTIFACT_ROOT/phases.jsonl"

33-

: >"$PHASE_LOG"

3433

BASELINE_RAW="${OPENCLAW_UPGRADE_SURVIVOR_BASELINE:?missing OPENCLAW_UPGRADE_SURVIVOR_BASELINE}"

3534

CANDIDATE_KIND="${OPENCLAW_UPGRADE_SURVIVOR_CANDIDATE_KIND:-tarball}"

3635

CANDIDATE_SPEC="${OPENCLAW_UPGRADE_SURVIVOR_CANDIDATE_SPEC:-${OPENCLAW_CURRENT_PACKAGE_TGZ:-}}"

@@ -56,6 +55,17 @@ STATUS_ERR="$ARTIFACT_ROOT/status.err"

5655

BASELINE_CONFIG_VALIDATE_LOG="$ARTIFACT_ROOT/baseline-config-validate.log"

5756

CONFIG_COVERAGE_JSON="$ARTIFACT_ROOT/config-recipe.json"

5857

export OPENCLAW_UPGRADE_SURVIVOR_CONFIG_COVERAGE_JSON="$CONFIG_COVERAGE_JSON"

58+

rm -f "$SUMMARY_JSON" "$CONFIG_COVERAGE_JSON"

59+

: >"$PHASE_LOG"

60+
61+

validate_baseline_package_spec() {

62+

local spec="$1"

63+

if [[ "$spec" =~ ^openclaw@(beta|latest|[0-9]{4}\.[1-9][0-9]*\.[1-9][0-9]*(-[1-9][0-9]*|-beta\.[1-9][0-9]*)?)$ ]]; then

64+

return 0

65+

fi

66+

echo "OPENCLAW_UPGRADE_SURVIVOR_BASELINE must be openclaw@latest, openclaw@beta, an exact OpenClaw release version, or a bare release version; got: $spec" >&2

67+

return 1

68+

}

5969
6070

normalize_baseline() {

6171

local raw="${BASELINE_RAW//[[:space:]]/}"

@@ -90,6 +100,7 @@ normalize_baseline() {

90100

baseline_version_expected="1"

91101

;;

92102

esac

103+

validate_baseline_package_spec "$baseline_spec"

93104

}

94105
95106

json_event() {

Original file line numberDiff line numberDiff line change

@@ -8,6 +8,7 @@ const PACKAGE_JSON = "package.json";

88

const RELEASE_CHECKS_WORKFLOW = ".github/workflows/openclaw-release-checks.yml";

99

const FULL_RELEASE_VALIDATION_WORKFLOW = ".github/workflows/full-release-validation.yml";

1010

const QA_LIVE_TRANSPORTS_WORKFLOW = ".github/workflows/qa-live-transports-convex.yml";

11+

const UPGRADE_SURVIVOR_RUN_SCRIPT = "scripts/e2e/lib/upgrade-survivor/run.sh";

1112
1213

describe("package acceptance workflow", () => {

1314

it("resolves candidate package sources before reusing Docker E2E lanes", () => {

@@ -76,6 +77,7 @@ describe("package artifact reuse", () => {

7677

const workflow = readFileSync(LIVE_E2E_WORKFLOW, "utf8");

7778

const packageJson = readFileSync(PACKAGE_JSON, "utf8");

7879

const scheduler = readFileSync("scripts/test-docker-all.mjs", "utf8");

80+

const publishedUpgradeSurvivor = readFileSync(UPGRADE_SURVIVOR_RUN_SCRIPT, "utf8");

7981
8082

expect(workflow).toContain("package_artifact_name:");

8183

expect(workflow).toContain("package_artifact_run_id:");

@@ -115,6 +117,13 @@ describe("package artifact reuse", () => {

115117

'["OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC", baseEnv.OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC]',

116118

);

117119

expect(packageJson).toContain("OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1");

120+

expect(publishedUpgradeSurvivor).toContain("validate_baseline_package_spec");

121+

expect(publishedUpgradeSurvivor).toContain("openclaw@(beta|latest|");

122+

expect(

123+

publishedUpgradeSurvivor.indexOf('validate_baseline_package_spec "$baseline_spec"'),

124+

).toBeLessThan(

125+

publishedUpgradeSurvivor.indexOf('npm install -g --prefix "$npm_config_prefix"'),

126+

);

118127

});

119128
120129

it("bounds shared Docker image pulls so package acceptance cannot stall forever", () => {

Original file line numberDiff line numberDiff line change

@@ -21,6 +21,12 @@ describe("resolve-openclaw-package-candidate", () => {

2121

expect(() => validateOpenClawPackageSpec("openclaw@2026.04.27")).toThrow(

2222

"package_spec must be openclaw@beta",

2323

);

24+

expect(() => validateOpenClawPackageSpec("openclaw@npm:other-package")).toThrow(

25+

"package_spec must be openclaw@beta",

26+

);

27+

expect(() => validateOpenClawPackageSpec("openclaw@file:../other-package.tgz")).toThrow(

28+

"package_spec must be openclaw@beta",

29+

);

2430

});

2531
2632

it("parses optional empty workflow inputs without rejecting the command line", () => {