mirror of
https://github.com/rookiestar28/ComfyUI-OpenClaw.git
synced 2026-08-14 08:52:45 +00:00
1.3 KiB
1.3 KiB
CI Regression Policy (R52)
To ensure stability and prevent regressions, all Pull Requests (PRs) must pass the following checks before merge.
Mandatory Checks
| Check | Command | Purpose |
|---|---|---|
| Secret Detection | pre-commit run detect-secrets --all-files |
Prevent API key leaks |
| Lint/Format | pre-commit run --all-files |
Enforce code style (Black/Ruff) |
| Unit Tests | pytest tests/unit |
Verify component logic |
| Contract Tests | pytest tests/contract |
Verify API/Config stability |
| E2E Tests | npm test |
Verify frontend-backend integration |
Contract Tests (New in M1)
Contract tests (tests/contract/) enforce public API stability and configuration precedence.
They must pass even when internal implementation details change.
Scope
- API Contract:
/openclaw/healthstructure.- error response format (
ok,error,trace_id).
- Config Contract:
OPENCLAW_env vars must overrideconfig.json.MOLTBOT_legacy vars must still work (with lower priority).- Secrets must never be exposed via API.
Breaking Changes
If a change breaks a contract test:
- Verify: Is the breakage intentional?
- Deprecate: If yes, follow the Deprecation Policy (R51).
- Update: Update the contract test to reflect the new behavior.