refactor(backend): standardize errors and simplify configuration and test setup

This commit is contained in:
TakuyaYagam1 committed 2026-10-05 16:15:30 +03:00
1 parent 1535c19b8c
commit 138666a7bb
92 files changed
+3994 -210

No files matched your search

+11 -4
View File
@@ -125,7 +125,7 @@ $(QUALITY_STAMP): $(QUALITY_REQUIREMENTS)
.PHONY: install-quality-python-deps
install-quality-python-deps: $(QUALITY_STAMP) ## Install pinned SQL quality tools locally
.PHONY: test test-fast test-race test-int test-int-compile
.PHONY: test test-fast test-race test-int test-int-list test-int-compile test-scripts
test: ## Run backend unit tests with the race detector
$(GO) test -race -count=1 ./...
@@ -134,10 +134,16 @@ test-fast: ## Run backend unit tests without race instrumentation
test-race: test ## Alias for the race-enabled unit suite
test-int: ## Run PostgreSQL integration tests with Testcontainers
$(GO) test -tags=integration -count=1 ./integration_test/...
test-int: ## Run integration tests, optionally selected by TEST_SHARD_INDEX and TEST_SHARD_TOTAL
$(BOOTSTRAP_PYTHON) scripts/run-integration-suite.py --go "$(GO)"
test-int-compile: ## Compile PostgreSQL integration tests without starting containers
test-int-list: ## Discover and list the selected integration tests without starting containers
$(BOOTSTRAP_PYTHON) scripts/run-integration-suite.py --go "$(GO)" --list
test-scripts: ## Check integration shard coverage, selection, and failure propagation
$(BOOTSTRAP_PYTHON) -B -m unittest discover -s scripts -p 'test_*.py'
test-int-compile: ## Compile infrastructure integration tests without starting containers
$(GO) test -tags=integration -run '^$$' ./integration_test/...
.PHONY: verify check
@@ -145,6 +151,7 @@ check: ## Run local formatting, build, unit, and lint checks in order
$(MAKE) --no-print-directory fmt-check
$(MAKE) --no-print-directory build
$(MAKE) --no-print-directory test-fast
$(MAKE) --no-print-directory test-scripts
$(MAKE) --no-print-directory lint
verify: ## Run code, test, tooling, and generated-drift checks in order