Skip to content

Commit 494827a

Browse files
starbopsclaude
andcommitted
chore: clean up build infrastructure and update Go version references
- Update Go version references from 1.23.4 to 1.24.4 in documentation - Remove obsolete scripts/dev.sh that duplicated Makefile functionality - Clean up redundant Makefile targets (coverage-check-threshold, dev-setup) - Improve setup target with better user guidance - Streamline .PHONY declarations All Makefile targets tested and verified working properly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 987ad86 commit 494827a

4 files changed

Lines changed: 11 additions & 168 deletions

File tree

Makefile

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# VoidRunner Makefile
22
# Provides standardized commands for building, testing, and running the application
33

4-
.PHONY: help test test-fast test-integration test-all build run dev clean coverage coverage-check coverage-check-threshold docs docs-serve lint fmt vet security deps deps-update migrate-up migrate-down migrate-reset migration docker-build docker-run clean-docs install-tools setup dev-setup all pre-commit bench db-start db-stop db-reset
4+
.PHONY: help test test-fast test-integration test-all build run dev clean coverage coverage-check docs docs-serve lint fmt vet security deps deps-update migrate-up migrate-down migrate-reset migration docker-build docker-run clean-docs install-tools setup all pre-commit bench db-start db-stop db-reset
55

66
# Default target
77
help: ## Show this help message
@@ -65,10 +65,6 @@ coverage-check: ## Check if coverage meets minimum threshold (80%)
6565
@go tool cover -func=coverage.out
6666
@./scripts/check-coverage.sh coverage.out 80.0
6767

68-
coverage-check-threshold: ## Check coverage with custom threshold (usage: make coverage-check-threshold THRESHOLD=85)
69-
@echo "Checking coverage threshold: $(THRESHOLD)% (excluding integration tests)"
70-
@go test -v -race -coverprofile=coverage.out ./cmd/... ./internal/... ./pkg/...
71-
@./scripts/check-coverage.sh coverage.out $(THRESHOLD)
7268

7369
# Development targets
7470
run: build ## Run the API server locally
@@ -200,26 +196,22 @@ install-tools: ## Install development tools
200196
setup: deps install-tools ## Setup development environment
201197
@echo "Setting up development environment..."
202198
@cp .env.example .env || echo ".env.example not found, skipping"
203-
@echo "Development environment setup complete"
204-
@echo "Edit .env file with your configuration"
205-
206-
# Performance testing
207-
bench: ## Run benchmark tests
208-
@echo "Running benchmark tests..."
209-
@go test -bench=. -benchmem ./...
210-
211-
# All-in-one development commands
212-
dev-setup: setup ## Complete development setup
213-
@echo "Development setup completed"
214-
@echo "✅ Ready for development!"
199+
@echo "✅ Development environment setup complete!"
215200
@echo " - Tools: installed"
216201
@echo " - Dependencies: downloaded"
202+
@echo " - .env file: created (edit with your configuration)"
217203
@echo ""
218204
@echo "To run integration tests:"
219205
@echo " make db-start # Start test database"
220206
@echo " make test-integration # Run integration tests"
221207
@echo " make db-stop # Stop test database (optional)"
222208

209+
# Performance testing
210+
bench: ## Run benchmark tests
211+
@echo "Running benchmark tests..."
212+
@go test -bench=. -benchmem ./...
213+
214+
223215
all: clean deps lint test build ## Run all quality checks and build
224216

225217
# Precommit hook

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ VoidRunner is a Kubernetes-based distributed task execution platform that provid
1818

1919
### Prerequisites
2020

21-
- Go 1.23.4+ installed
21+
- Go 1.24.4+ installed
2222
- PostgreSQL 15+ (for database operations)
2323
- Docker (for containerization)
2424

docs/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This guide covers running tests for the VoidRunner distributed task execution pl
1818

1919
Before running tests, ensure you have the following installed:
2020

21-
- **Go 1.23.4** or later
21+
- **Go 1.24.4** or later
2222
- **PostgreSQL 15** or later (for integration tests)
2323
- **Docker** (optional, for containerized testing)
2424
- **Git** (for cloning and version control)

scripts/dev.sh

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)