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

推荐订阅源

J
Java Code Geeks
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
MyScale Blog
MyScale Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
F
Fortinet All Blogs
小众软件
小众软件
D
Docker
U
Unit 42
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
有赞技术团队
有赞技术团队
腾讯CDC

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
docs(testbox): align maintainer testbox mode · openclaw/o...
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main

@@ -16,6 +16,19 @@ warm caches, local build state, and fast feedback.

16161717

Testbox is the expensive path. Reach for it deliberately.

181819+

OpenClaw maintainers can opt into Testbox-first validation by setting

20+

`OPENCLAW_TESTBOX=1` in their environment or standing agent rules. This mode is

21+

maintainers-only and requires Blacksmith access.

22+23+

When `OPENCLAW_TESTBOX=1` is set in OpenClaw:

24+25+

- Pre-warm a Testbox early for longer, wider, or uncertain work.

26+

- Prefer Testbox for `pnpm` gates, e2e, package-like proof, and broad suites.

27+

- Reuse the same Testbox ID for every run command in the same task/session.

28+

- Use local commands only when the task explicitly sets

29+

`OPENCLAW_LOCAL_CHECK_MODE=throttled|full`, or when the user asks for local

30+

proof.

31+1932

## Install the CLI

20332134

If `blacksmith` is not installed, install it:

@@ -81,17 +94,18 @@ Prefer Testbox when:

8194

- you are reproducing CI-only failures

8295

- you need the exact workflow image/job environment from GitHub Actions

839684-

For OpenClaw specifically, normal local iteration should stay local:

97+

For OpenClaw specifically, normal local iteration stays local unless maintainer

98+

Testbox mode is enabled with `OPENCLAW_TESTBOX=1`:

859986100

- `pnpm check:changed`

87101

- `pnpm test:changed`

88102

- `pnpm test <path-or-filter>`

89103

- `pnpm test:serial`

90104

- `pnpm build`

9110592-

Only use Testbox in OpenClaw when the user explicitly wants CI-parity or the

93-

check truly depends on remote secrets/services that the local repo loop cannot

94-

provide.

106+

If `OPENCLAW_TESTBOX=1` is enabled, run those same repo commands inside the

107+

warm Testbox. If the user wants laptop-friendly local proof for one command, use

108+

the explicit escape hatch `OPENCLAW_LOCAL_CHECK_MODE=throttled`.

9510996110

For installable-package product proof, prefer the GitHub `Package Acceptance`

97111

workflow over an ad hoc Testbox command. It resolves one package candidate

@@ -103,21 +117,35 @@ an older trusted branch, tag, or SHA.

103117104118

## Setup: Warmup before coding

105119106-

If you decided Testbox is actually warranted, warm one up early. This returns

107-

an ID instantly and boots the CI environment in the background while you work:

120+

If you decided Testbox is warranted, warm one up early. This returns an ID

121+

instantly and boots the CI environment in the background while you work:

108122109123

blacksmith testbox warmup ci-check-testbox.yml

110124

# → tbx_01jkz5b3t9...

111125112126

Save this ID. You need it for every `run` command.

113127128+

For OpenClaw maintainer Testbox mode, pre-warm at the start of longer or wider

129+

tasks:

130+131+

blacksmith testbox warmup ci-check-testbox.yml --ref main --idle-timeout 90

132+133+

Use the build-artifact warmup when e2e/package/build proof benefits from seeded

134+

`dist/`, `dist-runtime/`, and build-all caches:

135+136+

blacksmith testbox warmup ci-build-artifacts-testbox.yml --ref main --idle-timeout 90

137+114138

Warmup dispatches a GitHub Actions workflow that provisions a VM with the

115139

full CI environment: dependencies installed, services started, secrets

116140

injected, and a clean checkout of the repo at the default branch.

117141142+

In OpenClaw, raw commit SHAs are not reliable dispatch refs for `warmup --ref`;

143+

use a branch or tag. The build-artifact workflow resolves `openclaw@beta` and

144+

`openclaw@latest` to SHA cache keys internally.

145+118146

Options:

119147120-

--ref <branch> Git ref to dispatch against (default: repo's default branch)

148+

--ref <branch|tag> Git ref to dispatch against (default: repo's default branch)

121149

--job <name> Specific job within the workflow (if it has multiple)

122150

--idle-timeout <min> Idle timeout in minutes (default: 30)

123151

@@ -234,6 +262,11 @@ services, CI-only runners, or reproducibility against the workflow image.

234262235263

If the repo says local tests/builds are the normal path, follow the repo.

236264265+

OpenClaw maintainer exception: if `OPENCLAW_TESTBOX=1` is set by the user or

266+

agent environment, treat Testbox as the normal validation path for this repo.

267+

Use `OPENCLAW_LOCAL_CHECK_MODE=throttled|full` as the explicit local escape

268+

hatch.

269+237270

## When to use

238271239272

Use Testbox when:

@@ -250,12 +283,13 @@ checks that need parity or remote state.

250283251284

## Workflow

252285253-

1. Decide whether the repo's local loop is the right default.

254-

2. Only if Testbox is warranted, warm up early:

255-

`blacksmith testbox warmup ci-check-testbox.yml` → save the ID

286+

1. Decide whether the repo's local loop is the right default. For OpenClaw,

287+

`OPENCLAW_TESTBOX=1` makes Testbox the maintainer default.

288+

2. If Testbox is warranted, warm up early:

289+

`blacksmith testbox warmup ci-check-testbox.yml --ref main --idle-timeout 90` → save the ID

256290

3. Write code while the testbox boots in the background.

257291

4. Run the remote command when needed:

258-

`blacksmith testbox run --id <ID> "npm test"`

292+

`blacksmith testbox run --id <ID> "pnpm check:changed"`

259293

5. If tests fail, fix code and re-run against the same warm box.

260294

6. If you changed dependency manifests (package.json, etc.), prepend

261295

the install command: `blacksmith testbox run --id <ID> "npm install && npm test"`

@@ -276,9 +310,9 @@ Observed full-suite time on Blacksmith Testbox is about 3-4 minutes:

276310

- 173-180s on a warmed box

277311

- 219s on a fresh 32-vCPU box

278312279-

When validating before commit/push, run `pnpm check:changed` first when

280-

appropriate, then the full suite with the profile above if broad confidence is

281-

needed.

313+

When validating before commit/push in maintainer Testbox mode, run

314+

`pnpm check:changed` inside the warmed box first when appropriate, then the full

315+

suite with the profile above if broad confidence is needed.

282316283317

## Examples

284318

@@ -332,12 +366,14 @@ timeout is reached). Default timeout is 5m; use `--wait-timeout` for longer

332366

blacksmith testbox stop --id <ID>

333367334368

Testboxes automatically shut down after being idle (default: 30 minutes).

335-

If you need a longer session, increase the timeout at warmup time:

369+

If you need a longer session, increase the timeout at warmup time. For OpenClaw

370+

maintainer work, use 90 minutes for long-running sessions:

336371337-

blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60

372+

blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 90

373+

blacksmith testbox warmup ci-build-artifacts-testbox.yml --idle-timeout 90

338374339375

## With options

340376341377

blacksmith testbox warmup ci-check-testbox.yml --ref main

342-

blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60

378+

blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 90

343379

blacksmith testbox run --id <ID> "go test ./..."