diff options
| author | Claude Sonnet 4.6 | 2026-06-15 16:23:00 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-06-15 11:28:19 -0500 |
| commit | 28667600ac91f3dfe2da7481d13532e332e14b15 (patch) | |
| tree | a4ca9ea3726fd6c5f93be67d4b33d557278639f3 /README.md | |
| parent | bbc7838937f643ae84d153626a4820e6acc00ec5 (diff) | |
| download | gn-integration-tests-28667600ac91f3dfe2da7481d13532e332e14b15.tar.gz | |
conftest: add readiness check before test session
Poll each service base URL until it responds with a non-502/503 status
before the test session begins. Retries on:
- ConnectionError: process not yet bound to its port
- 502/503: Nginx upstream-not-ready response (served while the upstream
gunicorn process is still starting up behind the reverse proxy)
Any other HTTP response is treated as "service is up". Polls every 2
seconds for up to 120 seconds, then raises RuntimeError with a clear
message.
This prevents spurious failures when smoke tests are queued immediately
after a service restart.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
