Repository navigation
test(soak): exercise proposal 037's per-port TCP path, and make its Phase 4 gate falsifiable - #902
Merged
Merged
Conversation
…hase 4 gate falsifiable
The soak, as configured, would not have touched one line of proposal 037.
Every service that existed before 037 declares a single protocol, so
`nonPrimaryTCPPorts` returns nil for all fourteen of them and no per-port
chain is ever built; the one TCP-primary service on the cluster had no
client at all. Prometheus is unambiguous: over SEVEN DAYS the only
`envoy_tcp_cap_tcp_*` series that had ever existed came from a manual e2e
run, and `tcp-echo`'s own floor chain -- which predates 037 -- had never
carried a single connection.
An 8h run in that state would have reported PASS without exercising the
feature it was meant to validate. Worse, it would have produced a zero on
proposal 037's Phase 4 gate (`cap_tcp_anyport_*` reads zero across a full
release, therefore the portless floor chain is safe to delete) that looked
like evidence. Envoy omits a counter it never increments, so an absent
series and a healthy one are indistinguishable from the gate's side: that
zero would have said nothing about whether any client still uses the
portless spelling, which is the only question Phase 4 asks. This is
aether#853's shape -- a gate with no demonstrated red state.
So:
* `multiprotocol.yaml` adds `mixed-svc` (HTTP :8080 primary + raw TCP
:9000, one pod, one ServiceAccount -- the shape 037 exists to enable)
and an `mp-dialer` DaemonSet that drives the three SANCTIONED raw-TCP
spellings from every node. It deliberately never dials an unsanctioned
port: that is the shim's territory, and driving it would destroy the
measurement.
* `anyport-probe.sh` is the negative control. It dials a TCP-primary
service at a port that is neither 18082 nor the primary, so the two
qualified chains cannot claim it and it falls through to the shim --
which is exactly the legacy client Phase 4 asks about. Run once before
a soak, the counter is SHOWN to move, and the run's own zero becomes a
measurement.
* the k6 script gains `mixed-svc` as a sixth HTTP target. The failure
that matters is not either protocol alone: Envoy ranks
destination_port ahead of prefix_ranges, server_names and
application_protocols, so a mistake in the :9000 chain does not
degrade TCP -- it silently swallows every HTTP request to that
authority. This target is what would notice. The executor is
constant-arrival-rate, so total load is unchanged and fleet CPU stays
comparable with the rev231 run; only the per-target share moves.
Both metric references match by `__name__=~` pattern rather than by an
assembled name. The stat prefix carries the Envoy CLUSTER name, scheme
included, so tcp-echo's chains read `cap_tcp_tcp_tcp_echo_...` with a
doubled `tcp_` that a name derived from the service FQDN quietly drops --
and the resulting "no data" is indistinguishable from a legitimate zero.
The first draft of the probe had precisely that bug.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
…d zero'
A grading pass on the 2026-09-22 run read
`sum(aether_probe_requests_total{result=~"dns_.*"})` returning no data as
proof that the dns_* result classes do not exist, and proposed grading only
the classes that 'do'.
They do exist. prober/internal/prober/prober.go:59-61 defines them and
classifyErr returns them; the label-values API lists all seven. The prober
creates a series only on a class's FIRST occurrence, so an empty result on a
clean run means zero DNS failures -- which is indistinguishable, from the
query's side, from the metric having been renamed away.
Acting on that reading would have retired exactly the signal #726 was fixed
to restore. The comment above classifyErr already records THREE separate
investigations that read 'dns_* is zero' as 'DNS is healthy' when it only
ever meant 'DNS never failed FAST'; this would have been the fourth, and the
first to make it permanent by deleting the check.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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 problem
The soak, as configured, would not have touched one line of proposal 037.
Every service that existed before 037 declares a single protocol, so
nonPrimaryTCPPortsreturns nil for all fourteen ontalos-mainand no per-port chain is ever built. The one TCP-primary service (tcp-echo) had no client at all.Prometheus is unambiguous about this. Over seven days, the only
envoy_tcp_cap_tcp_*series that had ever existed came from a manuale2e/multiprotocol.shrun, andtcp-echo's own floor chain — which predates 037 — had never carried a single connection. Envoy omits a counter it never increments, so the TCP floor on that cluster was not healthy, it was unmeasured.An 8h run in that state reports PASS without exercising the feature it was meant to validate. Worse, it produces a zero on proposal 037's Phase 4 gate —
cap_tcp_anyport_*reads zero across a full release, therefore the portless floor chain is safe to delete — that looks like evidence. From the gate's side an absent series and a healthy one are indistinguishable, so that zero would have said nothing about whether any client still uses the portless spelling, which is the only question Phase 4 asks. This is #853's shape: a gate with no demonstrated red state.The change
multiprotocol.yaml—mixed-svc(HTTP:8080primary + raw TCP:9000, one pod, one ServiceAccount: the shape 037 exists to enable) plus anmp-dialerDaemonSet driving the three sanctioned raw-TCP spellings from every node. It deliberately never dials an unsanctioned port — that is the shim's territory, and driving it would destroy the measurement.anyport-probe.sh— the negative control. Dials a TCP-primary service at a port that is neither 18082 nor the primary, so neither qualified chain can claim it and it falls through to the shim: exactly the legacy client Phase 4 asks about. Run once before a soak, the counter is shown to move, and the run's own zero becomes a measurement.k6-mesh-soak.js—mixed-svcas a sixth HTTP target. The failure that matters is not either protocol alone: Envoy ranksdestination_portahead ofprefix_ranges,server_namesandapplication_protocols, so a mistake in the:9000chain does not degrade TCP — it silently swallows every HTTP request to that authority. This target is what would notice. The executor isconstant-arrival-rate, so total load is unchanged and fleet CPU stays comparable with rev231; only the per-target share moves (20% → 16.7%).Verified live on talos-main (rev234)
The negative control, run before the soak:
cap_tcp_anyport_tcp_tcp_echo_…Exact, and all 20 dials succeeded — so the shim still forwards to the primary port, and Phase 4 would genuinely break such a client. The three sanctioned chains are live and climbing on all five nodes.
Both metric references match by
__name__=~pattern rather than an assembled name. The stat prefix carries the Envoy cluster name, scheme included, sotcp-echo's chains readcap_tcp_tcp_tcp_echo_…with a doubledtcp_that a name derived from the service FQDN quietly drops — and the resulting "no data" is indistinguishable from a legitimate zero. The first draft of the probe had precisely that bug.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr