docs: 调整本地与 CI 验证边界

This commit is contained in:
2026-09-10 06:25:08 +00:00
parent 80f6d5232b
commit b443d78d14
2 changed files with 14 additions and 4 deletions
+9 -2
View File
@@ -105,9 +105,15 @@ make generate # Regenerate DeepCopy methods
**After editing `*.go` files:**
```
make lint-fix # Auto-fix code style
make test # Run unit tests
make lint # Local verification; full tests run in PR CI
```
Do not routinely run the full `make test` or Kind E2E suite during local agent
iteration. Keep local feedback fast with generation checks and `make lint`; after the
human approves opening the PR, rely on the configured self-hosted Gitea Actions jobs for
the complete test suite. Run a focused local test only when it is needed to diagnose a
specific failure or the user explicitly requests it.
## CLI Commands Cheat Sheet
### Create API (your own types)
@@ -182,7 +188,8 @@ kubebuilder create webhook \
## Testing & Development
```bash
make test # Run unit tests (uses envtest: real K8s API + etcd)
make lint # Default local verification
make test # Full unit/envtest suite; normally run by PR CI
make run # Run locally (uses current kubeconfig context)
```