Repository navigation
examples: wait_for to absorb proxy startup races - #1651
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the startup-retry changes in the Zipkin and TLS example checks.
No open issues 🎉
What changed in this PR
This PR reduces startup-related flakes in the Zipkin and TLS example checks tracked by #1629. It retries the first request while Envoy starts serving, without adding proxy healthchecks.
Changes:
- Wrap each example’s first response assertion in
wait_for 10. - Add comments explaining the startup-race workaround; leave subsequent checks unchanged.
| File | Description |
|---|---|
zipkin/verify.sh |
Retry the initial request to service-1 through the proxy. |
tls/verify.sh |
Retry the initial HTTPS-to-HTTP response assertion. |
Review effort: Balanced
phlax
force-pushed
the
zipkin-tls-wait
branch
2 times, most recently
from
November 20, 2026 17:20
e0a3cec to
b61ad0b
Compare
phlax
force-pushed
the
zipkin-tls-wait
branch
from
November 20, 2026 17:37
b61ad0b to
8d3ac8c
Compare
phlax
force-pushed
the
zipkin-tls-wait
branch
from
November 20, 2026 18:15
8d3ac8c to
dad3784
Compare
The proxy Envoys in these examples have no healthcheck, so `docker compose up --wait` can return before they are serving and the first request races startup. Wait on the first hit to each ungated proxy (and no further): - front-proxy, load-reporting-service, double-proxy: single proxy / chain - zipkin, opentelemetry, skywalking: front proxy + envoy-1/envoy-2 - tls, websocket: four independent proxies, one per port - tls-sni: proxy + proxy-client All verified locally. Signed-off-by: Ryan Northey <ryan@synca.io>
phlax
force-pushed
the
zipkin-tls-wait
branch
from
November 20, 2026 18:28
dad3784 to
71f4944
Compare
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.

The proxy Envoys in these examples have no healthcheck, so
docker compose up --waitcan return before Envoy is serving and the first request inverify.shraces startup. Several are on the flake tracker (#1629); the rest have the same latent race.Fix: wait on the first request to each ungated proxy, and nowhere already gated (a proxy with a healthcheck, or an upstream already warmed by a prior waited request).
envoy-1(/trace/1) +envoy-2(/trace/2), eachservice_started; wait on each trace path.proxyandproxy-clientare separate Envoys; wait on the first query to each.No compose/admin changes. All verified green locally.
A workaround, not the root fix — giving the proxy Envoys healthchecks is a separate change.
(bot assisted)