[test, ignore] harness: basic infrastructure test environment - #6
[test, ignore] harness: basic infrastructure test environment#6bhandras wants to merge 1 commit into
Conversation
Pull Request Review: Test Harness InfrastructureThis PR introduces comprehensive integration test infrastructure. Overall, this is high-quality work with excellent documentation, thoughtful design, and good test coverage. ✅ StrengthsCode Quality
Test Coverage
🔍 Issues Found1. Critical: Tab SpacingLocation: All files - Run make fmt before committing per CLAUDE.md 2. Style: Function CommentsLocation: harness.go:304, 323 - Comments must start with function name 3. Bug: Signal Handler RaceLocation: harness.go:502-516 - Check channel close to avoid panic 4. Style: Line LengthLocation: lines 280, 433, 818 - Exceed 80 chars 5. Bug: randSuffix Error HandlingLocation: harness.go:1866 - Should panic on crypto RNG failure 6. Missing: Structured LoggingLocation: Throughout - CLAUDE.md requires slog (or document exemption) 7. Code OrganizationLocation: harness.go:1830 - Group helper functions 8. Test CoverageLocation: harness_test.go - Add negative test cases 9. Security Comment NeededLocation: harness.go:62 - Document why hard-coded creds are OK 10. Error MessagesCheck consistency of lowercase formatting 📊 Summary
✅ Must Fix Before Merge
🎯 AssessmentRecommendation: Approve with changes Excellent infrastructure code. Issues are mostly style-related. Core logic is sound. Estimated effort: 1-2 hours Great work! 🚀 |
91ed5e4 to
f9362d0
Compare
Pull Request Review: Test Harness InfrastructureOverviewThis PR adds a comprehensive integration test harness for darepo-client that manages Docker containers for bitcoind, LND, tapd, electrs, and PostgreSQL. The infrastructure provides ~2,900 lines of well-structured test framework code. Code Quality Assessment✅ Strengths
🔍 Style Compliance IssuesCritical: Tab WidthThe codebase appears to use 8-space tabs per CLAUDE.md. Please verify your editor is configured correctly with Logging Style ViolationsFound several instances of non-structured logging that violate CLAUDE.md guidelines: harness.go:
Examples to fix: // WRONG (line 417):
h.Logf("Starting harness, artifacts dir: %v", h.artifactsDir)
// RIGHT:
log.InfoS(ctx, "Starting harness",
slog.String("artifacts_dir", h.artifactsDir))Error Log Level IssuesLine 575-578, 606-607: Using error-level logging for container kill failures. Per CLAUDE.md:
Container kill failures during cleanup are not internal errors—they're expected external events. These should be 🐛 Potential Bugs
|
No description provided.