Repository navigation
examples: wait_for the first request on the remaining ungated proxies - #1667
Merged
Merged
Conversation
phlax
force-pushed
the
examples-wait-sweep
branch
from
November 23, 2026 11:28
2eeec49 to
1db8868
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The readiness check can pass before the traffic listener is ready, leaving subsequent requests without retries vulnerable to a startup race.
1 open issue
What changed in this PR
This PR extends startup retry protection to nine example verification scripts whose Envoy proxies lack healthchecks, reducing first-request failures in CI.
Changes:
- Wraps initial HTTP and admin requests in
wait_for. - Adds an admin probe before rate-limit checks to avoid spending tokens.
- Retries initial TCP and UDP sends until backend logs confirm receipt.
| File | Description |
|---|---|
| udp/verify.sh | Retries the first UDP packet until logged by the backend. |
| rbac/verify.sh | Retries the initial access-denied assertion. |
| lua/verify.sh | Retries the first Lua response assertion. |
| lua-cluster-specifier/verify.sh | Retries the normal-cluster response check. |
| local_ratelimit/verify.sh | Adds an admin probe before rate-limit checks. |
| gzip/verify.sh | Retries the initial gzip compression check. |
| golang-network/verify.sh | Retries TCP sends until the transformed message is logged. |
| dynamic-config-cp/verify.sh | Retries the initial static-cluster config dump check. |
| datadog-tracing/verify.sh | Retries the trace-header response check. |
Review effort: Balanced
Follow-up to the earlier wait_for hardening, which only covered the tracker flakes and the multi-proxy examples and so missed single-proxy ones like gzip (whose sibling zstd was already guarded). Sweep the rest: every example whose proxy Envoy has no healthcheck and whose first request wasn't already retried. - gzip, datadog-tracing, lua, lua-cluster-specifier, rbac: first HTTP request - dynamic-config-cp: first admin config_dump - local_ratelimit: probe the stats listener first (no rate-limit tokens spent) - golang-network, udp: retry the first nc send until the backend logs it mysql/postgres/redis/grpc-bridge/locality already guard their first proxy hit; kafka/kafka-mesh (broker-protocol client) and fault-injection (self-tolerant 20s loop) need protocol-specific handling and are left for a follow-up. gzip verified green locally. Signed-off-by: Ryan Northey <ryan@synca.io>
phlax
force-pushed
the
examples-wait-sweep
branch
from
November 23, 2026 11:45
1db8868 to
4c28abd
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.

Follow-up to the earlier
wait_forhardening, which covered the flake-tracker examples and the multi-proxy ones but missed single-proxy examples — gzip is the clearest case (its siblingzstdwas already guarded, gzip wasn't, and it flaked envoy'sverify_examples).Swept every example whose proxy Envoy has no healthcheck and whose first request wasn't already retried:
wait_forconfig_dumpncsend until the backend logs itAlready guarded (left as-is): mysql / postgres / redis / grpc-bridge / locality-load-balancing (first proxy interaction is already a
wait_for), plus everything from the prior passes.Deliberately not in this PR:
kafka/kafka-mesh(first hit is a Kafka-broker client call through the proxy - needs protocol-specific, idempotent retry) andfault-injection(its 20s request loop is already race-tolerant). Those want individual treatment + testing rather than a blindwait_for.This is the stopgap; the proper fix (proxy healthchecks) is a separate effort. gzip verified green locally.