Fix flaky tests by adding health check to git daemon#3110
Conversation
Wait for git HTTP backend to be fully ready instead of just checking if the port is listening. This prevents "connection reset by peer" errors when tests try to clone repositories before nginx/FastCGI are initialized. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Review Summary by QodoAdd HTTP health check to git daemon for reliable test startup
WalkthroughsDescription• Replace port listening check with HTTP health check endpoint • Create minimal bare git repository for health verification • Configure HTTPS health check with TLS and polling parameters • Prevent "connection reset by peer" errors during test initialization Diagramflowchart LR
A["Port Listening Check"] -->|Replace| B["HTTP Health Check"]
C["Create health-check.git"] -->|Initialize| D["Bare Git Repository"]
D -->|Enable| B
B -->|Configure| E["HTTPS with TLS Settings"]
E -->|Result| F["Reliable Container Startup"]
File Changes1. acceptance/git/git.go
|
Code Review by Qodo
1. MkdirAll error lacks context
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
lgtm! |
Wait for git HTTP backend to be fully ready instead of just checking if the port is listening. This prevents "connection reset by peer" errors when tests try to clone repositories before nginx/FastCGI are initialized.