enterprise-testing
Select proportional Enterprise validation and diagnose exact CI runs, distinguishing product, harness, infrastructure, and credential failures.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 469
- Forks
- 117
01 前言 Front Matter
- name
- enterprise-testing
- description
- Select proportional Enterprise validation and diagnose exact CI runs, distinguishing product, harness, infrastructure, and credential failures.
03 SKILL.md 正文
Enterprise Testing
Prove the changed contract with the smallest meaningful check, complete required checks, then stop. Broaden or repeat for new changes, failures, or unresolved risks. Use test-audit when authoring or reviewing tests; do not create tests that merely mirror a reversible documentation or style edit.
Read the touched scope's AGENTS.md and the selected
testing guide. Run commands from the repository
root. Use Node.js 24 or newer and repository-pinned pnpm with matching installed
dependencies. Report missing prerequisites; dependency-independent checks prove only
their own scope. Never run npm run precommit.
Select proof
| Changed contract | Starting proof and owner |
|---|---|
| Domain or Driver behavior | node --test tests/conformance/<name>.test.mjs; broaden to pnpm test:conformance when relevant. |
| API or controller behavior | node --test tests/integration/<name>.test.mjs; broaden to pnpm test:integration. See local checks. |
| PostgreSQL persistence | pnpm test:postgres after the database prerequisites; use the actual database for persisted invariants. |
| Docker runtime | pnpm docker:test with explicit selectors, images, and credentials from Docker testing. |
| Kubernetes | Select the exact fixture or runtime file from Kubernetes testing, with its disposable cluster and database prerequisites. |
| Console UI | pnpm test:console-browser with the prepared browser described in browser testing. |
| Types, package boundaries, generated API | pnpm typecheck (builds packages and checks test types); pnpm openapi:check for API changes. |
| Documentation or skills | pnpm docs:check, relevant links, and git diff --check; no runtime tests solely for prose changes. |
| CI or test selection | node scripts/ci/run-tests.ts audit; inspect CI ownership, and use actionlint for workflow edits when available. |
Run pnpm check:workspace and applicable pnpm format:check with the installed
graph. The root formatter does not include .agents/skills/**/*.md; inspect
adapted skill Markdown separately. Keep autoreview implementation and test changes in openclaw/agent-skills.
Use the local checks guide for formatting and
generated-artifact procedures. Resolve <name> to existing owner/sibling tests;
do not run placeholder commands. When all conformance and integration contracts
need proof, pnpm test selects both; browser and credentialed coverage still
depend on their documented selection and prerequisites.
Real-runtime boundaries
Use only owned disposable resources and authorized credentials. Scope selection variables to the chosen process; preserve shared dependencies, services, databases, kubeconfig, and unrelated clusters. Do not run untrusted contributor tooling against a credentialed local environment; use an approved isolated CI environment. Setup and credentialed execution need their existing authorization.
Follow repository integration requirements and each suite's guide for images, model selection, database roles, credential placement, networking, and cleanup. Do not bypass missing credentials, disable isolation, or substitute a fake for requested runtime proof. Selected required cluster/runtime cases must pass without skips. Fixture or in-memory success does not prove genuine gateway, Codex WebSocket, model execution, or production deployment. A green PR aggregate does not prove manual credentialed lanes ran.
Diagnose CI
gh pr view <pr> --json headRefOid,statusCheckRollup
gh run view <run-id> --json status,conclusion,headSha,url,jobs
gh run view <run-id> --job <job-id> --log
Bind evidence to the PR head, actual run SHA, run ID, and job ID. A pull-request run may test a merge commit: record that relation rather than assuming its SHA equals the branch head. Inspect the latest attempt for that source; confirm whether a newer run superseded a cancellation. Fetch relevant leaf logs and result artifacts, not just the rollup status. Use CI result accounting and coverage to interpret selected lanes and skips.
- Product: supported behavior fails with valid setup; reproduce narrowly, repair the owning implementation, and rerun that proof.
- Harness: selection, setup, assertions, or result accounting are wrong; repair the harness without weakening required outcomes.
- Infrastructure: provisioning, image availability, networking, or capacity fails; retain evidence and retry the affected job only when justified.
- Credentials: approved credentials, access, or protected-environment approval is missing; report the gap without exposing values or substituting mock proof.
Do not infer a category solely from a check name. State uncertainty when logs are unavailable. Route unrelated failures with evidence instead of expanding the task; never rerun a broad workflow merely to erase a failure. Report commands, source/run/job identity, pass/fail/skip counts, proof limits, and remaining blockers.
Provenance
Adapted from OpenClaw; see source and intentional adaptations.
04 同仓库更多 Skills
oce-google
Use the managed Google Workspace CLI on the dedicated worker.
test-audit
Gate new or changed Enterprise tests and audit existing tests for observable behavior, credible regressions, duplicate coverage, and test-only production seams.
technical-writing
Write, organize, name, edit, or review Enterprise developer documentation, specifications, and technical instructions; ground claims in current source and finish with a plain-language cleanup.
spec
Draft or update OpenClaw Enterprise RFCs and implementation plans with repository numbering and lifecycle rules.
pr-walkthrough
Record a readable Console walkthrough for a pull request. Use when reviewers need to see an interaction, transition, recovery, or keyboard flow.
oceinteg
Run named OpenClaw Enterprise end-to-end integration scenarios against real supported installations. Use only when explicitly invoked.