Repository navigation
Conversation
front-envoy has no healthcheck, so `docker compose up --wait` can return before it is serving, and the first request in verify.sh races it (seen flaking on unrelated PRs: curl fails while front-envoy is "Up 1 second"). Wrap the first request in `wait_for` so it retries until Envoy is up. A workaround, not the real fix — giving the proxy Envoys healthchecks is a separate change. Signed-off-by: Ryan Northey <ryan@synca.io>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain with the change to retry the initial front-proxy request during startup.
No open issues 🎉
What changed in this PR
Reduces startup-related flakiness in the front-proxy verification script by retrying the first request while front-envoy becomes ready. This is a workaround; proxy healthchecks remain a separate change.
Changes:
- Wraps the service-1 HTTP assertion in
wait_for, allowing up to 10 attempts. - Adds a comment explaining why Compose startup completion does not guarantee proxy readiness.
| File | Description |
|---|---|
front-proxy/verify.sh |
Retries the first service request and documents the startup race. |
Review effort: Balanced
Member
Author
|
Folded into #1651 (the wait_for PR now covers front-proxy, zipkin, tls and lrs together). (bot assisted) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
front-proxy'sfront-envoyhas no healthcheck, sodocker compose up --waitcan return before it is serving — and the first request inverify.shraces it. Seen flaking on unrelated PRs:ERROR: curl (… /service/1)whilefront-envoyisUp 1 second, all other services already(healthy).Wrap the first request in
wait_for(the idiomopentelemetryalready uses for the same race) so it retries until Envoy is up. No compose/admin change.A workaround, not the root fix — giving the proxy Envoys healthchecks is a separate change.
(bot assisted)