chore: split pre-pr quality gate (#3807)

This commit is contained in:
Zhengchao An
2026-06-24 08:43:05 +08:00
committed by GitHub
parent 5b6c486b13
commit 17ae335313
3 changed files with 15 additions and 4 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
## —— Pre Commit Checks ----------------------------------------------------------------------------
.NOTPARALLEL: pre-commit dev-check
.NOTPARALLEL: pre-commit pre-pr dev-check
.PHONY: setup-hooks
setup-hooks: ## Set up git hooks
@@ -9,9 +9,13 @@ setup-hooks: ## Set up git hooks
@echo "✅ Git hooks setup complete!"
.PHONY: pre-commit
pre-commit: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check clippy-check test ## Run full pre-commit checks
pre-commit: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check quick-check ## Run fast pre-commit checks
@echo "✅ All pre-commit checks passed!"
.PHONY: pre-pr
pre-pr: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check clippy-check test ## Run full pre-PR checks
@echo "✅ All pre-PR checks passed!"
.PHONY: dev-check
dev-check: fmt-check unsafe-code-check architecture-migration-check logging-guardrails-check quick-check ## Run fast local development checks
@echo "✅ Fast development checks passed!"
+7
View File
@@ -67,6 +67,13 @@ Convert changes into independently verifiable outcomes. Prefer focused tests for
For code changes, run and pass the following before opening a PR:
```bash
make pre-pr
```
Before committing code changes, prefer focused verification for the touched
surface and use the faster local gate when a broad smoke check is needed:
```bash
make pre-commit
```
+2 -2
View File
@@ -66,7 +66,8 @@ How to use me:
make fmt # Format code
make clippy # Run clippy checks
make test # Run tests
make pre-commit # Run all pre-commit checks
make pre-commit # Run fast pre-commit checks
make pre-pr # Run full pre-PR checks
🚀 Quick Start:
make build # Build RustFS binary
@@ -78,4 +79,3 @@ endef
export HEADER
-include $(addsuffix /*.mak, $(shell find .config/make -type d))