← 返回列表
全部 Skill›工具 Tools›openclaw-testing

openclaw-testing

作者 @openclaw · 语言 en
Choose, run, rerun, or debug OpenClaw tests, CI checks, Docker E2E lanes, release validation, and the cheapest safe verification path.
工具 Tools调试工具通用访问网络待翻译
最近源活动
2026-11-21 23:32
检测 SKILL.md 语言
en
星标 ★
395,109
分支 Fork
82,939
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

OpenClaw Testing

Proof policy

  • PR CI = default broad proof. Change builds + focused tests pass → open

ready PR. CI runs broad suites; never delay PR for pre-PR suite runs.

  • Build unavailable before publication: when publication is already authorized,

remote capacity is unavailable, and local execution is unqualified, push/open a

draft PR with the exact missing build and capacity gap recorded. Defer that build

to exact-head CI. Require its success before marking ready or merging. This

changes proof timing only, not publication authority, source trust, credentials,

owner approval, or merge gates.

Automatic CI skips drafts. For a trusted canonical PR targeting main, use

scripts/pr ci-dispatch <PR>. This maintainer-only route binds the pushed head

and selects PR-shaped CI through the existing workflow qualification.

Verify the selected checkout SHA and successful build-artifacts job cover the

required build. CI's build:ci-artifacts omits full declaration emission. Keep

uncovered proof pending. A skipped job or workflow-ref SHA is not build proof.

Link the run in the PR, then use normal ready-PR CI and landing gates.

Untrusted source keeps its secretless route.

  • Before PR, prove narrowly: touched tests with

pnpm test <file> --maxWorkers=1, targeted typecheck, lint, format.

Prefer local proof for trusted, bounded work when dependencies and current

host capacity are qualified. Local execution is optional: a focused command

can still load a large compiler graph or expand to broad lanes.

  • Choose remote proof deliberately. Use PR CI for broad proof; Crabbox/Testbox

may cover expensive checks, a busy or unqualified local host, another OS/device,

live providers/channels, long E2E, or heavy benchmarks. Acquire only when the

command is ready and capacity is granted promptly. If queued, stop only the

task-owned allocation; use PR CI or a safe local scope. Keep uncovered

platform-specific proof pending. Never force heavy work onto a busy machine

or chain providers. Use the smallest profile proven for the selected workload.

  • Never rerun or re-push just for green. Fix real failures; read available

CI failure classification before attributing red.

  • Prove changed contract, complete required gates, finish. Broaden/repeat only for

changed inputs, failures, or named unresolved risk.

  • Follow scoped AGENTS.md; authoring/reviewing tests: use

boundary guide

and test-audit.

Select the proof

  • Select proof for touched contract; reuse valid proof (rerun for changed inputs or missing coverage); finish workflow's required gates within user/host limits; report unrun checks and gaps. Prove user-visible behavior through real flow when feasible; external APIs need live contract proof; isolated mock-Gateway harness = valid channel boundary proof. Docs-only: docs sanity and git diff --check.
  • Runtime defect: reproduce real entry point; rerun it + relevant siblings.
  • Trusted source: pnpm changed:lanes --json, focused tests + targeted typecheck/lint/format; pnpm check:changed = optional smart local check.
  • Public SDK/plugin contract: representative consumers, not all-plugin sweep.
  • Build output, lazy imports, package boundaries: include pnpm build or the

repository CI build that covers the changed contract. Record uncovered

packaging/platform/declaration requirements. Required full package or release

builds still need their matching proof.

  • Workflow: git diff --check + pnpm check:workflows.
  • Docs only: relevant docs/link/format checks + git diff --check; no runtime tests.
  • Read on demand: local commands,

Crabbox, OpenClaw remote setup,

package/Docker proof,

release CI,

plugin release matrix,

Docker authoring, channel skill/

Control UI E2E/iOS E2E.

  • An isolated mock-Gateway harness is valid channel boundary proof; state live

gaps. Prove user-visible behavior through the real flow when feasible;

external APIs require live contract proof. Read the scoped channel/platform

guide for live-channel or native-app work. Telegram claims require

Test Server userbot proof with Convex-leased credentials.

Platform claims require real-device evidence; macOS permission proof requires

a stable signed app.

  • Release proof: preserve candidate/Tooling SHAs; never grants publication authority.

Source and state boundaries

  • Never execute untrusted contributor/fork code, wrappers, config locally.

Use secretless fork CI or sanitized direct AWS through Crabbox; never

credential-hydrated Testbox. Credentialed execution: maintainer approval after

review required; never hydrate untrusted lease.

  • Isolated state + free port. Never restart, edit, or test operator Gateway/real

data without explicit per-task approval. Preserve unrelated processes and

shared dependency installs.

  • Concurrent test/check commands: separate OPENCLAW_VITEST_FS_MODULE_CACHE_PATH

values or run serially; checks can run Vitest too. Repository wrappers only,

never raw Vitest. Prepared linked worktrees: `node scripts/run-vitest.mjs <file>

--maxWorkers=1` avoids pnpm reconciliation; PR CI runs the broad checks.

CI failures

  • PR CI fails → pnpm test:ci-failed <pr>; read pre-existing/new/unknown classification.
  • Fix
评论
Oopenclaw
openclaw
openclaw/openclaw
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@openclaw
所属大类工具 Tools / 调试工具
国内可用性通用
最近源活动2026-11-21 23:32
风险提示访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。